Closed csikosbalint closed 10 years ago
I just decided to run the tests on my favorite pair and time frame, which is EUR/USD 1-hour. Here’s what I got:
Read more: http://www.babypips.com/blogs/art-of-automation/forex-expert-advisors-1113.html#ixzz2k47Nb7qz
This issue has been suspended till tester works.
Waiting for dukascopy community answer... beside all done.
http://codebase.mql4.com/source/27370
LOT=0.01 time= (GMT) 4-19
TP(long)=50pip TP(short)=75pip
SL(long)=80pip SL(short)=50pip
Trailing stop=30; MACDOpenLevel=3.0 MACDCloseLevel=2.0 MATrendPeriod=26
MacdCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0); MacdPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1); SignalCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0); SignalPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1); MaCurrent=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0); MaPrevious=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1);
If there is an order open: -CLOSE BUY: if (MacdCurrent>0 && MacdCurrent<SignalCurrent && MacdPrevious>SignalPrevious) if (MacdCurrent>(MACDCloseLevel*sdPoint)) {
-CLOSE SELL: if (MacdCurrent<0 && MacdCurrent>SignalCurrent) if (MacdPrevious<SignalPrevious && MathAbs(MacdCurrent)>(MACDCloseLevel*sdPoint)) {