Hi, I'd like to know how to emulate with mq5 code the "chart refresh" obtained by pressing left key in the chart. Using the function ChartRedraw() the effect is not the same. Clicking the update with the mouse do something more that resolve the problem told here https://www.mql5.com/en/forum/13676

Error 4806 on closed market (with no new ticks)
- www.mql5.com
my MTF (multi-timeframe) indicator works fine on opened market (when new ticks are received -> starting OnCalculate() function). - - Category: technical indicators
- Navigator - Workspace
- Debug - Main menu
- Example of developing a program
The MT5 manual tell
Refresh — refresh the chart window. Price data shown in the chart are recalculated from minute data stored in a computer.
It means that the button refresh refresh the chart and then recalculate price. How do I force price recalculation by code?
Anyone an idea?
I don't think you mean price recalculation, since the price is sent to your platform from the system. But as far as forcing the refresh using the most up to date price information at that time, I do not know, sorry.

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