MA cross over close
-
Greetings,
Shared project: https://fxdreema.com/shared/Bp9uQg1he
As you can see, there are conditions to when positions are opened. However, I would like create an EA where if 21 and 9 re-crossed each other, regardless if they are above the 200 moving average or below, I want to close the position. How do we do that.
-
@ramimoujaes You blocks 5 and 6 are doing exactly the same. You sgould change the value of the comparison icon in block 6 to its opposite if you want it to wprk properly.
On your question, just create two new block trees. One headed by a copy of block 5 and then connect a 'close trades' block below it for sells only. The second one should be a copy the corrected block 6 and another 'close trades' block connected below it for buys only.
-
Greetings @l-andorrà ,
Shared project; https://fxdreema.com/shared/zhCoCnFad
It is still doing the same thing. Do you think can help me out?
-
@ramimoujaes You need to change the opposite symbole here for blocks 6 and 11:
