Custom Block – Reverse if Position is Negative
0 replies
Morningbull
3 years ago #268209
Hello,
I’m trying to create a custom block that give signal to open a position in the opposite direction if the previous one has been closed with negative result.
Following what I already created:
Closed P/L in pips(Chart, MagicNumber, Short, “”) < 0
Closed P/L in pips(Chart, MagicNumber, Long, “”) < 0
Using this code the strategy open only long positions every trade closed (independently if were positive or negative).
What I’m doing wrong?