PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::source::HeldHistory Class Reference

#include <pine_ta_length.hpp>

Public Member Functions

 HeldHistory ()
 
 HeldHistory (WindowCacheCapacity cache)
 
bool empty () const
 
long long first_bar () const
 
long long last_bar () const
 
void write (long long bar, double value, std::size_t keep)
 
double at (long long bar) const
 
WindowCacheCapacity cache_capacity () const
 
WindowCacheStats cache_stats () const
 

Static Public Attributes

static constexpr std::size_t kChunk = 1024
 

Detailed Description

Definition at line 99 of file pine_ta_length.hpp.

Constructor & Destructor Documentation

◆ HeldHistory() [1/2]

pineforge::source::HeldHistory::HeldHistory ( )
inline

Definition at line 103 of file pine_ta_length.hpp.

References HeldHistory(), and pineforge::window_cache_capacity().

Referenced by HeldHistory().

◆ HeldHistory() [2/2]

pineforge::source::HeldHistory::HeldHistory ( WindowCacheCapacity cache)
inlineexplicit

Definition at line 104 of file pine_ta_length.hpp.

Member Function Documentation

◆ empty()

bool pineforge::source::HeldHistory::empty ( ) const
inline

Definition at line 106 of file pine_ta_length.hpp.

◆ first_bar()

long long pineforge::source::HeldHistory::first_bar ( ) const
inline

Definition at line 107 of file pine_ta_length.hpp.

◆ last_bar()

long long pineforge::source::HeldHistory::last_bar ( ) const
inline

Definition at line 108 of file pine_ta_length.hpp.

Referenced by write().

◆ write()

void pineforge::source::HeldHistory::write ( long long bar,
double value,
std::size_t keep )

Definition at line 138 of file pine_ta_length.cpp.

References at(), last_bar(), and pineforge::na().

◆ at()

double pineforge::source::HeldHistory::at ( long long bar) const

Definition at line 173 of file pine_ta_length.cpp.

Referenced by write().

◆ cache_capacity()

WindowCacheCapacity pineforge::source::HeldHistory::cache_capacity ( ) const
inline

Definition at line 115 of file pine_ta_length.hpp.

◆ cache_stats()

WindowCacheStats pineforge::source::HeldHistory::cache_stats ( ) const
inline

Definition at line 116 of file pine_ta_length.hpp.

Field Documentation

◆ kChunk

std::size_t pineforge::source::HeldHistory::kChunk = 1024
staticconstexpr

Definition at line 101 of file pine_ta_length.hpp.


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