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!
- How to download data of symbol
- Arrows drawn behind candlestick bodies
- How to Start with Metatrader 5
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?
- First left bar in window - MQL4 forum
- 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.
If your indicator is coded correctly it shouldn't be necessary!
Just_Mike: I need force OnCalculate, not just redraw. Sorry for misunderstanding expression. |
|
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:
Definitely good way how to make it! Thank you a lot for idea!
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).
WHRoeder:
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: I need force OnCalculate, not just redraw. Sorry for misunderstanding expression. |
|
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!
- 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!
- On detecting chart scroll, DeepThought gave you an answer. I gave you another.
- As gooly and I have both said, what you're asking for is unnecessary.
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