Multiple conditions on a single BAR and STOPs

Forums ProRealTime English forum ProOrder support Multiple conditions on a single BAR and STOPs

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

    With this strategy:

    (1) –  both conditions are true within the SAME bar, does ProOrder enters only 1 trade or 2, despite

    ?

    (2) – if and when the first condition is true, do SL and TP are set according to the two last lines, despite they are set before within

    ?

    Thanks.

    #31730

    Remember that code is read from top to bottom, so it will only be the first condition to be true that will launch the only one allowed trade by CumulateOrders=false.

    About your point ‘2), sorry I don’t understand. If the set stop and set target are written at the bottom of the code, without been nested into a conditional statement, they will be read and executed by the server for the order launched some lines before.. Am I clear? 🙂

     

    1 user thanked author for this post.
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