|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
#include <pineforge/source/magnifier_intrabars.hpp>#include <pineforge/native_calendar.hpp>#include <pineforge/run_failure.hpp>#include "../native_calendar_memo.hpp"#include <algorithm>#include <cstdint>#include <limits>#include <optional>#include <stdexcept>Go to the source code of this file.
Namespaces | |
| namespace | pineforge |
| namespace | pineforge::source |
Functions | |
| std::string | pineforge::source::tradingview_intrabar_timeframe (std::string_view chart_tf) |
The intrabar timeframe TradingView's bar magnifier walks on a chart of chart_tf, from the table in TradingView's help centre ("What is bar
magnifier backtesting mode"), each row covering the chart timeframes from it up to the next one: below 30S 1S, 30S 5S, 1 10S, 5 30S, 10 1, 15 2, 30 5, 60 10, 240 30, 1D 60, 3D 240, 1W and up 1D. | |
| std::vector< Bar > | pineforge::source::tradingview_magnifier_bars (const Bar *bars, int n, const std::string &input_tf, const std::string &script_tf, const std::string &session, const std::string &timezone) |
The lower-timeframe path TradingView's bar magnifier walks for every chart bar of a run whose chart bars are aggregated from bars (input timeframe input_tf, chart timeframe script_tf, the symbol's session in timezone), as bars for IntrabarPath::lower_tf on the input's own grid. | |
| std::unique_ptr< NativeLowerPathSource > | pineforge::source::make_magnifier_path_source (const Bar *bars, int n, const std::string &input_tf, const std::string &script_tf, const std::string &session, const std::string &timezone) |
| The same logical path without retaining the input or a whole-run path. | |