Order placing in code

Forums ProRealTime English forum ProOrder support Order placing in code

Viewing 9 posts - 1 through 9 (of 9 total)
  • #138622

    Hi

     

    Once you conditions have been met is it possible to place an order to trigger at a predetermined point NOT at market.

     

    i.e ALL the conditions are met but your order would be X pips higher than the current price at your trigger point Or when c1 and C2 and c3 and c4 are met. So then effectively placing an order etc ?

    #138640

    Yes, you can use pending orders. Use STOP pending orders when the entry price il worse than current price, LIMIT  pending orders when it’s better (higher if yiu sell or lower if you buy):

    Be warned that pending orders expire after one bar, so you need to place then again next bar if still needed.

    Set TP & SL as usual.

     

     

    #138647

    Thanks Roberto ,

     

    So if i envisaged myentryprice may not be hit for 5 or more bars after initial conditions were me how would be best to cope with that ?

    #138650

    If your conditions are met keep placing them again and again, bar after bar, until those conditions are no more met (or  orders are triggered and you do not want to enter again until NEW conditions are met).

     

    #138651

    Once the conditions are met for placing an order at myentrypoint – i want the order to stay current until the entry point is achieved. The initial conditions to trigger myentrypoint will not be met going forward from the point of order as these are historical conditions to trigger my entry point.

     

    When you say keep placing the order bar after bar how is this coded to express the order is valid until achieved ? Regardless of the initial conditions to initially achieve the first placement of myentrypoint.

    #138652

    There you go:

    MyConditions can be any condition or combination of conditions linked either with AND or OR.

    1 user thanked author for this post.
    #172140

    There you go:

    Essentially, what I need is to find and ‘set the order price’ at a high of that particular bar that the other conditions are met, and then to keep that order in place for the next 10 bars until it triggers.
    I can’t seem to still get that right in the code though.
    Do you perhaps have any ideas on how to do that? I have used your code below, but I think that I am doing something wrong though.
    Thanks.

    MyConditions can be any condition or combination of conditions linked either with AND or OR.

    #172142

    There you go:

    #172176

    Thanks so much for the help Roberto

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

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