Click on chart event?

 
Hello guys,
I was wondering if it is possible to get the price of the respective chart place on click.
Like I click anywhere on the chart and It fills a variable with the price.
Thanks.
 

I think this post will help you, please check it.

https://www.mql5.com/en/forum/93077

How to get Price data and Time data of mouse position by clicking the mouse?
How to get Price data and Time data of mouse position by clicking the mouse?
  • www.mql5.com
We can use "CHARTEVENT_CLICK" to get X coordinate value and Y coordinate value of mouse position , But How to get Price data and Time data of mouse...
 
Pablo Jaguanharo Carvalho Pinheiro:
Hello guys,
I was wondering if it is possible to get the price of the respective chart place on click.
Like I click anywhere on the chart and It fills a variable with the price.
Thanks.

Yes, it is very possible, 

Chartxytotimeprice()
// Check your reference
 
Md Atikur Rahman #:

I think this post will help you, please check it.

https://www.mql5.com/en/forum/93077

thanks a lot!

 
Thank-god Avwerosuoghene Odukudu #:

Yes, it is very possible, 

Thanks a lot!