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

#include <multi_day_periods.hpp>

Public Member Functions

 Source (std::shared_ptr< const Params > params, std::int64_t first_stamp, std::int64_t last_stamp)
 
bool stamp_at (std::int64_t ms, std::int64_t &stamp, bool &last) override
 
std::int64_t last_stamp () const override
 The final period's open.
 
std::size_t stamps_held () const override
 How many period opens the source holds in memory right now.
 
- Public Member Functions inherited from pineforge::TimeframeAggregator::PeriodSource
virtual ~PeriodSource ()=default
 
virtual bool stamp_at (int64_t ms, int64_t &stamp, bool &last)=0
 The open of the latest period at or before ms; false before the first period.
 

Detailed Description

Definition at line 361 of file multi_day_periods.hpp.

Constructor & Destructor Documentation

◆ Source()

pineforge::source::multi_day_detail::Source::Source ( std::shared_ptr< const Params > params,
std::int64_t first_stamp,
std::int64_t last_stamp )
inline

Definition at line 363 of file multi_day_periods.hpp.

References last_stamp().

Member Function Documentation

◆ stamp_at()

bool pineforge::source::multi_day_detail::Source::stamp_at ( std::int64_t ms,
std::int64_t & stamp,
bool & last )
inlineoverride

Definition at line 369 of file multi_day_periods.hpp.

◆ last_stamp()

std::int64_t pineforge::source::multi_day_detail::Source::last_stamp ( ) const
inlineoverridevirtual

The final period's open.

Implements pineforge::TimeframeAggregator::PeriodSource.

Definition at line 381 of file multi_day_periods.hpp.

Referenced by Source().

◆ stamps_held()

std::size_t pineforge::source::multi_day_detail::Source::stamps_held ( ) const
inlineoverridevirtual

How many period opens the source holds in memory right now.

Implements pineforge::TimeframeAggregator::PeriodSource.

Definition at line 383 of file multi_day_periods.hpp.


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