Cancel order after three candles

Forums ProRealTime English forum ProOrder support Cancel order after three candles

Viewing 8 posts - 1 through 8 (of 8 total)
  • #144359

    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

    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

    Hi Kaq,

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

     

    #144375

    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

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

    #144380

    There you go (not tested);

     

    1 user thanked author for this post.
    #144471

    Roberto

    Your code is no good

    #144476

    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