Download MetaTrader 5
To add comments, please log in or register
Sell your CPU capacity and earn money!
Rasoul Mojtahedzadeh
26195
Rasoul Mojtahedzadeh 2014.12.07 16:13 
In an Expert Advisor code, I would like to know on which bar of a chart the user clicked. From the example and documentation of OnChartEvent() function, a left click of mouse can be captured as a position (x, y). Is there a way to get the bar time/number on which the user left clicked?
Keith Watford
Moderator
8868
Keith Watford 2014.12.07 22:30  

ChartXYToTimePrice

then

iBarShift 

Rasoul Mojtahedzadeh
26195
Rasoul Mojtahedzadeh 2014.12.08 16:51  
GumRai:

ChartXYToTimePrice

then

iBarShift 


Thanks! 
/
To add comments, please log in or register