Conditions to enter positions – AND / OR

Forums ProRealTime English forum ProOrder support Conditions to enter positions – AND / OR

This topic contains 1 reply, has 2 voices, and was last updated by avatar robertogozzi 7 months, 2 weeks ago.

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 2 posts - 1 through 2 (of 2 total)
  • #111002

    Hi

    In the above code to enter long positions, I want to use AND and OR e.g.

    Is my above code modification correct? Do I need to put OR onto the next line? Do I need to use ELSIF? Any suggestions please?

    Thanks

    Sachin

    #111003

    Your conditions seem fine. If they work as you expect then they are fine!

    There’s no need to use ELSIF, I think it’s more readable the way you wrote it.

    I can only suggest that you add “AND LongOnMarket” at line 9:

    and “AND ShortOnMarket” at line 21:

    but it’s not mandatory.

     

    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