Documentation

Applications

Last updated on September 11, 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

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
MOHAMMAD
MOHAMMAD
November 6, 2021 8:36 am

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

tomas262
tomas262
Admin
Reply to  MOHAMMAD
November 8, 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
MOHAMMAD
Reply to  tomas262
November 9, 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
tomas262
Admin
Reply to  MOHAMMAD
November 9, 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 [email protected] and we can check it
Please always send not only EA code but also the Strategyquant file (.sqx extension)