Not logged in
Viewing 1 post (of 1 total)

Forums>StrategyQuant>General Discussion>Custom Block – Reverse if Position is Negative

  • #268209 |
    Customer
    38 Posts

    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?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.