Here is an indicator that gets the sum of a Time Series from a specified date until the last bar with a close on the chart. This is slightly different from the regular Sum indicator in that it has no window size, only a date from which to start adding the Time Series values. This indicator takes four parameters:
1. A Time Series
2. Month value
3. Day value
4. Year value
This indicator is for Daily Bar charts only (only for dates after 1904). The sum is computed from and including the specified date, to and including the last complete bar in the chart. It does not include the red partial day bar that is formed during the day.
Click Here to download the SumSince indicator. Place both the .tpl file and the .dll file in the Template Folder and look for the indicator in the Custom Indicators category after reloading the Trader.
For those of you who are interested in the source code, you may download it by clicking here. It was written for the IBASIC compiler. For you C programmers, we even used ++ and += but for non C programmers, here are the translations:
“variable++” means “variable = variable + 1”
“Variable += 10” means “variable = variable + 10”