Quote:
|
Originally Posted by xxDavidxSxx
Can any one translate this ea for me. Its in russian. There seems to be more to it than just cci and ma cross. I got it making trades but seems to be more to it.
I think it could be a good scapler. But I cann't figure out what triggers entry.
Dave
|
I translated few words to English (attached).
I looked in side the code and this EA works as the following.
First of all we have cci1, cci2 and ema.
Code:
cci1 = iCCI(NULL, 0, CCI_Period, PRICE_TYPICAL, 1);
cci2 = iCCI(NULL, 0, CCI_Period, PRICE_TYPICAL, BarsForCheck);
ema = iMA (NULL, 0, EMA_Period, 0, MODE_EMA, PRICE_TYPICAL, 1);
cci1 is CCI with Typical Price and period of 55 on the first bar (previous from current one).
cci2 is the same with cci1 but during the 4 bars ago.
ema is EMA with Typical Price and period of 34 on the first bar (previous from current one).
Signal for buy:
Code:
cci1>100 && cci2<-100 && ema>Close[1]
It means the following: CCI value should be above 100 on the previous bar and below 100 during the 4 bars ago. Besides EMA should be above closed price.
Signal for sell:
Code:
cci1<-100 && cci2>100 && ema<Close[1]
Opposite for sell.
Closng the orders:
sl, tp, ts and signals for exit.
I did not find any single case on the history which meets this sell/buy requirements.