Fix Indicator's y-axis to Zero in Chart  [SOLVED]

Questions about MultiCharts and user contributed studies.
avme
Posts: 21
Joined: 30 Oct 2013
Has thanked: 1 time
Been thanked: 2 times

Fix Indicator's y-axis to Zero in Chart

Postby avme » 13 Jan 2015

Hi all,

I have a simple paintbar volume indicator for chart. But in the "format Study" -> "Scaling", I can either set the scaling range by screen or fix the top and bottom scaling. Is it possible to lock the bottom scaling to zero and the top by screen?

Thanks
Jimmy

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Fix Indicator's y-axis to Zero in Chart

Postby Henry MultiСharts » 14 Jan 2015

Hello Jimmy,

That is not possible to mix the scaling options this way. Please attach a full sized screenshot of your chart and we will try to help you out.

avme
Posts: 21
Joined: 30 Oct 2013
Has thanked: 1 time
Been thanked: 2 times

Re: Fix Indicator's y-axis to Zero in Chart  [SOLVED]

Postby avme » 14 Jan 2015

Hi Henry,

Image

You can see the visual difference is significant when the y-axis starts at zero (A) and by screen (B).
This morning I suddenly got a workaround: plot a zero value in chart and set the scaling by "screen". It seems working. If you get a better idea, please let me know.

Attached below the "volume by color" code I use:

Code: Select all

Variables: VolBarColor(0);

If Close > Close[1] then VolBarColor = darkgreen;
If Close < Close[1] then VolBarColor = darkred;
If Close = Close[1] then VolBarColor = darkgray;

Plot1(Volume, "Volume", VolBarColor);
SetPlotWidth(1, 6);
Plot2(0,"BaseLine",Red);
Attachments
MC scaling.jpg
(40.52 KiB) Downloaded 432 times


Return to “MultiCharts”