It's best to refer to iCustom documentation page.
Hi
You can use those functions to get the prices of HA candles (you need only open and close price):
double haOpen(int i){ return(norm(iCustom(Symbol(), strategyTimeframe, "Heiken Ashi", 2,i))); } double haClose(int i){ return(norm(iCustom(Symbol(), strategyTimeframe, "Heiken Ashi", 3,i))); }
and for example when haOpen(1)<haClose(1) – that means that last closed candle is bullish. And you can also compare other candles: haClose(1)<haOpen(3) you can add any conditions you want then.
Best Regards

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I want to use the Heikin Ashi for trailing my stop loss. That is, when i'm in bullish trend if the candle n closes below the opening of the n-2 candle i close the order. Since there is already an HA indicator that has been made can you help me reading this to use it with iCustom ?
here's the code