But there is a problem when the EA is running then I change the time frame. After changing the time frame, the EA will not work well. Therefore I keep suggesting running one expert each terminal and not changing the time frame. If you change the timeframe, then you should restart your terminal.
If you still want to run 2 EA on a terminal, then use the same time frame.
Time Trading Problem
By default the expert will work from 22-5 GMT. Actually this is related to Alpari UK server time. No matter if Alpari apply DST policy, then this time trading should not change.
To remove the ambiguity I take the Sunday opening as zero hour. Now you can match your trading time by following this rule. Mark your broker’s opening time at Sunday, and then subtract with 2, and this is your Open Hour. The difference between Open Hour and Close Hour is 7.
There is a problem if your broker has not the same time with Alpari server. There is a filter “No Trade at first 2 hour on Sunday”. You can solve this problem by changing MQL code. Just find the statement
if (DayOfWeek()==1&&Hour()<2)TradingTime=0;.If you have match your trading time, then just change number
2by adding your Open Hour with 4.
NormalSpread Variable
Basically I use this variable to simulate whenever the Market Spread is changing. Do a back testing on EurChf and change this variable with 4. You will see at the end of your back test, the number of trade will reduce dramatically (if current spread is 3). Therefore if you run this EA in demo account or real account, if current spread is 4, and you keep the NormalSpread is 3, it’s mean the EA work under 5 spread condition. To make EA work with current spread condition set NormalSpread Variable equal to current market spread or give a big number such as 100 and let EA work no matter with spread.
0 komentar:
Post a Comment