|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Rolling sum over the last length non-na sources for PineScript math.sum(source, length) (not one of the ta builtins).
More...
#include <math.hpp>
Public Member Functions | |
| Sum (int length) | |
| double | compute (double src) |
| double | recompute (double src) |
Rolling sum over the last length non-na sources for PineScript math.sum(source, length) (not one of the ta builtins).
Returns na until seeded, then holds the seeded sum on na-input bars.
|
explicit |
| double pineforge::math::Sum::compute | ( | double | src | ) |
| double pineforge::math::Sum::recompute | ( | double | src | ) |