algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::backtest::Levels Struct Reference

Joins the drawn prices as they are (Künsch; Politis and Romano): for a stationary series, not trending prices, where each block boundary is a jump. More...

#include <algotradelib/src/backtest/bootstrap.hpp>

Public Member Functions

double join (double level, double from, double value) const
 Returns the drawn price.

Static Public Attributes

static constexpr bool any_sign = true
 Prices at or below zero are joined, not refused.

Detailed Description

Joins the drawn prices as they are (Künsch; Politis and Romano): for a stationary series, not trending prices, where each block boundary is a jump.

Definition at line 204 of file bootstrap.hpp.

Member Function Documentation

◆ join()

double algotradelib::backtest::Levels::join ( double level,
double from,
double value ) const
inline

Returns the drawn price.

Parameters
levelUnused.
fromUnused.
valueThe drawn day's price, in grid units.
Returns
value.

Definition at line 215 of file bootstrap.hpp.

Member Data Documentation

◆ any_sign

bool algotradelib::backtest::Levels::any_sign = true
staticconstexpr

Prices at or below zero are joined, not refused.

Definition at line 206 of file bootstrap.hpp.


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