Dislikedvery good idea, this brings me to another one:
maybe instead of moving average better using the heiken ashi candles?
if red and 2 bodies with minimum 4 pips -> sell. if green and 2 bodies with minimum 4 pips -> buy.
i like the HA candles very much to indicate a trend.Ignored
Here is code to replace when using heiken ashi candles in Steve EA.
void ReadIndicatorValues()
{
trend = none;
//MinCandleSize
//Previous two candles must be >= MinCandleSize - default 4 pips
double length = MinCandleSize * Point;
double extent;
double hOpen1, hClose1, hOpen2, hClose2;
hClose1 = (Open[1] + High[1] + Low[1] +Close[1]) / 4;
hOpen1 = (Open[2] + Close[2]) / 2;
hClose2 = (Open[2] + High[2] + Low[2] +Close[2]) / 4;
hOpen2 = (Open[3] + Close[3]) / 2;
extent = hOpen1 - hClose1;
if (((extent < length) && extent > 0) || ((extent > -length) && extent < 0)) return;//Candle too small
extent = hOpen2 - hClose2;
if (((extent < length) && extent > 0) || ((extent > -length) && extent < 0)) return;//Candle too small
//Look for long setup
if (hClose1 > hOpen1 && hClose2 > hOpen2 && hClose1 > hClose2 ) trend = up;
//Look for short setup
if (hClose1 < hOpen1 && hClose2 < hOpen2 && hClose1 < hClose2 ) trend = down;
}//void ReadIndicatorValues()
Follow me to the Promised Land