# volume calculation on charts

Questions about MultiCharts and user contributed studies.
fibdax
Posts: 95
Joined: 03 Jan 2011
Has thanked: 5 times
Been thanked: 6 times

### volume calculation on charts

Hi, I'm evaluating MC and I have some doubts about the use of volumes in powerlanguage. Data Supplier is Zen Fire trial, in this very moment I see volumes are 64554(InteractiveB), building a 1 minute chart using builvolumeon tick I got a cumulative volume of 14033, building the same chart but using buildolumeon tradevolume I get 33422. The same happens plotting tick by tick, I get 42282 using builvolumeon tradevolume and 27340 with buildvolumeon tick. In any case I never get the totale volume which is higher, is there something wrong in my instructions? Thanks
var:totalvolume(0);
totalvolume=totalvolume+volume;
plot1(totalevolume,"TotVol");

piranhaxp
Posts: 236
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

### Re: volume calculation on charts

var:totalvolume(0);
totalvolume=totalvolume+ticks; /// PLEASE USE TICKS IN CHARTS WITH BARTYPE <=2 !!!!
plot1(totalevolume,"TotVol");

TJ
Posts: 6873
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1976 times

### Re: volume calculation on charts

fibdax wrote:Hi, I'm evaluating MC and I have some doubts about the use of volumes in powerlanguage. Data Supplier is Zen Fire trial, in this very moment I see volumes are 64554(InteractiveB), building a 1 minute chart using builvolumeon tick I got a cumulative volume of 14033, building the same chart but using buildolumeon tradevolume I get 33422. The same happens plotting tick by tick, I get 42282 using builvolumeon tradevolume and 27340 with buildvolumeon tick. In any case I never get the totale volume which is higher, is there something wrong in my instructions? Thanks
var:totalvolume(0);
totalvolume=totalvolume+volume;
plot1(totalevolume,"TotVol");

look up the definition of the following would help:

ticks
volume
upticks
downticks

fibdax
Posts: 95
Joined: 03 Jan 2011
Has thanked: 5 times
Been thanked: 6 times

thanks