ilowest function

 

When i use; 

int LC = (iLowest(NULL,0, MODE_LOW,400,1));

I'm getting small values and not something within Price range of 400 bars. has anybody been through this problem?

 
Specify a symbol and a correct timeframe.


 
Sanjay Rathore:

When i use; 

I'm getting small values and not something within Price range of 400 bars. has anybody been through this problem?

There is no problem.  iLowest does not return a price.

Read the documentation and find out what iLowest returns.

 
Sanjay Rathore:

When i use; 

I'm getting small values and not something within Price range of 400 bars. has anybody been through this problem?

Like was said above, it tells you the index of the lowest point in that range, To get the value

//--- MT4
double lowestPrice = Low[LC];

//--- MT5
//depends on where you are assessing it from, withing the OnCalculate function,
double lowestPrice = low(LC);                   // working with the assumption your arrays are set as series

//--- Outside OnCalculate
double lowestPrice = iLow(_Symbol, _Period, LC);
Reason: