Bars.Volume[i] gives the UP VOL?!

Questions about MultiCharts .NET and user contributed studies.
AntiMatter
Posts: 60
Joined: 03 Mar 2011
Has thanked: 9 times
Been thanked: 2 times

Bars.Volume[i] gives the UP VOL?!

Postby AntiMatter » 20 Sep 2013

I can get the actual bar volume by e.g. using the code from the Volume Indicator.

However, I'm not sure I understand the reasoning/logic for why Bars.Volume gives the UP VOL?

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

Re: Bars.Volume[i] gives the UP VOL?!

Postby Henry MultiСharts » 20 Sep 2013

Hello AntiMatter,

You need to use Bars.TrueVolume(), like in the prebuilt Volume indicator.

AntiMatter
Posts: 60
Joined: 03 Mar 2011
Has thanked: 9 times
Been thanked: 2 times

Re: Bars.Volume[i] gives the UP VOL?!

Postby AntiMatter » 20 Sep 2013

yes, that's what I'm doing... But I just don't understand the reasoning/logic for this!

Bars.Volume should be the volume, no!?

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Bars.Volume[i] gives the UP VOL?!

Postby JoshM » 24 Sep 2013

Interesting question. Similarly, why does the IOGMode attribute require an enum:

Code: Select all

[IOGMode(IOGMode.Enabled)]
While the other attributes require a bool:

Code: Select all

[UpdateOnEveryTick(true)]
[SameAsSymbol(true)]
(Just out of curiosity)

AntiMatter
Posts: 60
Joined: 03 Mar 2011
Has thanked: 9 times
Been thanked: 2 times

Re: Bars.Volume[i] gives the UP VOL?!

Postby AntiMatter » 24 Sep 2013

Yes, it does sound like I am being pedantic (and I probably am ;-), but I do actually wonder if there is something I am missing/not understanding here.

I.e. Is there a good reason for UP VOL being the primary data? The decision to not use the total volume most have been made for some reason...

AntiMatter
Posts: 60
Joined: 03 Mar 2011
Has thanked: 9 times
Been thanked: 2 times

Re: Bars.Volume[i] gives the UP VOL?!

Postby AntiMatter » 24 Sep 2013

Code: Select all

[IOGMode(IOGMode.Enabled)]
[UpdateOnEveryTick(true)]
[SameAsSymbol(true)]
While we are on the subject, is there a list somewhere of the various attributes that are available?

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Bars.Volume[i] gives the UP VOL?!

Postby JoshM » 24 Sep 2013

While we are on the subject, is there a list somewhere of the various attributes that are available?
Funny that you ask, I had the same question but could not find a list of all attributes.

The following I found while searching the chm help file:

Code: Select all

CalcAtOpenNextBar
MouseEvents
SameAsSymbol
SkipIdenticalTicks
UpdateOnEveryTick
ExitFromOneEntryOnce
IOGMode
RecoverDrawings
I don't know if these are all the attributes, though.

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

Re: Bars.Volume[i] gives the UP VOL?!

Postby Henry MultiСharts » 25 Sep 2013

yes, that's what I'm doing... But I just don't understand the reasoning/logic for this! Bars.Volume should be the volume, no!?
Volume for daily resolution and higher resolutions is total volume, for other resolutions you need to use UpVolume. TrueVolume is always total volume. It was originally designed this way.

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

Re: Bars.Volume[i] gives the UP VOL?!

Postby Henry MultiСharts » 25 Sep 2013

Interesting question. Similarly, why does the IOGMode attribute require an enum:

Code: Select all

[IOGMode(IOGMode.Enabled)]
While the other attributes require a bool:

Code: Select all

[UpdateOnEveryTick(true)]
[SameAsSymbol(true)]
(Just out of curiosity)
IOGMode attribute declares the behavior in the code, that cannot be changed from GUI.
UpdateOnEveryTick(true), SameAsSymbol(true) set an optional value, that can be modified by the user from the GUI.


Return to “MultiCharts .NET”