open-close-high-close

 
Hi I'm very new to EA. How to get the last open-close-high-close price of a candlestick on a specific timeframe?
 
https://www.mql5.com/en/docs/series/iopen
Documentation on MQL5: Timeseries and Indicators Access / iOpen
Documentation on MQL5: Timeseries and Indicators Access / iOpen
  • www.mql5.com
The Open price of the bar (indicated by the 'shift' parameter) on the corresponding chart or 0 in case of an error. For error details, call the GetLastError() function. The function always returns actual data. For this purpose it performs a request to the timeseries for the specified symbol/period during each call. This means that if there is...
 
Hiệp Lê:
Hi I'm very new to EA. How to get the last open-close-high-close price of a candlestick on a specific timeframe?

Please specify whether you are using MT4 or MT5

 

https://www.mql5.com/en/docs/series/iclose

https://www.mql5.com/en/docs/series/ihigh

https://www.mql5.com/en/docs/series/ilow

Documentation on MQL5: Timeseries and Indicators Access / iClose
Documentation on MQL5: Timeseries and Indicators Access / iClose
  • www.mql5.com
The Close price of the bar (indicated by the 'shift' parameter) on the corresponding chart or 0 in case of an error. For error details, call the GetLastError() function. The function always returns actual data. For this purpose it performs a request to the timeseries for the specified symbol/period during each call. This means that if there is...
 
Keith Watford:

Please specify whether you are using MT4 or MT5

I'm using MT5
 
Ahmet Metin Yilmaz:

https://www.mql5.com/en/docs/series/iclose

https://www.mql5.com/en/docs/series/ihigh

https://www.mql5.com/en/docs/series/ilow

Thanks, hope to solve problem after reading