Hide subchart with Power Language  [SOLVED]

Questions about MultiCharts and user contributed studies.
NiC72
Posts: 111
Joined: 02 Nov 2009
Location: Sweden
Has thanked: 39 times
Been thanked: 14 times

Hide subchart with Power Language

Postby NiC72 » 03 Nov 2016

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?

User avatar
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]

Postby JoshM » 03 Nov 2016

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?
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().

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().)


Return to “MultiCharts”