Kasper Posted November 18, 2021 Report Share Posted November 18, 2021 I hide and show indicators as needed on a single chart. I set some paintbar indicators with alerts and hidden paintbars keep alerting. If hide is only for display, can there be a way to pause indicators as well and will it affect performance? Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted November 18, 2021 Report Share Posted November 18, 2021 Hiding it does not pause it at all - on purpose. For example, paintbars use hidden indicators all the time. Indicators or paintbars should not affect performance much - of course, with paintbars it very much depends on the paintbar code. It is easy to write a huge loop that would slow it down. I could maybe add an IsHidden boolean var in paintbars so when you're using advanced you could make it not fire alerts if it is hidden? Quote Link to comment Share on other sites More sharing options...
Kasper Posted November 18, 2021 Author Report Share Posted November 18, 2021 Hi Mike, Thanks for clarifying this for me. I guess I should use more templates instead of too many indicators on one chart. IsHidden will be good way to exit paintbar if a PB indicator is hidden. Thanks for coming up with this idea. I suppose one can track a paintbar's performance by plotting or setting alert on time it takes to complete a run? Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted November 18, 2021 Report Share Posted November 18, 2021 One run of a paintbar is too short to be tracked. If you use some long loops in a paintbar, in aggregate it may start slowing down the system. I will put in the IsHidden (and document it in help). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.