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. #21
    Upgraded EA please do not use the Cancel Pending level ea at #Post 2 as it's an error in the code. I've updated the code to run on the latest MT4 builds, if you want to see line tags directly click the chart and choose /Properties/Common/show items description - the line labels will show up with a ticket and description amount.

    https://www.cliqforex.com/attachment...6424729540.ex4

  2. #22
    quote I've just looked in the code and realised that I hadn't put a line of code which controls the orders for only the chart it is loaded on for SELLSTOPS BUYLIMITS however I'd put that line of code for BUYSTOPS and SELLLIMITS in order that they would have worked as anticipated, curious as there have been 216 downloads and nobody has mentioned it. I notice the code requires updating to be completely compatible with the MT4 builds so will have a look next week as time allows.
    Thank you very much for your response cja.

    I was not conscious (for certain) that you wrote this EA by yourself. However, it would be really good if you could add a line of code for all SELLSTOPS, BUYLIMITS, BUYSTOPS and SELLLIMITS to operate only with the currency pair the EA is loaded on.

    Me myself I only use BUYSTOPS and SELLSTOPS. And because I downloaded and utilize your EA because last week or so the issue was encountered by me today with SELLSTOP orders.

    Thank you very much in the event that you can find time to check on / work on this code.

    Kind regards.

  3. #23
    Hello traders, Thanks to for the https://www.cliqforex.com/attachment...2075959688.ex4 EA. It is really helpfull with my own trading. It works good, however when I load the EA on for example that a USDCAD chart, it doesn't track trades just, but it also interferes with different pairs' trades. Although the EA is an . Ex4 file, would anyone be able to produce an EA exactly like https://www.cliqforex.com/attachment...1614467408.ex4...
    I've just looked in the code and realised that I had not put a line of code that controls the orders for just the chart it's loaded on for SELLSTOPS BUYLIMITS however I had put that line of code for BUYSTOPS and SELLLIMITS so they would have worked as anticipated, curious because there have been 216 downloads and nobody has mentioned it.
    That I see the code also requires updating to be fully compatible with the latest MT4 builds so will have a look a week as time allows.

  4. #24
    Hello traders,

    Thanks to cja for the https://www.cliqforex.com/attachment...4352917153.ex4 EA.

    It's really helpfull with my own trading. It works good, but when I load the EA on for example a USDCAD chart, it doesn't track trades just, but it interferes with pairs' pending trades.

    Even Though the EA is an . Ex4 document, would anybody be in a position to produce an EA just like https://www.cliqforex.com/attachment...6664638964.ex4 , but with an this pair just work?

    Thank you very much beforehand.

    Kind regards.

  5. #25
    Junior Member Oxnfry95's Avatar
    25
    Hi there,

    yeah sorry to not mention it. Basically I've 2-3 pending orders that are always get triggered in the specific same price (and all always have same SL). I open multiple pending orders because I use distinct TP for each pending order but that's about it. nothing else.

    By way of example, I have 2 pending orders, buy cease, both will get triggered in 1.50000
    I then use your EA that'll set to cancel pending order at 50 pips, which imply it will cancel the buy stop at 1.40500

    then what happen next? When it cancels the pending order, it automatically detect the second pending order? And as soon as it realize that the pending order also has more than 50 pips difference, can it also automatically cancel that pending order? Thank you a lot!

  6. #26
    Hi,
    you are able to load on a chart as numerous BUYSTOPS/BUYLIMITS/SELLSTOPS/SELLLIMITS as you want and every person pending order will cancel as the cancel amount is struck that Pending order, the single thing is that the line revealing the counter amount on the chart won't reveal for every extra order ( if all the orders are the exact same e.g 3 BUYSTOPS ) as I presumed from you initially request that you wanted it to restrain one order. So to sumerise if price hits one of the levels it deletes that pending order not all of the pending orders on the chart.

  7. #27
    Junior Member Oxnfry95's Avatar
    25
    Hey there.

    Does this work for all buy/sell stops from the current chart? Since when I open pending order I normally open 2-3 buy stops at exactly the exact same time (which is triggered at precisely the exact same time). The EA will cancel the buy stops, right? Just to make sure. I know I should only test the EA (analyzing it now!!)

  8. #28
    This should do exactly what you want, simply place the input Cancel_Level into the distance you desire the counter amount to activate at below or above the Pending order, utilize just a positive number and the EA will automatically enable for any of those 4 Pending order kinds. As an instance if you enter 50 the amount will place 50 pips under a BUYSTOP or 50 pips above a SELLSTOP.
    Give it a go and let me know whether it needs any changes.
    https://www.cliqforex.com/attachment...1389290578.ex4

  •