They are identical — you are reading values not colors and even if the colors are changed (default) that doesn't change HA values.
You should encapsulate your iCustom calls to make your code self-documenting.
take
candle color hekin ashi - Inflation - MQL4 and MetaTrader 4 - MQL4 programming forum
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
i would like to know which of below codes better to use in EA ?
is there any different ???
code 1
double haOpen= iCustom(Symbol(),0,"Heiken Ashi",Red,White,Red,White,2,1);
Code 2
double haOpen=iCustom(Symbol(),0,"Heiken Ash.ex4",2,1);