CRUCIAL - retries in MQL code

there are many strats which want to put some trades on false price - this problem was discussed here many times - it was not an error, it is normal behavior of strategy



but after the changes the number of retries to 10000 in the MQL code, we are firing to broker many orders - they will cut us off


there need to be done changes in the MQL code, or we will be unable to trade

Attachments
MQL.jpg
(845.36 KiB)
  • Votes +10
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

h
#1

hankeys

20.04.2019 07:23

Task created

h
#2

hankeys

20.04.2019 07:25
also log file on my demo accs can have 20 MB only for 1 day
h
#3

hankeys

20.04.2019 07:39
there need to be 2 types of retries


1) context is busy - there need to be endless retries, because this is a problem only of platform

2) other problems - we need to lover the retries to a small value, for example max 10

h
#4

hankeys

20.04.2019 07:40
Voted for this task.
m
#5

mabi

20.04.2019 08:19
Voted for this task.
IH
#6

clonex / Ivan Hudec

20.04.2019 09:34
Voted for this task.
o
#7

Enric

20.04.2019 10:01
Voted for this task.
BS
#8

BobS

20.04.2019 10:46
Voted for this task.
DR
#9

mentaledge

20.04.2019 11:00
Voted for this task.
PS
#10

ps21

20.04.2019 14:05
Voted for this task.
n
#11

nitroz

20.04.2019 15:56
Voted for this task.
l
#12

Loonly

21.04.2019 06:40
Voted for this task.
e
#13

eowithrand

21.04.2019 23:41
Voted for this task.
MF
#14

Mark Fric

23.04.2019 09:52

Status changed from New to Fixed

good point. I added one more variable retry_attempts_bad_price=3, and updated OrderReliable library code.


It wil use only 3 attempts if the error is invalid price.

h
#15

hankeys

23.04.2019 10:54
good choice - B121 realease date is when?


because we need this solution asap - if its possible to send here new template?

MF
#16

Mark Fric

23.04.2019 11:16

Attachment Main.tpl added

Attachment OrderReliable.mqh added

B121 release is planned to this Friday - if we'll fix all the MultuiCharts issues and test it throughoutly.


I'm attaching two updated files - they should be copied to \StrategyQuant\extend\Code\MetaTrader4 folder.


But please make a backup first, we made several changes in other MT4 template files, but they will not work without new version of SQ, so I cannot send a complete folder.

I'm not 100% sure it will work with only these two files, but as fa as I checked it shouldn't be dependent on any other changes.


h
#17

hankeys

23.04.2019 11:43
the Friday is good and quick enough, ill wait

Votes: +10

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please