The ability to hide and show subchart from Power Language would help me. However, the possibility does not seem to exist.
Have tried with "SetPlotColor" (plot to black to hide each plot, 10 on each indicator), but then need to use the "intrabarpersist" to change everything. It takes too much of the system.
There must be an easier way to hide a subchart.
Any suggestions?
Hide subchart with Power Language [SOLVED]
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Hide subchart with Power Language [SOLVED]
It doesn't really hide a subchart, but comes close to your approach of setting the colour to block: looping over the recent price bars and turn off the plot on each bar with NoPlot().Have tried with "SetPlotColor" (plot to black to hide each plot, 10 on each indicator), but then need to use the "intrabarpersist" to change everything. It takes too much of the system.
There must be an easier way to hide a subchart.
Any suggestions?
You can make that loop run more efficient by only turning off the plots that are visible in the current chart window, so from the last bar up to the date and time value of the leftmost bar. (Which we can get with GetAppInfo().)