EA to cancel pending order when price reaches certain level? -
1 2 3

thread: EA to cancel pending order when price reaches certain level?

  1. #11
    I will be able to revive this thread a bit. Did anyone found the EA that does exactly what this one posted by cja does but has a option of closing only 1 currency pair orders? I'd think it ought to be usage for a braket trading - if you're trading it by having a taste of buy or sell just you set the order. When the price reaches exactly the level of your bracket you want to cancel the order, that is pretty much what I am doing.

    The above EMA does it but if you exchange more than 1 pair it closes down all of the pending orders on most of pairs, not only on the pair you're trading.

    Furthermore, if you leave it on the chart, you cannot open any pending orders - it closes down them right after entering so you need to remove the ea in the chart and insert it prior to each use.

    I'd think it must have been engineered somewhere. Any idea?

  2. #12
    Updated EA please do not use the Cancel Pending level ea at #Post two as it's a fault in the code. I have updated the code to run on the most recent MT4 builds, if you want to view line labels right click on the chart and choose /Properties/Common/show objects description - the line labels will show up with a ticket and description amount. file
    Hello cja,

    I am analyzing your EA today and it appears to function fine.

    Kind regards.

  3. #13
    quote Awesome, It works. Put it permit trading, along with autotrading over on your display. TK
    Yes, it's working fine for me also.

  4. #14
    quote Hello , here are a few mq4 files of which I believe will do what you desire. I believe that you must use all available and pending orders after day and time and set CloseAll. ClosePendingOnTime deletes pending orders. file file
    Awesome, It functions. Set it allow live trading, and autotrading above in your display.

    TK

  5. #15
    quote dankjewel ga ermee aan de slag!
    Great, you are welcome (graag gedaan).

  6. #16
    quote Hi , Here are some mq4 files of which I think can do what you want. I believe that you must use close punctually all available and pending orders after day and time and set CloseAll. ClosePendingOnTime deletes pending orders. file file
    dankjewel ga ermee aan de slag!

  7. #17
    I am not certain that this is the ideal place to ask... but does somebody have a ex4 to close (all) transactions at a specific moment? I tried a few but not one worked... thanks beforehand TK
    Hello trading-kid,

    Here are some mq4 files of which I think can do exactly what you desire.

    I think you should use close on time all open and pending orders following set time and day and set CloseAll to authentic.

    ClosePendingOnTime just simplifies pending orders.
    https://www.cliqforex.com/attachment...0783633321.mq4
    https://www.cliqforex.com/attachment...0317010846.mq4

  8. #18
    Upgraded EA please don't use the Cancel Pending level ea at #Post two as it has a fault in the code. I've updated the code to run on the latest MT4 builds, if you want to view line labels right click the chart and choose /Properties/Common/show items description - the line labels will appear with a ticket and description number. file
    Thank you! Very useful as I use stop orders instead of stop losses. It's never happened (yet) but it could be a tragedy if my trade came in and I was not around, then price reversed and triggered the stop order!

  9. #19
    I am not sure that this is the correct place to ask... but does someone have a ex4 to close (all) transactions at a specific time?
    I tried some but not one worked...

    thanks in advance

    TK

  10. #20
    Thank you very much cja!

    I truly appreciate your willingness to help other traders here on the forum.

    In my egy, this EA is very, very important. I just daytrade rather than leave open trades into the next day. I exchange breakouts and I consider average daily range into account. If a breakout doesn't occur and price goes the other way, your EA is excellent with cancelling the pending BUYSTOP / SELLSTOP if my TP isn't attainable anymore for that day (if I consider the average daily range into account).

    Really I am somewhat surprised that your EA has been downloaded just 224 times in 2 decades, because I feel this EA must be quite helpfull for a lot of different traders.

    Again, lots of thank you and I will try the new version of the EA following the weekend.

    Kind regards,

  •