YES!!! THIS is what I'm talking about! I love it!
Guys, if you need help implementing what you are wanting to test, just let me know.
For all, I added a 10 EMA in my version of the EA. I will go through steps I took.
I changed STF and TTF at top of EA:
extern int TTF = 15;
extern int STF = 5;
Added input to use EMA, set it to true, and also set use20LWMA to false:
extern bool Use10EMAmtf = True;
Added section under Variable Begin section (Edit: and replaced LWMA which was wrong):
else if(!UseVQ7 && !UseVQzz && !UseHASmtf && !UseRHT3 && Use20LWMAmtf && !Use10EMAmtf) {
IndicatorUsed = "20LWMAmtf";
double TTFLWMA1 = iMA(NULL,STF,(20*(TTF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 1);
double TTFLWMA = iMA(NULL,STF,(20*(TTF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 0);
double STFLWMA1 = iMA(NULL,STF,(20*(STF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 1);
double STFLWMA = iMA(NULL,STF,(20*(STF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 0);
if(TTFLWMA > TTFLWMA1 && STFLWMA > STFLWMA1) { Trend = "UP"; TrendColor = ColorUp; }
else if(TTFLWMA < TTFLWMA1 && STFLWMA < STFLWMA1) { Trend = "DOWN"; TrendColor = ColorDown; }
else { Trend = "FLAT"; TrendColor = ColorNeutral; }
} else if(!UseVQ7 && !UseVQzz && !UseHASmtf && !UseRHT3 && !Use20LWMAmtf && Use10EMAmtf) {
IndicatorUsed = "10EMAmtf";
double TTFEMA1 = iMA(NULL,STF,(10*(TTF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 1);
double TTFEMA = iMA(NULL,STF,(10*(TTF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 0);
double STFEMA1 = iMA(NULL,STF,(10*(STF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 1);
double STFEMA = iMA(NULL,STF,(10*(STF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 0);
if(TTFEMA > TTFEMA1 && STFEMA > STFEMA1) { Trend = "UP"; TrendColor = ColorUp; }
else if(TTFEMA < TTFEMA1 && STFEMA < STFEMA1) { Trend = "DOWN"; TrendColor = ColorDown; }
else { Trend = "FLAT"; TrendColor = ColorNeutral; }
}
That's it. (Edit: This also fixes LWMA whicg was incorrect, but code above is correct i think) In MetaEditor, that's all you'd have to change, then save as new name, with today's date, the author's name of the change, and hit F5 to Compile a .ex4 that is seen and used by MetaTrader 4. You can use any internal function such as iMA, iMACD, iRSI, iStochastic, etc, in the above example ...
But this setup I first tested starting on 18th with WaitForBarClose as False. It took way to many trades and took $500 from $5000 demo. Set it back to default WaitForBarClose as True, and the account is back at break-even this morning. That's a good sign, without any TP, BE, etc. put in. Only using Semafor 3 as SL and not 1 or 2, risking only 2% per trade, the MM looks like it will make this a winner. So only improvement from here on this one. But because I am prone to system-jumping, which is not profitable, I will just not do anything else right now (because I see a profitable setup, I NEED to leave it alone to actually run and TEST), chill, watch some movies, and let the EA trade on demo to see if it continues in profitability.
Even though I've given instructions to entice those of you that don't code to actually look at some code, because it's made simple as possible for you (and how cool is it to make something happen? Feels good don't it? Few changes, and it's a new EA), if you still want me to post an EA with this change, I can do so.
Kind regards,
Don
Guys, if you need help implementing what you are wanting to test, just let me know.
For all, I added a 10 EMA in my version of the EA. I will go through steps I took.
I changed STF and TTF at top of EA:
extern int TTF = 15;
extern int STF = 5;
Added input to use EMA, set it to true, and also set use20LWMA to false:
extern bool Use10EMAmtf = True;
Added section under Variable Begin section (Edit: and replaced LWMA which was wrong):
else if(!UseVQ7 && !UseVQzz && !UseHASmtf && !UseRHT3 && Use20LWMAmtf && !Use10EMAmtf) {
IndicatorUsed = "20LWMAmtf";
double TTFLWMA1 = iMA(NULL,STF,(20*(TTF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 1);
double TTFLWMA = iMA(NULL,STF,(20*(TTF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 0);
double STFLWMA1 = iMA(NULL,STF,(20*(STF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 1);
double STFLWMA = iMA(NULL,STF,(20*(STF/STF)),0,MODE_LWMA,PRICE_WEIGHTED, Current + 0);
if(TTFLWMA > TTFLWMA1 && STFLWMA > STFLWMA1) { Trend = "UP"; TrendColor = ColorUp; }
else if(TTFLWMA < TTFLWMA1 && STFLWMA < STFLWMA1) { Trend = "DOWN"; TrendColor = ColorDown; }
else { Trend = "FLAT"; TrendColor = ColorNeutral; }
} else if(!UseVQ7 && !UseVQzz && !UseHASmtf && !UseRHT3 && !Use20LWMAmtf && Use10EMAmtf) {
IndicatorUsed = "10EMAmtf";
double TTFEMA1 = iMA(NULL,STF,(10*(TTF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 1);
double TTFEMA = iMA(NULL,STF,(10*(TTF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 0);
double STFEMA1 = iMA(NULL,STF,(10*(STF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 1);
double STFEMA = iMA(NULL,STF,(10*(STF/STF)),0,MODE_EMA,PRICE_MEDIAN, Current + 0);
if(TTFEMA > TTFEMA1 && STFEMA > STFEMA1) { Trend = "UP"; TrendColor = ColorUp; }
else if(TTFEMA < TTFEMA1 && STFEMA < STFEMA1) { Trend = "DOWN"; TrendColor = ColorDown; }
else { Trend = "FLAT"; TrendColor = ColorNeutral; }
}
That's it. (Edit: This also fixes LWMA whicg was incorrect, but code above is correct i think) In MetaEditor, that's all you'd have to change, then save as new name, with today's date, the author's name of the change, and hit F5 to Compile a .ex4 that is seen and used by MetaTrader 4. You can use any internal function such as iMA, iMACD, iRSI, iStochastic, etc, in the above example ...
But this setup I first tested starting on 18th with WaitForBarClose as False. It took way to many trades and took $500 from $5000 demo. Set it back to default WaitForBarClose as True, and the account is back at break-even this morning. That's a good sign, without any TP, BE, etc. put in. Only using Semafor 3 as SL and not 1 or 2, risking only 2% per trade, the MM looks like it will make this a winner. So only improvement from here on this one. But because I am prone to system-jumping, which is not profitable, I will just not do anything else right now (because I see a profitable setup, I NEED to leave it alone to actually run and TEST), chill, watch some movies, and let the EA trade on demo to see if it continues in profitability.
Even though I've given instructions to entice those of you that don't code to actually look at some code, because it's made simple as possible for you (and how cool is it to make something happen? Feels good don't it? Few changes, and it's a new EA), if you still want me to post an EA with this change, I can do so.
Kind regards,
Don