Volume Discrepancies..  [SOLVED]

Questions about MultiCharts and user contributed studies.
User avatar
deadmandontcry
Posts: 11
Joined: 07 Jan 2011
Has thanked: 5 times
Been thanked: 1 time

Volume Discrepancies..

Postby deadmandontcry » 27 Apr 2020

I am working on a system that relies on accurate volume readings. I am getting different values from when I capture volume on a 5 minute chart using the Volume reserved word in a custom indicator that what I am getting from the standard volume indicator that comes with Multichart. Please see the attached image for what is being captured as I plot them in the data window.

For reference the built in Volume indicator is closer to reality based on checking several different sources (Trading View/TS). This data source is coming from IB. But again, the same source is providing two different readings based on the same data point.

Built in indicator code:

Code: Select all

if BarType >= 2 and BarType < 5 then Plot1( Volume, "Volume" ) else Plot1( Ticks, "Volume" ) ;
My debug code:

Code: Select all

Plot1(Volume, "Volume");
Please see the attached. My debug script matches the larger script I am working on. Neither match the built-in indicator. I have circled the readings in red.
Volume.Tmp.png
(249.83 KiB) Not downloaded yet

I am using Beta Version 14. I am a bit baffled at this point and seeking help. Hopefully I am not just being a knuckle head and missing that which is right in front of my face.

Thanks for any help.
Nick
Last edited by deadmandontcry on 27 Apr 2020, edited 1 time in total.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Volume Discrepancies..

Postby TJ » 27 Apr 2020

See posts #1 & #2
viewtopic.php?t=11713

User avatar
deadmandontcry
Posts: 11
Joined: 07 Jan 2011
Has thanked: 5 times
Been thanked: 1 time

Re: Volume Discrepancies..

Postby deadmandontcry » 27 Apr 2020

See posts #1 & #2
viewtopic.php?t=11713
Updated. Thanks.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Volume Discrepancies..

Postby TJ » 27 Apr 2020

Go to the Wiki

Go to the section
8 PowerLanguage Keyword Reference

Look under
Data Information/General‎ (77 P)

Read up on the definition and usage examples of
TICKS
VOLUME

User avatar
deadmandontcry
Posts: 11
Joined: 07 Jan 2011
Has thanked: 5 times
Been thanked: 1 time

Re: Volume Discrepancies..  [SOLVED]

Postby deadmandontcry » 04 May 2020

Thanks TJ. I've read both references and I understand that there are different means of representing volume based on how "build Volume On" is being set.

Ultimately, I ended up embedding the logic from the Volume indicator itself and that gave me the accurate output. Thanks.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Volume Discrepancies..

Postby TJ » 04 May 2020

Thanks TJ. I've read both references and I understand that there are different means of representing volume based on how "build Volume On" is being set.

Ultimately, I ended up embedding the logic from the Volume indicator itself and that gave me the accurate output. Thanks.
I am glad you have it working.
Thanks for letting us know.

Good trading to you.


Return to “MultiCharts”