PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
magnifier_intrabars.hpp File Reference
#include <pineforge/bar.hpp>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for magnifier_intrabars.hpp:
This graph shows which files directly or indirectly include this file:

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.