Hey, I am want to set the expirationtime of a Pending stop order, depending of a bool and the starting time and ending time of aTimerange.
The bool will be set during optimization (if i want a 24Hours expiration) while the rest, decides if the Expiration should end on a different part of the range (depending if the range lays overnight or intraday)
In MQL4 it worked perfectly fine, but now i am only getting problems here. Any ideas? (Compler works fine, but during test i get "[Invalid expression]"
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hey, I am want to set the expirationtime of a Pending stop order, depending of a bool and the starting time and ending time of aTimerange.
The bool will be set during optimization (if i want a 24Hours expiration) while the rest, decides if the Expiration should end on a different part of the range (depending if the range lays overnight or intraday)
In MQL4 it worked perfectly fine, but now i am only getting problems here. Any ideas? (Compler works fine, but during test i get "[Invalid expression]"
the problem lays more likely here:
inp_TradeTimeBegin>inp_CheckTimeBegin ? checkTimeBegin+86400 : checkTimeEnd