desktop:desktop_chart_scripting_function_reference_accum_value

This is an old revision of the document!


ACCUM Function

  • ACCUM( <value> )

Accumulates (sums) a value over all the data points on the chart.

Function Parameters
Parameter Description
<value>The value field to compute.
| Example:
x = 1;
ACCUM(x);
Example Data
Date Open High Low Close Volume x ACCUM(x)
06/01/2011 75100 76050 74100 75875 106528 1 1
06/02/2011 75750 77000 75450 76650 81891 1 2
06/03/2011 76550 76900 75100 75200 80819 1 3
06/06/201175400 75800 73150 73175 82726 1 4
06/07/201173200 73775 72925 73675 72927 1 5
06/08/201173875 76650 73450 76275 113339 1 6
06/09/201176400 79300 75950 78425 120824 1 7
06/10/201178500 79975 77725 78575 86989 1 8
06/13/201178600 79250 77725 78175 78661 1 9
06/14/201177925 77950 75250 75450 112682 1 10
06/15/201176025 76225 72550 72575 130420 1 11
06/16/201172575 72850 69875 70025 125316 1 12
06/17/201170050 71450 69125 70200 93140 1 13
06/20/201170450 70775 69550 70150 63702 1 14
06/21/201170300 71925 70225 70825 71108 1 15
06/22/201168125 68500 65025 65025 127015 1 16
06/23/201165000 65300 62000 64675 138220 1 17
06/24/201165225 65675 62800 62875 78876 1 18
  • desktop/desktop_chart_scripting_function_reference_accum_value.1641923544.txt.gz
  • Last modified: 2023/09/21 19:55
  • (external edit)