[138] An issue with strategyID in the SourceCode.

Dear SQ Team

I find an issue with the SourceCode, it will cause an error when I running EA.
I know you always use strategyID to record some Global Variables in MT4/MT5 for Strategy Exit use.
But there is a big error when I use it.
At the first,I find the when I load the same strategy into SQX the strategyID will be change every time.
That's mean if I save the same EA as mql5 the strategyID will be change also.
So, if I save strategy as mql5 EA and use it for trading and hold position.EA will create the Global Variables with strategyID.
But, if I save the same strategy as mql5 at the second time, the strategyID will change.
At this moment, when I copy the new mql5 file paste and cover old mql5 file(same EA same name).

It will EXIT order failed. Because the strategyID is change so EA can't find its own exit setting.
The result it user can't replace EA when EA has position.
So, can it possible to make the strategyID fixed? thank you.


Please see the record video I will explain it in, thank you. 
https://youtu.be/nCWSX5L89p0

Attachments
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status New
  • Priority Normal

History

SC
#1

fxchess

28.03.2024 04:22

Task created

SC
#2

fxchess

05.04.2024 09:27

Attachment 1712301346808.jpg added

1712301346808.jpg
(307.25 KiB)
By the way, I find the risk to use Global Variable in MT5 please see attachments, it only keep 4 weeks in MT5.

So, if you are use it for EXIT rule it is very risky.


Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please