I’m creating a custom indicator in Pine Script, and I want most of the indicator to appear in a separate pane below the chart. However, I also want to plot a few things, such as shapes, lines, labels, or signals, directly on the main price chart.
Is it possible to display plots in both places within the same indicator? If yes, what is the correct way to do it?
Any explanation with a simple example would be appreciated. \*
In this example, the indicator itself still lives in the separate pane because overlay = false, but the plot() is forced to appear on the main price chart using force_overlay = true.
The same concept can be used with other drawing functions that support the force_overlay parameter, allowing you to keep your calculations in a separate pane while displaying important signals or visual elements directly on the chart.
This approach is useful when you want the best of both worlds:
Keep oscillators like RSI, MACD, or custom calculations in a separate pane.
Display buy/sell signals, labels, or important plots on the main price chart.
This keeps your indicator organized while still making the important trading signals easy to see.
Below is an example showing how this works in practice.
Verified Solution
Thanks for solving this doubt since there is not that much information of this and your solution is very accurate and easy. thanks for the answer.– Radhesh JoshiJul 28