Strategy tried to place order

I have some lines in log which frustrates me.
I also found the same issue in bug database however i am not using bid/ask block during strategy generation.https://roadmap.strategyquant.com/tasks/sq4_3817
How to fix this issue?
I've attached sqx files below.
Thanks!

2019.04.01 09:30:02.215 Strategy 1.2.169 - Optimization 0.14.606 AUDNZD,M30: - SQ LOG 2019.04.01 19:30 Strategy tried to place stop/limit order at incorrect price. Market price: 1.04454, max. price allowed: 1.04454, stop/limit order price: 1.04642

2019.04.01 09:30:03.517 Strategy 1.1.160 - Optimization 0.19.823 CADJPY,M30: - SQ LOG 2019.04.01 19:30 Strategy tried to place stop/limit order at incorrect price. Market price: 83.47, min. price allowed: 83.47, stop/limit order price: 82.888
Attachments
Strategy 11160 - Optimization 019823.sqx
(41.40 KiB)
Strategy 12169 - Optimization 014606.sqx
(31.97 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

VO
#1

GRoundofInferno

02.04.2019 21:13

Task created

VO
#2

GRoundofInferno

02.04.2019 21:21
I am using SQX Build 119
TB
#3

Tomas Brynda

09.04.2019 10:24

Status changed from New to Fixed

Hi GRoundofInferno,

there's no need to be frustrated because of these messages in log. It is not some kind of a bug, it just means that the strategy tried to open an order, but it had incorrect open price set by the strategy rules.


It is all about the strategy logic. For example there's this rule in strategy 11160: Open Short order at (ParabolicSAR(Main chart,0.02, 0.19)[2] + (0.24 * BarRange(Main chart)[3])) Limit;

Sometimes the combination of ParabolicSAR and BarRange gives a valid price and the order is executed. Sometimes the price is invalid, so the strategy doesn't execute the order and waits for another entry signal.


There's no need to fix anything.


Best regards,

Tomas


VO
#4

GRoundofInferno

09.04.2019 16:13

Attachment failed_deletion_Non_relyable_error_3.png added

Thank you for your respond.

Can you please also comment following lines from screenshot.

And also some errors from video https://www.screencast.com/t/iLyBonuw9

TB
#5

Tomas Brynda

10.04.2019 07:50

Status changed from Fixed to Waiting for information

Hi,

can you attach some of the problematic strategies?

VO
#6

GRoundofInferno

11.04.2019 20:08

Attachment strategies.zip added

Hello, I've added strategies. 

What can you say about "unknown ticket #for order delete function" because it looks like massive error?


TB
#7

Tomas Brynda

24.04.2019 13:42

Status changed from Waiting for information to In progress

TB
#8

Tomas Brynda

25.04.2019 21:15

Status changed from In progress to Waiting for information

Hello,

I was watching your video and going through source codes of the attached strategies. I think the only thing that can cause the "unknown ticket XX for OrderDelete function" error is using the same magic number in multiple strategies. Are you sure you use unique magic number for each strategy?

VO
#9

GRoundofInferno

25.04.2019 21:33
I've paid attention to put the unique magic numbers for EAs
TB
#10

Tomas Brynda

31.05.2019 16:45

Status changed from Waiting for information to In progress

AA
#11

echelon

03.07.2019 15:05
Voted for this task.
TB
#12

Tomas Brynda

02.09.2019 07:43

Status changed from In progress to Waiting for information

Attachment MTHistory.png added

I let run your strategies on a demo account and everything is working - take a look at the screenshot.


Maybe some EA is interfering with the other ones. Is there some other than SQ EA running on your terminal? 

TB
#13

Tomas Brynda

01.11.2019 16:07

Status changed from Waiting for information to Fixed


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