
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
I open chart, add custom indicator.
Next I change period by calling SetSymbolPeriod() method.
If the change is for example from PERIOD_M1 to PERIOD_H1 and back to PERIOD_M1 there is no problem.
But if the change is for example from PERIOD_H4 to PERIOD_MN1 and back to PERIOD_H4 indicator stops firing events. Method OnChartEvent() is not called. When I by hand open from Indicator List properties for that custom indicator and only click on OK – indicator starts firing events again (method OnChartEvent() is called).
So the first solution I think would by refresh that indicator. But I don’t know how to do it from code.
Or am I missing something?
Any help will be welcome!