link to history centre

 

How can I link from mql code to history centre and pick latest ohlc to the code and use those information for calculation into code? Help pls!

 
fxDelta:

How can I link from mql code to history centre and pick latest ohlc to the code and use those information for calculation into code? Help pls!

As long as the Terminal is connected it will be updated with the latest OHLC automatically... To access their value either use the predefined variable arrays (High[], Low[], etc. -> https://docs.mql4.com/predefined/variables) or the Timeseries functions (iHigh(), iLow(), etc. -> https://docs.mql4.com/series).