davidxiao:
Hello,,
I am learning MQL5 to try to write a customer indicator. in this indictor, I need to get all parameters(prices, volume, time and date) of a bar which is pointed by my mouse, then I use the parameters of the bar to calculate. Which function or functions I should use.
Thanks!!!
David Xiao
Hi davidxiao,
Please take a look at the MqlRates struct at the Docs.
Malacarne:
Hi davidxiao,
Please take a look at the MqlRates struct at the Docs.
I think the question is how to know programmatically which bar is pointed by the mouse.

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
Hello,,
I am learning MQL5 to try to write a customer indicator. in this indictor, I need to get all parameters(prices, volume, time and date) of a bar which is pointed by my mouse, then I use the parameters of the bar to calculate. Which function or functions I should use.
Thanks!!!
David Xiao