Ok, so I’ve done a bit more tweaking to the entry conditions…
First off, what I did was set buffers for what constituted a “crossover”, whether MACD or EMA. In other words, in order to be considered a crossover, the values not only needed to cross each other, but cross each other and get a certain value over the cross.
So, for example an EMA crossover only becomes a ‘true’ crossover, if it goes up by more than 0.0002 (or whatever number) over the cross… This should weed out cross overs that barely touch each other on a horizontal pattern…
I also added the ability for similar buffers to the RSI, so you can choose whether you want >50 to actually be >50, or perhaps only if its >55…
after some backtesting using the last 2 months…
a. the MACD cross over entries seem to lose overall, regardless of any buffers I put between them…
[U]b. the EMA entries, using the buffers, substantially improved. In fact, when taking the MACD entries out of the picture, and using an EMA buffer of 0.0007, what was previously a loss of ~650 pips over those 2 months, turned into a [I][B]gain of ~300 pips[/B][/I].[/U] 15 trades made, 12 won, 3 lost.
c. RSI buffer seems to help, but only barely when using a buffer of 5 (anything more loses more than it gains)…
I’ve attached the most recent version of the EA - this one has a whole bunch of external parameters that you can change and tweak, so you can play with it yourself if you wish and see what gives you the best results…
Lots = 0.1 - Number of lots to bet
TakeProfitNum = 0.0025; - This is the take-profit number of pips as per #2 rule set - default to 25.
StopLoss = 30; - This is stop-loss, default as per rule set.
EmaBuffer = 0.0007; - Buffer used for EMA crossover entries
MacdBuffer = 0.1111; - Buffer used for MACD entries (should be set to ~0.0001-0.0005, default to 0.1111 to disable MACD entries).
MacdBufferB = 0; - Buffer used for the MACD variable for EMA entries.
RsiBuffer = 5; - Buffer used for the RSI check.
TakeProfit = 25; - Not used.
TrailingStop = 0; - Not used.