Download MetaTrader 5
To add comments, please log in or register
Examine the Top MetaTrader 5 signals. Choose the best one and subscribe to it!
cryptex23
268
cryptex23 2015.06.06 06:00 

I am running this inside a for loop,

Strangely enough, it keeps giving me "function not defined error." I have defined lookback as an array

lookback[i,1]= iClose("USDCHF",PERIOD_M15,param-1-i);
Alain Verleyen
Moderator
28535
Alain Verleyen 2015.06.06 09:39  
cryptex:

I am running this inside a for loop,

Strangely enough, it keeps giving me "function not defined error." I have defined lookback as an array

 


lookback[i][1]= iClose("USDCHF",PERIOD_M15,param-1-i);
cryptex23
268
cryptex23 2015.06.06 09:49  
angevoyageur:

hey angevoyageur, thanks for the suggestion; unfortunately the problem still persists. I am defining lookback as

double lookback[200][4];
int i;
for(i=0;i<=param-1;i++);
  {
  lookback[i][1]= iClose("USDCHF",PERIOD_M15,param-1-i);
  
  }
whroeder1
13600
whroeder1 2015.06.06 11:44  
for(i=0;i<=param-1;i++);
Post all the relevant information. What part of "empty controlled statement found" was not understood.
cryptex23
268
cryptex23 2015.06.06 12:18  
WHRoeder:
Post all the relevant information. What part of "empty controlled statement found" was not understood.
Please take off the semi colon, I have removed it. I inadvertently added that as I am used to coding in MATLAB. I am not sure what the source of error could be"iClose-function not defined"
Demos Stogios
184
Demos Stogios 2015.06.06 12:49  

hello,

it works just fine in my computer, so I guess the problem could be somewhere else inside your program  ; maybe provide some more code? I mean, a problem somewhere else, a forgotten semicolon for example, could land as a compiler error anywhere in your program

/
To add comments, please log in or register