Download MetaTrader 5

Heiken ash iCustom error please help

To add comments, please log in or register
prweza
238
prweza  

Hi,

 I'm getting errors on my heiken  ash ea on tick part. What is the problem? The error says " invalid array access"

 Please help, thanks.

 

 / Tick event handler

void OnTick()

  {

double lowHigh =  iCustom(NULL,0,"Heiken Ashi",Low/High,High/Low,Open,Close,0,0);

double highLow =  iCustom(NULL,0,"Heiken Ashi",Low/High,High/Low,Open,Close,1,0);

double opEn =  iCustom(NULL,0,"Heiken Ashi",Low/High,High/Low,Open,Close,2,0);

double clOse =  iCustom(NULL,0,"Heiken Ashi",Low/High,High/Low,Open,Close,3,0);

 

 

 

 

Thanks. 

whroeder1
15913
whroeder1  
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. double lowHigh =  iCustom(NULL,0,"Heiken Ashi",Low/High,High/Low,Open,Close,0,0);
    High, Low, Open, and Close are arrays. What does an array divided by an array mean?
  3. You should write a self documenting function instead of calling iCustom directly, see Detailed explanation of iCustom - MQL4 forum
To add comments, please log in or register