I wish to write an that will read how many candles back from the last one the candles where the mouse is and repeat a given code that uses the time ,every time the mouse moves.
Can someone provide me an example?
Thank you for your response.
Are you able to provide an example as I am unable to follow the instunctions shown in the help manual regarding this feature and OnChartEvent.
You will get a lot of alerts. Think how many pixels there are on your screen. You want an alert every time the mouse moves a pixel.
I've modified your request slightly to show the open price in the Comment, and only on a different bar.