Save ATR Value on the last 10 trades
-
Would it be possible to store the last 10 trades its ATR value the moment it open the trade?
-
This will do it, create as many variables as necessary. Will work the same on MT5: https://fxdreema.com/shared/sC3YsM8Fb
-
@jstap what if I want to add a condition so that it will not rely on the history of closed trades, like for example.
MA(25) x> MA(50)
Can it scan the previous MA crosses and store its ATR value the moment it crossed or the moment the condition became true? whether there is an entry or not.
-
You can get the ATR value from candle ID, you just need to know what the ID was when the cross happened
-
@jstap would it not be possible that the EA will scan the previous candles and conditions by itself?
-
I do not think you can check previous candles for crosses, but you could have this constantly update, ready for when you need it.
-
@jstap how about the block "Position Closed" is there any limitations to it? I just want to know from your perspective
-
@jstap or is it possible to set it up like. On the first installment of EA.
We can input initially and manullay the ATR of all 10 trades/options.
And as soon as a trade #1 is openned. ATR #1 will then be replaced by the actual ATR value
-
@jstap by the way, on the first shared link you shared, it always replaced the value on the first ATR, doesnt go to the next ATR2, ATR3 and so on.
-
Somebody has an idea? Ive been trying for 4 days but im not getting any good results
Store ATR on entry candle regardless of how long it closes. The Entry Candle ATR is what i needed to store.
-
Not sure I fully understand what you exactly need. Why do you need all those ATR values when you just need the one of those MA crossing? I don't understand the logic behind that.