Attachment EURJPY_Strategy 21958_1H.sqx added
Attachment EURJPY_Strategy 21958_1H.mq5 added
Status changed from Waiting for information to Fixed
There are 2 ways to solve this.
Steps to solve it
First, open your MQL5 file
Second, search "class CExitOnFriday : public CTradingOption" and scroll down a little until you see
private: datetime thisFridayExitTime; datetime thisSundayBeginTime; datetime EOFDayTime; bool closedThisWeek;
and modify to
private: datetime thisFridayExitTime; datetime thisSundayBeginTime; datetime thisDefaultTime; datetime EOFDayTime; bool closedThisWeek;
Third, scroll down a little until you see
CExitOnFriday() { thisFridayExitTime = D'1970.01.01'; thisSundayBeginTime = D'1970.01.01'; closedThisWeek = false; }
and modify to
CExitOnFriday() { thisDefaultTime = D'1970.01.01'; thisFridayExitTime = D'1970.01.01'; thisSundayBeginTime = D'1970.01.01'; closedThisWeek = false; }
Fourth, scroll down a little bit until you see
if(!closedThisWeek && currentTime >= thisFridayExitTime) {
and modify to
if(!closedThisWeek && currentTime >= thisFridayExitTime && thisDefaultTime != thisFridayExitTime) {
Thank you.