Dislikedhi to all, I would need the code to open trade when the indicator Heiken Ashi changes color (attention, not Heiken Ashi smoothed, but only Heiken Ashi) thus building an expert that has as its basis this indicator, by implementing, then other filters of other indicators this is an example of code that I know of with Heiken Ashi, and it is with open high low close, but I repeat, I seek only when it changes color //------------------------------------------- // ENTRY RULES // LONG: ((HeikenAshiOpen(1) > Open(1)) And ((HeikenAshiClose(1) > Close(1))...Ignored
You need to use the iCustom Function, just like this:
Inserted Code
double Open_ha = iCustom(NULL,PERIOD_CURRENT,"Heiken Ashi",2,1); double Close_ha = iCustom(NULL,PERIOD_CURRENT,"Heiken Ashi",3,1); Open_ha>Close_ha //--- Bearish Candle Open_ha<Close_ha //--- Bullish Candle