Find Open[0] for MT4 indicator

 

Hi

assume that we have this indicator setting:

iForce(NULL,0,period,method,price,0);

I want to know what is the amount of iForce at Open[0]

I searched about it, But I didn't find a result.

Thank you

 
 double val=iForce(NULL,0,period,method,PRICE_OPEN,0);
 
goverkms:
 double val=iForce(NULL,0,period,method,PRICE_OPEN,0);

Thank you for your nice answer, Can you please help me about iStochastic() indicator?

Because there is no a ENUM_APPLIED_PRICE for iStochastic()

 

(NULL,0,5,3,3,MODE_SMA,price_field,MODE_MAIN,0)


Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close.

 
goverkms:

(NULL,0,5,3,3,MODE_SMA,price_field,MODE_MAIN,0)


Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close.

So there is no way to find out what is the amount of iStochastic at open[] candle?
 
i think its mistake in documentation 1 mean open close
 
A good way to determine the selected Stoch line value at an open of the candle would be to use the 'isNewBar()' function as we discussed. Inside the OnTick() function you make an if statement that checks whether a new bar is formed. If so, then check the Stoch value with a shift of 1. Then you'll get an the desired Stoch line value at the open[1].
 
robila:
A good way to determine the selected Stoch line value at an open of the candle would be to use the 'isNewBar()' function as we discussed. Inside the OnTick() function you make an if statement that checks whether a new bar is formed. If so, then check the Stoch value with a shift of 1. Then you'll get an the desired Stoch line value at the open[1].
Thank you, It's nice