function not defined

Back to topics list To post a new topic, please log in or register
avatar
85
cryptex 2015.06.06 08: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);

 

avatar
Moderator
3206
angevoyageur 2015.06.06 11: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);
avatar
85
cryptex 2015.06.06 11: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);
  
  }

 

avatar
12983
WHRoeder 2015.06.06 13:44 #
 
for(i=0;i<=param-1;i++);
Post all the relevant information. What part of "empty controlled statement found" was not understood.
avatar
85
cryptex 2015.06.06 14: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"
avatar
126
Demos 2015.06.06 14: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

Back to topics list  

To add comments, please log in or register