I'm trying to have my indicator plot the BB on the price panel as usual and the MACD in the indicator panel. Note that the modified BB plotting code, and modified MACD plotting code are inside my indicator code.
The plots for the upper/middle/lower band of BB need to be on price, and the MACD need to be on the indicator panel. So, I guess I need the DrawOnPricePanel to work for the BB part of the code only.
It seems to me that the only way to do that is to use something like DrawDot or DrawLine for the BB values which wouldn't look as nice as a plot. It seems that there is no way for one plot of my indicator to go over the price (BB) and the other not (MACD).
Any ideas how I can do my indicator to plot on both indicator and price panels? If that is not possible what would be the best workaround? Is it possible to use DrawLine and make it look exactly like the original BB plot?
I don't want to add a separate BB indicator, because my indicator changes the BB settings depending on certain conditions and that would mean that I would have to go to the BB indicator and change manually (or is there a way to pass that value?)
Comment