How to detect chart scroll

 
Hi guys, I would like to know if it is possible to detect chart scroll. Whenever somebody scrolls right/left I would like to redraw my indicator. Any ideas how to do it? Thank you for reply!
 
If your indicator is coded correctly it shouldn't be necessary!
 
Just_Mike: I would like to know if it is possible to detect chart scroll. Whenever somebody scrolls right/left I would like to redraw my indicator. Any ideas how to do it?
  1. First left bar in window - MQL4 forum
  2. Just use IndicatorCounted and draw all lines, no redraw required.
 
gooly:
If your indicator is coded correctly it shouldn't be necessary!
I need force OnCalculate, not just redraw. Sorry for misunderstanding expression. 
 
Just_Mike: I need force OnCalculate, not just redraw. Sorry for misunderstanding expression. 
  1. You can't
  2. Unnecessary. Just set your buffers and you are done. The terminal will draw if the user scrolls.
  3. Your question has been answered three times.
 

In the OnEvent() method check for the CHARTEVENT_CHART_CHANGE event. If you need the parameters for the OnInit(), you have to synthesize them by other means (e.g ArrayCopySeries). 

 
DeepThought:

In the OnEvent() method check for the CHARTEVENT_CHART_CHANGE event. If you need the parameters for the OnInit(), you have to synthesize them by other means (e.g ArrayCopySeries). 

Definitely good way how to make it! Thank you a lot for idea!
 
WHRoeder:
Just_Mike: I need force OnCalculate, not just redraw. Sorry for misunderstanding expression. 
  1. You can't
  2. Unnecessary. Just set your buffers and you are done. The terminal will draw if the user scrolls.
  3. Your question has been answered three times.

Sry mate, it hadn't been answered three times. It wasn't answer what I was looking for. DeepThought gave me right answer but thank you for try!
 
Just_Mike: Sry mate, it hadn't been answered three times. It wasn't answer what I was looking for. DeepThought gave me right answer but thank you for try!
  1. Just because it wasn't the answer you were looking for doesn't change the fact that it has been answered three times. You can't force OnCalculate. Four times!
  2. On detecting chart scroll, DeepThought gave you an answer. I gave you another.
  3. As gooly and I have both said, what you're asking for is unnecessary.
Reason: