This calculates the sum of values for a series for each full calendar week within the display period. A calendar week runs from Monday to Friday. Incomplete weeks at the beginning or end of the display period are ignored.
CWS#(Expression,Carry Indicator,Display Indicator)
Where the optional Carry Indicator can be:
D Default; carry previous value, but not between periods
C Carry previous value
I Ignore
N N/A is displayed when there is a null value in the series
Display Indicator – the default is to display values only for complete periods, however the following optional parameters exist –
P Values calculated for incomplete calendar periods at the start of the display period
R Values calculated for incomplete calendar periods at the start and end of the display period
CWS#(D:BMW(VO))
This calculates the total trading volume for BMW (000's of shares traded) for each full calendar week within the display period.
The N parameter is not currently supported by any of the Functions selectors, Intellisense or the web Expression Builders in DFO / Datastream Charting, but is supported in the AFO Expression Builder. The Display Indicator is also not currently supported by any of the Functions selectors, Intellisense or Expressions Builders. The function will only be accepted in the AFO Expression Builder if the Carry Indicator (but not the Display Indicator) is used. The function is however fully supported when used directly in AFO or DFO requests, and a line will be plotted successfully in Datastream Charting.