I'm trying to modify HA indicator by adding EMA as another condition.
I need to arrow up on white candle and haHigh>EMA14 but it look seem EMA return incorrect value
I have try for long hours to find out but really could not see where I was wrong
for(i=pos; i<rates_total; i++)
EMA14 = iMA(NULL, 0, 14, 0, MODE_EMA, PRICE_CLOSE, i);
CrossUp[i] = EMA14;
Thanks in advance