CRUCIAL - end on Friday error

i am running first portfolio on real account, every strategy has close friday at 9 pm, but i can see now one trade from the previous week



from the LOG file of MT i can see that there was some tries made to close the order, but the close procedure was looking for some appropriate price, why?


if i want to close without SL or TP (exit friday, exit day, exit bars, exit condition) i need to close at whatever price is

Attachments
DE_H1_800114151_S_LW_SQ3.mq4
(193.86 KiB)
CF error.jpg
(569.26 KiB)
DE_H1_800114151_S_LW_SQ3.sqx
(45.42 KiB)
  • Votes +17
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

h
#1

hankeys

14.02.2019 14:20

Task created

h
#2

hankeys

14.02.2019 14:24
and second one - what exactly means this setting in the MQL code?


//+------------------------------------------------------------------+

// -- SQ internal variables

// add word "extern" in front of the variable you want

// to make configurable

//+------------------------------------------------------------------+

int sqMaxSlippage = 5;


why its hardcoded as 5, is in points or pips? why not as extern so user could set up


its a slippage control on the entry side and on exit side too?


what will happen if i set slippage to 0? i dont want any slippage control, if i want any, it will be only on the ENTRY side. This is only the place where i can do the decision if i want to trade or not.


but on EXIT side there cant be any slippage control, because we will have opened orders left

m
#3

mabi

14.02.2019 14:37
Voted for this task.
Kc
#4

coensio

14.02.2019 14:52
Voted for this task.
JF
#5

Honzik

14.02.2019 16:10
Voted for this task.
l
#6

Loonly

14.02.2019 18:51
Voted for this task.
mp
#7

Michele

14.02.2019 22:12
Voted for this task.
e
#8

eowithrand

14.02.2019 22:31
Voted for this task.
n
#9

nitroz

15.02.2019 05:27
Voted for this task.
M
#10

MKquant

15.02.2019 07:19
Voted for this task.
MG
#11

maegop

15.02.2019 17:56
Voted for this task.
o
#12

Enric

16.02.2019 11:07
Voted for this task.
HH
#13

Hans

16.02.2019 13:07
Slippage is pip
-----
if slippage = 0 then you have to be sure that the order can be executed at the current price.
In the case of the exit rule, this means in the worst case, it can not be executed, which can cause a large loss. The alternative is "best price" - both are not a good idea

Slippage is mostly <2 for trading in market times

I think in your case was at the time of the exit:
1) the slippage> 5
2) the broker has no more tick data available
-----


The current handling is ok from my point of view.

h
#14

hankeys

16.02.2019 14:51
Hans are you talking here in the name of devteam?


i am afraid that you are not right in your findings

m
#15

mabi

17.02.2019 01:21
Exit on Friday is exit on Friday no matter about the slippage. There is different instruments XAU for xample. I  have 2 real DAX trades that was set to Exit on Friday 21:00 on my real account still running even thought it is Sunday.
h
#16

hankeys

17.02.2019 18:31

Attachment close friday.jpg added

another unclosed trades on Friday...please make fix asap...we cant trade this way
PV
#17

Cornus

17.02.2019 19:01
Voted for this task.
RL
#18

rickliao

18.02.2019 02:53
Voted for this task.
AT
#19

AngelTalavera

18.02.2019 11:22
Voted for this task.
TB
#20

Tomas Brynda

18.02.2019 12:36

Status changed from New to Fixed

We have already noticed this problem and made the entry and exit slippage editable.


In the next release there will be two variables in MQL code - 

  • sqMaxEntrySlippage - default value is 5 pips
  • sqMaxCloseSlippage - default value is 0 which means unlimited slippage

So the closing should work no matter how big the current slippage is.


These values will not be extern by default, but you can set them as extern if you want

DR
#21

mentaledge

25.02.2019 11:08
Voted for this task.
k
#22

Karish

25.02.2019 12:22
Voted for this task.
DB
#23

sumba

22.10.2019 03:39
Voted for this task.

Votes: +17

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please