Custom indicator on timer refresh

 

Hello all, i develop a custom indicator, the buffer populates within a timer function "OnTimer" every 3 seconds, but the graphic doesnt refresh automatically, i have to drag the mouse manually in order to refresh the indicator, how can i tell the graph to refresh everytime the timer updates the buffer ???

 

Thanks a lot. 

Step on New Rails: Custom Indicators in MQL5
  • 2009.11.23
  • Андрей
  • www.mql5.com
I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.
 
Documentation on MQL5: Chart Operations / ChartRedraw
  • www.mql5.com
Chart Operations / ChartRedraw - Documentation on MQL5
 
Thanx! it worked
 

seen the link above but i have a question:

what about chart_id=0 if the indicator is used: elsewhere (not on chart 0) or applied on an other indicator ?

Reason: