Cancel order after three candles

Forums ProRealTime English forum ProOrder support Cancel order after three candles

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

    Hi folks, looking for code for second step  of below logic, if someone could help please:

    1. Place a stop order (BUY amount LOT AT 25 stop)
    2. If order is not filled in next three candles or within next 45 minutes, cancel this stop order

     

    Thanks in advance, kaq

    #144362 Report

    ProOrder’s logic is the other way round.

    Pending orders ALWAYS expire each bar, so you need to place them again each new bar if your entry conditions are still valid.

    When conditions are no more valid, just don’t place them.

     

     

    #144374 Report

    Hi Kaq,

    Roberto is right. If you want an entry signal to last for 3 candles you can do something like that:

     

    #144375 Report

    Thanks both.

    My strategy is, if current candle closes bullish engulfing, place a pending stop order two points above the closing candle, and wait for next three candles to see if order gets fulfilled else cancel pending order.

    Reading what has been explained above, looks like it is not possible…or is it?

    #144376 Report

    I think is posible, just change the MARKET order for “BUY AT CLOSE+2 STOP”

    #144380 Report

    There you go (not tested);

     

    1 user thanked author for this post.
    #144471 Report

    Roberto

    Your code is no good

    #144476 Report

    You are right, line 13 should read:

     

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

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