Download MetaTrader 5

refresh

To add comments, please log in or register
gioooooo
47
gioooooo  
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)
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
gioooooo
47
gioooooo  

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?

JD4
1101
JD4  
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.
To add comments, please log in or register