Code to place sell and buy order at 2 levels

Forums ProRealTime English forum ProOrder support Code to place sell and buy order at 2 levels

Viewing 4 posts - 1 through 4 (of 4 total)
  • #22850

    Hello,
    Could you help me with a bit of code ?

    Here is what I want to code :


    If the price is between “R” and “S”
    And that I am not in position, And that I have no order in progress
    Then place 1 sell order on “R” and 1 purchase order on “S”.

    If I’m in position then supress all the current order

    Thank you in advance.

     

    #22860

    Does that work?

    1 user thanked author for this post.
    #22893

    Yes it is perfect.
    thank you very much

    #23130

    Good evening,
    What code should I use to take position only in 9:00 and 17:00 and close all positions at 22:00 ?
    Thank you for your reply.

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

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