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
So, if you are use it for EXIT rule it is very risky.