Requotes -----

thread: Requotes -----

  1. #1
    Senior Member sarapano's Avatar
    279

    Requotes -----

    How do you handle Requotes on your EA's?

    Im looking for suggestions.

    I run some scalper systems and requotes could be a real pain in the a$$.

    The major problem I have is that sometimes I will close 1 order, and start another order in the oppisite direction on precisely the exact same tick. But due to the requote, 1 order executes and another gets kicked back. Resulting in a Hedge, or even worse no open position. The EA's are pretty sensitive so more often than not the order that doesn't get closed ends up loosing out as it should have closed at a profit.... I tried to add some slippage but that only results in All your orders getting filled at the slipped price...

    Thank you,
    KK

  2. #2
    I attempted to bring some slippage but that just leads to each one of your orders becoming filled at the slipped price...
    That's a nice broker you have there.
    If you can't use slippage, there is obviously no way to avoid requotes.
    I guess the safest thing to do is start the order when you can on the new price (you might also wait till price get's back for your entry price).
    The way to implement it? If OrderSend() returns -1, you know something went wrong. Then you check GetLastError() for ERR_REQUOTE (136), in which the help section states: The data can be refreshed without any delay using the RefreshRates purpose and produce a retry. So just insert the new Bid or Ask into OrderSend() and try again.
    Hope that helps.

  3. #3
    Junior Member Rikyvk's Avatar
    15
    Kurka,
    I've writed a system, but how can you convince me to give it to you?
    Are you something in return? ...

  4. #4
    Junior Member Favanexxa's Avatar
    2
    What you could do would be:

    1. Attempt to place pending orders in which you need SAR, or

    2. Open only one order with size. (Hedging is beeing flat after all). Then use OrderCloseBy() function to close the very first order. For this only the dual order must be implemented at price, the OrderCloseBy() can be done at any time since you are already flat for the first order.

  •