Custom Bars Volume

Questions about MultiCharts .NET and user contributed studies.
rien
Posts: 9
Joined: 25 Apr 2019

Custom Bars Volume

Postby rien » 30 Oct 2019

Hi Guys,

A quick question about the Custom Bars, how can i make a simple volume bar (as it exists already in the platform, i'm aware of that) but i want to set the amount of volume within the custom bar.

How can i do this? Could you guys share the volume bar code here so i can work from that bar version?

Thanks

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Custom Bars Volume

Postby Svetlana MultiCharts » 01 Nov 2019

Hello, rien,

You can find an example in the Custom Resolution Manager.

In order to open it please go to QuoteManager -> Tools -> Custom Resolution Manager -> New ->
in the Select Template dropdown list please select one of the available chart types (e.g. Simple Example Heikin-Ashi).
In the source code please find OnData method and refer to the strings
m_BarVolume += volumeAdded;
m_BarUpVolume += upVolumeAdded;
m_BarDownVolume += downVolumeAdded;

In that way you can set the amount of volume according to your needs.

rien
Posts: 9
Joined: 25 Apr 2019

Re: Custom Bars Volume

Postby rien » 03 Nov 2019

I have seen the example but as there is no documentation on the custom bars i would like to get an example of the volume bars, could you please share this?

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Custom Bars Volume

Postby Svetlana MultiCharts » 07 Nov 2019

rien,

In MultiCharts volume bars are plotted when one selects Resolution = Contract:
https://www.multicharts.com/trading-sof ... sed_Charts

If you would like to get the example of such bars, we will be able to add it in the Custom Resolution Manager in the next version (MultiCharts 14).


Return to “MultiCharts .NET”