switching daily to weekly changes values on just one Bars series
Author: streak
Creation Date: 9/10/2012 5:49 PM
profile picture

streak

#1
Not sure what is happening here, but as a daily plot the values are as expected, however, when switched to weekly the series in the position of 'volume' get multiplied by 3. Check the last value for series "SL". As daily it's 32022. As Weekly it is 96066.
CODE:
Please log in to see this code.


The last records for "AD_rel";
QUOTE:
20120824,127206,40145,41855,139933,34600,23583
20120825,127206,40145,41855,139933,34600,23583
20120826,127206,40145,41855,139933,34600,23583
20120827,127206,40145,41855,139933,34600,23583
20120830,127206,40145,41855,139933,34600,23583
20120831,124238,45873,43759,131600,32022,22546
20120901,124238,45873,43759,131600,32022,22546
20120902,124238,45873,43759,131600,32022,22546
20120903,124238,45873,43759,131600,32022,22546
20120906,124238,45873,43759,131600,32022,22546

Any advice appreciated.
Thanks
profile picture

Eugene

#2
Previous week's (2012/08/26 - 2012/09/01) Volume is 167,844.

The new weekly bar started on 2012/09/02, 32,022 multiplied by 3 (bars) is 96066.

What's the problem? I don't see any.
profile picture

streak

#3

Correct. Just wish I could have figured it! Replaced all fields with custom ones except 'Close' which also seemed to have to stay put in its regular DOHLCV sequence, and plots are as expected.

THANKS again Eugene.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).