RobLangley:
OK, but what is your question/issue/problem ?
Hi
I'm new to MQL5 and forex trading, have written a basic EA to prove some of the syntax's and have this running on a demo account.
I would like to analyse previous candles noting the length and open / close prices.
RobLangley:
Ah I see . . . candle length is High - Low, to get the high and low you use CopyRates() to gain access to the history data . . . click the link and read the sample code.
:-)
Sorry can you give me a pointer to a function that I can use to retrieve this information. I have been looking through the MQL5 online reference guide but so far no luck
RaptorUK:
Ah I see . . . candle length is High - Low, to get the high and low you use CopyRates() to gain access to the history data . . . click the link and read the sample code.
Many thanks, thats just what I wanted.....
Ah I see . . . candle length is High - Low, to get the high and low you use CopyRates() to gain access to the history data . . . click the link and read the sample code.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I'm new to MQL5 and forex trading, have written a basic EA to prove some of the syntax's and have this running on a demo account.
I would like to analyse previous candles noting the length and open / close prices.
Thanks
Rob