Can any one tell me the diffrence of these codes ???

 

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);

 
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

Reason: