PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::math::Sum Class 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)
 

Detailed Description

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.

Definition at line 34 of file math.hpp.

Constructor & Destructor Documentation

◆ Sum()

pineforge::math::Sum::Sum ( int length)
explicit

Member Function Documentation

◆ compute()

double pineforge::math::Sum::compute ( double src)

◆ recompute()

double pineforge::math::Sum::recompute ( double src)

The documentation for this class was generated from the following file: