I want to know how to get the closing price of 9th later bar.
which function should I use?
You can't predict the future. You must wait until 9 periods pass and use Close.
If you want 'the closing price of 9th earlier bar' that's easy Close
If I want to get closing price of 9th later bar I should write like this? :
Print("Current bar for USDCHF H1: " iClose("USDCHF",PERIOD_H1,9),";
Yes, or Close for the current chart.
Print("Current bar for USDCHF H1: ", iClose("USDCHF",PERIOD_H1,9));
Please enable the necessary setting in your browser, otherwise you will not be able to log in.