(Bug) Freezelevel consideration for deleting BuyLimit orders - page 3

 
Hi Fernando, this has nothing to do with ‘narrow order’ placement. The error occurs independent of where the order is placed (or rather, attempted to be removed) in regards to current price levels
 
Fernando Carreiro #:

Pending orders were meant for long-term or manual trading, not for scalping nor necessarily for automated trading.

This is wrong.
[Deleted]  
fxsaber #This is wrong.

Why is it wrong? For high speed trading or scalping where such tight create/delete cycles are used, pending orders create an unnecessary network load and brokers discourage it. 

[Deleted]  
Rob Josephus Maria Janssen #Hi Fernando, this has nothing to do with ‘narrow order’ placement. The error occurs independent of where the order is placed (or rather, attempted to be removed) in regards to current price levels

Are you stating that the tester fails to remove the order irrespective of how far away it is from the current price, even if it is way beyond the freeze level?

EDIT: I see now that I misunderstood the issue. I see that the bug was confirmed. My apologies!

 
Fernando Carreiro #Why is it wrong?
Because negative slippage in scalping can ruin a trading system. Using limit orders solves this problem. Of course, this requires using a truly reputable broker.
 
Rob Josephus Maria Janssen #:
Hi Stanislav, it does prevent automatic validation as the validation will test on freeze level handling and therefore will return on the ‘invalid stops’ error
Until a fix in the automatic validator is done, your only workaround is to check in the code if EA is running under a tester and do not remove limit orders if freeze level is nonzero (instead you can assign an expiration time, for example).
 
Fernando Carreiro #Are you stating that the tester fails to remove the order irrespective of how far away it is from the current price, even if it is way beyond the freeze level?
Yes. Please run the example I attached on page 1 and run it in backtest
 
Stanislav Korotky #:
Until a fix in the automatic validator is done, your only workaround is to check in the code if EA is running under a tester and do not remove limit orders if freeze level is nonzero (instead you can assign an expiration time, for example).
Then the algorithm will fail miserably and I will expect the validation to return on ‘not enough money’ or other money and margin related issues (I tried this) 
 
Fernando Carreiro #:

With such narrow thin order management placement, in real life trading during moments of high volatility and slippage, the same issue will also occur, irrespective of now it being only a tester issue.

Pending orders should not be used this way, and many brokers will actually issue a warning when they detect too many create/cancel operations on an account, and may even block you.

Instead, monitor the condition in real-time and use market orders, not pending orders. Pending orders were meant for long-term or manual trading, not for scalping nor necessarily for automated trading.

You are using the wrong "tool" for the type of strategy you are want to implement.

That's not the problem.

A discussion about the relevance of using pending orders or not, is off-topic.

 
Alain Verleyen #That's not the problem. A discussion about the relevance of using pending orders or not, is off-topic.
That’s exactly the response I was hoping for someone would post. Any clue on when we can expect an update that resolves this issue Alan?