I want to know how to get the closing price of 9th later bar
You can't predict the future. You must wait until 9 periods pass and use Close[1].
If you want 'the closing price of 9th earlier bar' that's easy Close[9]
iClose: https://docs.mql4.com/series/iClose
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),";
If I want to get closing price of 9th later bar I should write like this? :
If I want to get closing price of 9th later bar I should write like this? :
Yes, or Close[9] for the current chart.
Print("Current bar for USDCHF H1: ", iClose("USDCHF",PERIOD_H1,9));
I want to know how to get the closing price of 9th later bar.
which function should I use?