Trade change Long / Short and vice versa.

Forums ProRealTime English forum ProOrder support Trade change Long / Short and vice versa.

Viewing 2 posts - 1 through 2 (of 2 total)
  • #10519

    Hello,

    i want to add an additional rule in my strategy.

    This rule is:

    After a Longtrade only is possible a Shorttrade

    and

    after a Shorttrade only is possible a Longtrade.

    How is the Code for this?

    Thank You for help in advance!

    Maddin

    #11615

    Hi, you only need to flag a variable when you launch a new trade:

    Then test this “trade” variable to see if your last trade were a long or a short position.

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login