![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
Chains the drawn changes (Paparoditis and Politis): the path's previous close plus value - from. More...
#include <algotradelib/src/backtest/bootstrap.hpp>
Public Member Functions | |
| double | join (double level, double from, double value) const |
| Returns the path's price for a drawn price. | |
Static Public Attributes | |
| static constexpr bool | any_sign = true |
| Prices at or below zero are joined, not refused. | |
Chains the drawn changes (Paparoditis and Politis): the path's previous close plus value - from.
Definition at line 178 of file bootstrap.hpp.
|
inline |
Returns the path's price for a drawn price.
| level | The path's previous close, in grid units. |
| from | The drawn day's previous close in the history, in grid units. |
| value | The drawn day's price, in grid units. |
| std::invalid_argument | if value - from is at or beyond 2^53 units in magnitude. |
Definition at line 190 of file bootstrap.hpp.
|
staticconstexpr |
Prices at or below zero are joined, not refused.
Definition at line 180 of file bootstrap.hpp.