Hi Everyone
I need an indicator to be displayed only on specified timeframe. Currently I have to do it manually by setting visualization property.
Is there a way I can do it programmatically?
Thanks in advance.
Update: ........................
From one of the forum's post I got the following solution:-
Is does work as expected by not displaying the indicator on specified chart(s).
However I am not sure its effect on the performance or resources utilization as it is in OnCalculate() of the indicator. I would prefer a solution in OnInit() so it runs once or at each time when the time frame is changed.
Regards
Thanks @Dominik Christian Egert
It seems working :)
Will monitor for some time and revert if found any issue.Hi Everyone
I need an indicator to be displayed only on specified timeframe. Currently I have to do it manually by setting visualization property.
Is there a way I can do it programmatically?
Thanks in advance.
Update: ........................
From one of the forum's post I got the following solution:-
Is does work as expected by not displaying the indicator on specified chart(s).
However I am not sure its effect on the performance or resources utilization as it is in OnCalculate() of the indicator. I would prefer a solution in OnInit() so it runs once or at each time when the time frame is changed.
Regards
It's not possible to set an indicator visualization timeframes by code.
Thanks @Alain Verleyen for confirmation.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Everyone
I need an indicator to be displayed only on specified timeframe. Currently I have to do it manually by setting visualization property.
Is there a way I can do it programmatically?
Thanks in advance.
Update: ........................
From one of the forum's post I got the following solution:-
Is does work as expected by not displaying the indicator on specified chart(s).
However I am not sure its effect on the performance or resources utilization as it is in OnCalculate() of the indicator. I would prefer a solution in OnInit() so it runs once or at each time when the time frame is changed.
Regards