READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Custom Block – Reverse if Position is Negative

0 replies

Morningbull

Customer, bbp_participant, community, 40 replies.

Visit profile

5 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?

0