iClose - Undeclared Identifier

Back to topics list To post a new topic, please log in or register
avatar
2
nelhajj 2016.09.23 09:58
 

I've been getting the Undeclared Identifier error on iClose, iOpen, iHigh and iLow, and I have no idea how to fix this.

for example in this: 

int      HighestCloseBarBefore = iHighest(NULL,PERIOD_H4,MODE_CLOSE,RoomCandles,(a+1));
int      HighestCloseBarAfter = iHighest(NULL,PERIOD_H4,MODE_CLOSE,RoomCandles,(a-RoomCandles));
double   HighestCloseValueBefore = iClose[NULL,PERIOD_H4,HighestCloseBarBefore];
double   HighestCloseValueAfter = iClose[NULL,PERIOD_H4,HighestCloseBarAfter];

 Can anyone help?

avatar
Moderator
3404
GumRai 2016.09.23 10:45 #
 
Don't use iClose[], it is iClose()
avatar
2
nelhajj 2016.09.23 10:47 #
 
GumRai:
Don't use iClose[], it is iClose()

Wow i feel so stupid! that was a useless hour spent!

Thanks GumRai :)

Back to topics list  

To add comments, please log in or register