Adjust scale on upper study


Category:
0
0

Hi Pete,

I found this custom volume study online and i plan to have it on the chart but the size is too big . Is it possible to visually scale this down? I have tried to divide it by 1000 and it doesnt seem to do anything.

Also, is it possible to hide this custom volume study behind the candlestick, like how the Overlap Volume works?  Thanks.

declare lower;

def O = open;
def H = high;
def C = close;
def L = low;
def V = volume;
def Buying = V*(C-L)/(H-L);
def Selling = V*(H-C)/(H-L);

# Selling Volume
Plot SV = selling/1000;
SV.setPaintingStrategy(PaintingStrategy.Histogram);
SV.SetDefaultColor(Color.dark_Red);
SV.HideTitle();
SV.HideBubble();
SV.SetLineWeight(5);

# Buying Volume
# Plot BV = Buying;
# Note that Selling + Buying Volume = Volume.
Plot BV = volume/1000;
BV.setPaintingStrategy(PaintingStrategy.Histogram);
BV.SetDefaultColor(Color.dark_Green);
BV.HideTitle();
BV.HideBubble();
BV.SetLineWeight(5);

Attachments:
Marked as spam
Posted by (Questions: 8, Answers: 2)
Asked on June 7, 2020 7:19 am
56 views
0
Private answer

Sorry but what you have done here makes it impossible to automatically adjust the size of those volume bars. There is no way to get those bars to "hide" behind the candles either. That study is designed to plot on a lower subgraph and that is exactly where it belongs.

You failed to include the entire view of the chart. But if you look at the far left side of the chart you will see a new price range when you overlay a lower study on the price graph. You can click and drag on the left-hand price range to adjust the size and location of those volume bars. But as soon as you change to another ticker symbol those changes will be erased.

In summary, best you can do is to manually adjust them. But there is no way to force them into a smaller range automatically as you click through your watchlist.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 7, 2020 8:01 am