Abdullah Saleh Abdullah Alnuaimi / Publications
Forum
Closing orders after a certain time
I'm trying to code a function to close any trade after x time I wrote a code for mt4 and it worked perfectly but not working on mt5 because mt5 uses class ctrade , so can someone modify it, Here's what i did with mql4; void TimeBasedSL( string symbol, double TimeBasedSLPeriod, int mode= 4 ) { bool