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?
Bars.Volume[i] gives the UP VOL?!
-
- Posts: 60
- Joined: 03 Mar 2011
- Has thanked: 9 times
- Been thanked: 2 times
- 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?!
Hello AntiMatter,
You need to use Bars.TrueVolume(), like in the prebuilt Volume indicator.
You need to use Bars.TrueVolume(), like in the prebuilt Volume indicator.
-
- Posts: 60
- Joined: 03 Mar 2011
- Has thanked: 9 times
- Been thanked: 2 times
Re: Bars.Volume[i] gives the UP VOL?!
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!?
Bars.Volume should be the volume, no!?
- 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?!
Interesting question. Similarly, why does the IOGMode attribute require an enum:
While the other attributes require a bool:
(Just out of curiosity)
Code: Select all
[IOGMode(IOGMode.Enabled)]
Code: Select all
[UpdateOnEveryTick(true)]
[SameAsSymbol(true)]
-
- Posts: 60
- Joined: 03 Mar 2011
- Has thanked: 9 times
- Been thanked: 2 times
Re: Bars.Volume[i] gives the UP VOL?!
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...
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...
-
- Posts: 60
- Joined: 03 Mar 2011
- Has thanked: 9 times
- Been thanked: 2 times
Re: Bars.Volume[i] gives the UP VOL?!
Code: Select all
[IOGMode(IOGMode.Enabled)]
[UpdateOnEveryTick(true)]
[SameAsSymbol(true)]
- 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?!
Funny that you ask, I had the same question but could not find a list of all attributes.While we are on the subject, is there a list somewhere of the various attributes that are available?
The following I found while searching the chm help file:
Code: Select all
CalcAtOpenNextBar
MouseEvents
SameAsSymbol
SkipIdenticalTicks
UpdateOnEveryTick
ExitFromOneEntryOnce
IOGMode
RecoverDrawings
- 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?!
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.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!?
- 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?!
IOGMode attribute declares the behavior in the code, that cannot be changed from GUI.Interesting question. Similarly, why does the IOGMode attribute require an enum:While the other attributes require a bool:Code: Select all
[IOGMode(IOGMode.Enabled)]
(Just out of curiosity)Code: Select all
[UpdateOnEveryTick(true)]
[SameAsSymbol(true)]
UpdateOnEveryTick(true), SameAsSymbol(true) set an optional value, that can be modified by the user from the GUI.