read the past values of SYMBOL_SESSION_CLOSE

 

hi everybody.

we can read the last value with SymbolInfoDouble(_Symbol,SYMBOL_SESSION_CLOSE)  (this is for candle number 0 (live candle))

but i want to read the past values of SYMBOL_SESSION_CLOSE (for candle number 1,2,3,...) ?!?!  

 
There is no index parameter, so you obviously can't.
 

Actually there is. we have SYMBOL_SESSION_CLOSE in IR stock market.

please tell me how can i do it??

 

SYMBOL_SESSION_CLOSE

Close price of the current session


It is related to the current session, not to any candle.