Pinpoint place

 

Hello Experts,

I need your help.

When I do

double HighestPoint = High[iHighest(NULL,0,MODE_HIGH,200,0)];

then how can i find this bar number of the highest point.

Thanks a lot.

 

iHighest() returns the bar index (the number you're looking for).

int highest_bar_index = iHighest(NULL,0,MODE_HIGH,200,0);
double highest_price = High[highest_bar_index];

bar_index is the bar index (not the "number"), and highest_price is the highest price. Alert() them out and you'll see.

 
thisone:

iHighest() returns the bar index (the number you're looking for).

bar_index is the bar index (not the "number"), and highest_price is the highest price. Alert() them out and you'll see.


Very nice. Thank you.
Reason: