- You never turned on the timer. Your code does nothing. Need more coffee.
- You call XY for any event. The params could contain anything.
- You are not following the mouse (not enabled.)
William Roeder #:
- You never turned on the timer. Your code does nothing.
- You call XY for any event. The params could contain anything.
- You are not following the mouse (not enabled.)
1. I am not using OnTimer event handler so I don't know what you mean here
2. I have tried to call it for a single event ( CHARTEVENT_CLICK ) but still same issue
3. Mouse move enabled but still same issue.
The code works correctly when moved to the OnCalculate event handler and passed with time,price as arguments but doesn't works in OnChartEvent handler.

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
Strange behavior with ChartTimePriceToXY function. Please check the following code