Documentation

Applications

Last updated on 11. 9. 2020 by Tomas Vanek

The strategy tried to place stop/limit order at incorrect price

If you are running or backtesting strategie from StrategyQuant X in Metatrader 5, you might can see this info message in your logs:

020.08.26 00:00:01.102 Strategy 1.4.130 (MYMU20,H1) 2020.08.25 22:00 No pending orders of that type
2020.08.26 00:00:01.118 Strategy 1.4.130 (MYMU20,H1) —VERBOSE— 2020.08.25 22:00 Based on its logic, the strategy tried to place stop/limit order at incorrect price. Market price: 28220.00000000, min. price allowed: 28220.00000000, stop/limit order price: 27966.00000000

Is this an error? No. Here is explanation:

It means the entry conditions of the strategy were met and normally the strategy would open a new order. But in this case the calculated order price was out of the market and the order was skipped because of that.

Was this article helpful? The article was useful The article was not useful

Subscribe
Notify of
9 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
MOHAMMAD
6. 11. 2021 8:36 am

Hi. Thanks…but please let us know how to solve this problem? Thanks…

tomas262
Admin
Reply to  MOHAMMAD
8. 11. 2021 3:38 pm

As mentioned in the article, this is not a problem or error per se. Only information about why an order could not be placed

MOHAMMAD
Reply to  tomas262
9. 11. 2021 12:29 pm

Hi. Thanks…but unfortunately this is the problem because the user cannot run the back test in metatrader or etc. Is not? please let us know how to solve this problem in order to implement the back test. Thanks…

tomas262
Admin
Reply to  MOHAMMAD
9. 11. 2021 1:22 pm

Even if you see this “warning” the EA should trade normally. If there are no trade please send us an email with the strategy to support.com and we can check it
Please always send not only EA code but also the Strategyquant file (.sqx extension)

Last edited 20 days ago by tomas262
Kenneth Baggett
Kenneth Baggett
1. 12. 2022 8:25 pm

Hi, I have the same message. Based on the answers provided, I understand its not an error.

My question is this. Was the trade also skipped during strategy creation and backtests from SQ?

I am trying to figure out if my backtest results may differ from actual trading because of the skipped trades?

I guess, MonteCarlo would apply the same testing environment so no worries except for expectations on # of trades…

tomas262
Admin
Reply to  Kenneth Baggett
5. 12. 2022 5:10 pm

Yes, the trades are also skipped in SQX to match MetaTrader. In SQX you just won’t see the message you see in MT4

Derick Munoz
Derick Munoz
29. 5. 2023 10:26 pm

hi,

Could the ea operate without any problem even if that message continues to appear?

tomas262
Admin
Reply to  Derick Munoz
30. 5. 2023 8:44 pm

Yes, it is only an information message

Luis Felipe Salazar Jaramillo
Luis Felipe Salazar Jaramillo
21. 2. 2024 11:26 pm

Hey, that’s a real error.. as the price is calculated wrongly on MT5 and hence, no placing the order because is below the limit allowed. The strategy is successful on SQW but not when back testing on MT5.. Any solution found???

Thanks.