Candle close
-
Good afternoon friends
Let's see if you can help me.
I have this strategy with adx, rsi, sma.
But I have a doubt, how could I have a position when the first one closes above the moving average (buy) or below (sale)?And until I go back to transfer the moving average that does not open another position
https://fxdreema.com/shared/4xO3AGVje

-
@noelito1981 just use candle ID 1 in all conditions
-
Hello friend
Ok thank you!!
It works better, but it still opens many positions, one ends, another starts and it is not correct.
when it finishes, just open again if the candle makes the movement again
Look, I show you:
-
You created a script, not an EA.
-
@noelito1981 if you need the trade only when the candle crosses the moving average, then just modify the comparator in the condition. By default its "above", but you can change it to "crosses above".
-
It works better, but it opens up many positions for me.
You only have to open one and until you touch the moving average again, open another.
It seems difficult
It seems more difficult than what I thought -
@noelito1981 So now you use crossing condition and "no trade" filter? How is it possible to open multiple trades?
-
Can you please share your updated project again?
-
@roar @l-andorrà
No problem!!https://fxdreema.com/shared/mhMXOUBGb
Look for example
In this section ... I would only have to open the position where the arrow (purple arrow), And it doesn't open well
-
Do this:
- Specify buys only in block 8 and sells only in block 13.
- Block 14 should be 'crosses below'.
- Block 19 should be 'below or equal.
Let us know.