Strategy tried to place stop/limit order at incorrect price

I am getting lots of 


2019.07.03 20:00:04.024 Strategy 4.8.143 EURUSD,H1: - SQ LOG 2019.07.03 16:00 Strategy tried to place stop/limit order at incorrect price. Market price: 1.12821, max. price allowed: 1.12821, stop/limit order price: 1.13315 2019.07.03 20:00:04.024 Strategy 4.8.143 EURUSD,H1: - SQ LOG 2019.07.03 16:00 Opening order type SELL STOP with price 1.13315. Current market prices: 1.12832 / 1.12821 2019.07.03 19:56:18.000 Strategy 4.8.143 EURUSD,H1: - SQ LOG 2019.07.03 15:56 Strategy tried to place stop/limit order at incorrect price. Market price: 1.1284, min. price allowed: 1.1284, stop/limit order price: 1.12611 2019.07.03 19:56:18.000 Strategy 4.8.143 EURUSD,H1: - SQ LOG 2019.07.03 15:56 Opening order type BUY STOP with price 1.12611. Current market prices: 1.1284 / 1.12827 2019.07.03 19:56:17.620 Strategy 4.8.143 EURUSD,H1: initialized 2019.07.03 19:56:17.620 Strategy 4.8.143 EURUSD,H1: - SQ LOG 2019.07.03 15:56 -------------------------------------------------------- 2019.07.03 19:56:17.620 Strategy 4.8.143 EURUSD,H1: 2019.07.03 15:56 -------------------------------------------------------- 2019.07.03 19:56:17.620 Strategy 4.8.143 EURUSD,H1: - SQ LOG 2019.07.03 15:56 Starting the EA 2019.07.03 19:56:17.620 Strategy 4.8.143 EURUSD,H1: 2019.07.03 15:56 Starting the EA 2019.07.03 19:56:17.620 Strategy 4.8.143 EURUSD,H1: - SQ LOG 2019.07.03 15:56 -------------------------------------------------------- 2019.07.03 19:56:17.620 Strategy 4.8.143 EURUSD,H1: 2019.07.03 15:56 -------------------------------------------------------- 2019.07.03 19:56:17.521 Strategy 4.8.143 EURUSD,H1 inputs: CustomComment=Strategy 4.8.143; MagicNumber=11112; smm=----------- Money Management - Fixed size -----------; mmLots=0.3; seod=----------- Exit At End Of Day -----------; ExitAtEndOfDay=false; EODExitTime=23:04; seof=----------- Exit On Friday -----------; ExitOnFriday=false; FridayExitTime=22:40; sltr=----------- Limit Time Range -----------; LimitTimeRange=false; SignalTimeRangeFrom=08:00; SignalTimeRangeTo=16:00; ExitAtEndOfRange=false; smtpd=----------- Max Trades Per 2019.07.03 19:56:03.213 Expert Strategy 4.8.143 EURUSD,H1: loaded successfully



So in general the generated EA cannot open/modify any trade, tested on FXOpen & FXPro demo account.

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

MF
#1

Mark Fric

25.07.2019 13:06

Status changed from New to Refused

this doesn't look like an error, perhaps a bad strategy. There is a check whehter order has correct price, if yes it logs it. 

But it doesn' tpreven tsrategy from opening correct orders.


In your log you can clearly see for example:


Opening order type BUY STOP with price 1.12611. Current market prices: 1.1284 / 1.12827


So the current market price (Ask / Bid) is 1.1284 / 1.12827 and EA tries to open Buy Stop order below it. It is not possible. Buy Stop order can be opened only above current market price.


If you stil think there is some error please attch your strategy in .sqx format.


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please