This indicator is based on Heiken Ashi and can be found here : Heiken Ashi Real - MQL4 Code Base
Here is an idea for an EA I find really accurate when trading manually. Here is the general idea:
When green line crosses above the red line then it's a bullish entry.
When green line crosses below the red line then it's a bearish entry.
NB. We should be able to determine a good entry by the distance between the red and the green signal because sometimes it kisses the red line but never crosses.
Entry order can be made with SL right below the highest/lowest swing of the previous 3 bars depending if it's bullish or bearish signal :
Bullish signal: The previous swing low calculated on 1 previous bar (should be able to modify this) sets the SL.
Bearish signal The previous swing high calculated on 1 previous bar (should be able to modify this) sets the SL.
You should have the possibility to set TP but I think it's best to set trailing stop 5-10 pips (+ spread/comission) every 10 to 20 pip (+spread/comission) step instead to let the winners run and the losers lose little.
Honestly I really like this indicator it's simple and accurate.