|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
#include <engine.hpp>
Data Structures | |
| struct | AbortFlag |
| struct | AbortRequested |
| struct | BarTime |
| struct | ExecutionConsumerSlot |
| class | MetricsStreamingAttemptV1 |
| struct | MetricsStreamingStateV1 |
| struct | NativeConsumerBindTag |
| struct | NativeSecurityFeed |
| struct | OutputEvent |
| struct | SecurityEvalState |
| struct | TradePercentPrefix |
Public Member Functions | |
| int | set_equity_report_mode (ReportMode mode) |
| ReportMode | equity_report_mode () const |
| std::int64_t | equity_logical_point_count () const |
| const metrics::EquityFoldSnapshot * | equity_summary_snapshot () const |
| bool | equity_summary_ratios_ready () const |
| bool | install_equity_ratio_result (const metrics::EquityRatioResult &result) |
| virtual | ~BacktestEngine () |
| int | execution_contract () const |
| bool | native_bound () const |
| virtual void | on_bar (const Bar &bar)=0 |
| void | run (const Bar *bars, int n) |
| void | run (const Bar *input_bars, int n_input, const std::string &input_tf, const std::string &script_tf, bool bar_magnifier=false, int magnifier_samples=4, MagnifierDistribution magnifier_dist=MagnifierDistribution::ENDPOINTS) |
| virtual bool | set_aux_security_feed (const Bar *bars, int n, const std::string &input_tf) |
| bool | set_native_security_feed (const std::string &timeframe, const Bar *bars, int n) |
| bool | native_security_feed_enabled () const |
| int64_t | native_security_substitutions () const |
| int64_t | native_security_misses () const |
| bool | chart_day_partition_installed () const |
| virtual bool | set_symbol_feed (const std::string &key, const std::string &timeframe, const Bar *bars, const int64_t *close_ms, int n) |
| virtual bool | set_symbol_feed_column (const std::string &key, const std::string &timeframe, const std::string &name, const double *values, int n) |
| virtual bool | set_symbol_facts (const std::string &key, const std::string &field, const std::string &value) |
| virtual bool | set_recorded_series (const std::string &key, const int64_t *chart_open_ms, const double *values, int n) |
| bool | stream_begin (const Bar *warmup_bars, int n_warmup, const std::string &input_tf, const std::string &script_tf="") |
| bool | stream_push_bar (const Bar &bar) |
| bool | stream_push_tick (const TradeTick &tick) |
| bool | stream_push_ticks (const TradeTick *ticks, int n) |
| bool | stream_advance_time (int64_t timestamp_ms) |
| bool | stream_end (bool finalize_partial_input_bar=false) |
| bool | stream_is_realtime () const |
| int | stream_order_actions_len () const |
| const StreamOrderAction & | stream_order_action_at (int i) const |
| void | stream_order_actions_clear () |
| uint64_t | stream_state_hash () const |
| bool | set_account_currency_fx_series (const int64_t *timestamps_ms, const double *rates, int n) |
| void | run (const Bar *input_bars, int n_input, const std::string &input_tf, const std::string &script_tf, const std::unordered_map< std::string, std::string > &inputs, const SymInfo &syminfo, const void *overrides=nullptr, bool bar_magnifier=false, int magnifier_samples=4, MagnifierDistribution magnifier_dist=MagnifierDistribution::ENDPOINTS) |
| int | trade_count () const |
| Trade | get_trade (int i) const |
| int | report_cache_stats (std::uint64_t *resident_bytes, std::uint64_t *allocation_bypass_count) const noexcept |
| std::size_t | closed_trade_count () const noexcept |
| Trade | closed_trade (std::size_t i) const |
| bool | previous_closed_trade (std::size_t &cursor, Trade &value) const |
| int | report_trade_count () const |
| Trade | get_report_trade (int i) const |
| const Trade & | materialize_report_trade (int i) const |
| int | closed_trade_close_cause (int i) const |
| double | max_contracts_held_all () const |
| double | max_contracts_held_long () const |
| double | max_contracts_held_short () const |
| int | eventrades () const |
| void | fill_report (ReportC *out) const |
| int | set_report_mode_v1 (ReportMode mode) |
| metrics::MetricsStreamingStatusV1 | set_metrics_streaming_v1 (metrics::StreamingSharpeV1, metrics::MetricsNeedMaskV1) |
| metrics::MetricsStreamingStatusV1 | metrics_extent_receipt_v1 (metrics::MetricsExtentReceiptV1 *) const |
| metrics::MetricsStreamingStatusV1 | admit_metrics_plain_v1 (const MetricsPlainInputsV1 &, const metrics::MetricsExtentPlanV1 &, metrics::MetricsExtentReceiptV1 *) |
| metrics::MetricsStreamingStatusV1 | prepare_metrics_streaming_v1 (const metrics::MetricsStreamingConfigV1 &, const metrics::MetricsExtentPlanV1 &) |
| int | fill_report_envelope_v1 (ReportEnvelopeV1 *out) const |
| const std::string & | last_error () const |
| void | set_input (const std::string &key, const std::string &value) |
| void | clear_inputs () |
| void | set_trade_start_time (int64_t timestamp_ms) |
| void | set_chart_timezone (const std::string &tz) |
| const std::string & | chart_timezone () const |
| void | set_syminfo_timezone (const std::string &tz) |
| void | set_syminfo_session (const std::string &s) |
| void | set_syminfo_type (const std::string &t) |
| bool | session_template_knows_early_close () const |
| Whether TradingView's session template for this symbol carries the exchange's early closes and holidays, so a D/W/M request.security bucket completes on a shortened session's actual last chart bar (TimeframeAggregator::set_early_close_completes): exchange-listed kinds (stock, futures, index, fund, dr, ...) yes – NYSE:F's 12:45 ET half-day bar and CME's 11:45 CT early-close bar are pinned; the OTC quote streams – forex, cfd, crypto – no: their period ends at the nominal close and a session ending early completes lazily on the next period's first bar (OANDA:XAUUSD 15m, lab tv oanda pin, ledger log-20260905t034240z-30be11fe). | |
| bool | set_syminfo_string (const std::string &key, const std::string &value) |
| void | set_syminfo_mintick (double m) |
| void | set_syminfo_pointvalue (double pv) |
| virtual void | set_syminfo_metadata (const std::string &key, double value) |
| const std::string & | main_period () const |
| virtual bool | set_realtime_tail (bool on, int horizon_bars) |
| virtual bool | set_probe_suppress_tail_logic (bool on) |
| void | set_path_order (int mode) |
| uint64_t | broker_state_hash () const |
| double | position_avg_price () const |
| int64_t | position_cycle_seq () const |
| double | trail_best_price () const |
| double | initial_capital () const |
| virtual double | live_position_size () const |
| virtual int | observe_last_bar_dual_entry_path_v1 () const |
| virtual int | observe_pending_count_v1 () const |
| virtual int | observe_pending_copy_v1 (int index, pf_pending_order_v1_t *out) const |
| virtual int | observe_probe_fill_qty (int index, double fill_price, double *qty, int *close_only, int *partition) const |
| virtual int | observe_pending_level_resolved (int index) const |
| virtual int | observe_pending_effective_levels (int index, double *stop, double *limit, double *trail_activation) const |
| virtual double | observe_trail_best_price_v1 () const |
| virtual bool | set_symbol_feed_borrowed (const std::string &, const std::string &, const Bar *, const int64_t *, int) |
| double | live_current_equity () const |
| int64_t | script_bars_processed () const |
| void | set_broker_state_hash_recording (bool on) |
| void | set_magnifier_volume_weighted (bool on) |
| void | set_trace_enabled (bool on) |
| bool | trace_enabled () const |
| int | last_run_status () const |
| void | request_abort () |
| void | trace (const std::string &name, double value) |
| void | trace (const std::string &name, bool value) |
| void | trace (const std::string &name, int value) |
| bool | outputs_declared () const |
| bool | set_outputs_enabled (bool on) |
| int | output_series_count () const |
| int64_t | output_bars_len () const |
| bool | output_bar_times_copy (int64_t from_bar, int64_t *open_ms, int64_t *close_ms, int64_t capacity, int64_t *written) const |
| bool | output_series_copy (int slot, int64_t from_bar, double *out, int64_t capacity, int64_t *written) const |
| int | output_events_len () const |
| const OutputEvent * | output_event_at (int index) const |
| void | output_events_clear () |
| int | output_constants_count () const |
| double | output_constant_value (int index) const |
| int | set_scratch_tables_v1 (const pf_scratch_tables_v1 *descriptor) |
| const detail::ScratchTableConfig & | scratch_table_config () const noexcept |
| int | set_cache_policy_v1 (const pf_cache_policy_v1 *descriptor) |
| void | set_cache_policy (const CacheDefaults &policy) |
| const CacheDefaults & | cache_policy_config () const |
| const CacheDefaults & | cache_policy_for_run () const |
| int | set_report_sink_v1 (const pf_report_sink_v1 *sink) |
| int | set_report_sink_fd_v1 (const pf_report_sink_fd_v1 *sink) |
| int | report_sink_receipt_v1 (pf_report_sink_receipt_v1 *out) const noexcept |
| int | report_sink_summary_v1 (pf_report_sink_summary_v1 *out) const noexcept |
| int | report_sink_diagnostics_v1 (pf_report_sink_diagnostics_v1 *out) const noexcept |
| int | set_report_replay_v1 (const char *path, const char *run_id) |
| double | raw_net_profit_sum () const noexcept |
| double | report_pointvalue () const noexcept |
| void | set_trade_history_streamable (bool streamable) |
| bool | trade_history_streamable () const |
| int | set_optional_report_mode (report_sequence::ReportMode mode) |
| report_sequence::OptionalSequenceSummary | optional_sequence_summary () const |
Static Public Member Functions | |
| static int | classify_report_close_cause (const Trade &row) |
| static void | free_report (ReportC *report) |
| static int | set_output_series_limit_checked (const std::int64_t *maximum, char *error, std::size_t capacity) noexcept |
| static int | output_series_limit_failure (std::int64_t *maximum) noexcept |
Protected Types | |
| enum class | StreamPhase { IDLE , REALTIME , ENDED } |
| enum class | StreamInputMode { UNSET , TICKS , BARS } |
Static Protected Attributes | |
| static constexpr double | kLevelGridBandPoints = 0.01 |
| static constexpr std::uint32_t | report_replay_flag = UINT32_C(0x80000000) |
Definition at line 546 of file engine.hpp.
|
strongprotected |
| Enumerator | |
|---|---|
| IDLE | |
| REALTIME | |
| ENDED | |
Definition at line 1429 of file engine.hpp.
|
strongprotected |
| Enumerator | |
|---|---|
| UNSET | |
| TICKS | |
| BARS | |
Definition at line 1450 of file engine.hpp.
|
explicitprotected |
|
virtual |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in pineforge::engine_script_run_v19::NativeStrategyHost.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
Definition at line 691 of file engine.hpp.
References pineforge::na< double >(), and syminfo_metadata_.
|
protected |
|
protected |
Referenced by record_equity_point().
|
protected |
Referenced by observe_metrics_curve_v1().
|
inlineprotected |
Definition at line 844 of file engine.hpp.
References finish_metrics_streaming_v1().
| int pineforge::engine_script_run_v19::BacktestEngine::set_equity_report_mode | ( | ReportMode | mode | ) |
|
inline |
Definition at line 862 of file engine.hpp.
References active_equity_report_mode_.
|
inline |
Definition at line 865 of file engine.hpp.
References active_equity_report_mode_, equity_curve_, metrics_streaming_, summary_equity_fold_, and pineforge::SUMMARY_ONLY.
|
inline |
Definition at line 874 of file engine.hpp.
References summary_equity_snapshot_, and summary_equity_snapshot_valid_.
|
inline |
Definition at line 877 of file engine.hpp.
References summary_equity_ratios_ready_.
|
inline |
Definition at line 878 of file engine.hpp.
References pineforge::engine_script_run_v19::BacktestEngine::MetricsStreamingStateV1::result, summary_equity_ratios_, summary_equity_ratios_ready_, summary_equity_snapshot_, and summary_equity_snapshot_valid_.
|
inlineprotected |
Definition at line 890 of file engine.hpp.
References active_equity_report_mode_, equity_curve_, fold_equity_extreme(), max_drawdown_, max_equity_, max_runup_, metrics_streaming_, min_equity_, summary_broker_equity_prefix_, and pineforge::SUMMARY_ONLY.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
References pineforge::price.
|
protected |
References pineforge::price.
|
inlineprotected |
Definition at line 1047 of file engine.hpp.
References pineforge::price, and syminfo_mintick_.
Referenced by bar_fill_price().
|
inlineprotected |
Definition at line 1065 of file engine.hpp.
References round_to_mintick().
|
inlineprotected |
Definition at line 1093 of file engine.hpp.
References pineforge::price, and syminfo_mintick_.
|
inlineprotected |
Definition at line 1127 of file engine.hpp.
References syminfo_mintick_.
Referenced by level_on_price_grid().
|
inlineprotected |
Definition at line 1137 of file engine.hpp.
References kLevelGridBandPoints, and price_grid_decimals().
|
inlineprotected |
Definition at line 1165 of file engine.hpp.
References active_account_currency_fx(), calc_commission_at(), commission_type_, and pineforge::PERCENT.
Referenced by open_entry_commission(), and snapshot_entry_commission().
|
inlineprotected |
Definition at line 1173 of file engine.hpp.
References pineforge::CASH_PER_CONTRACT, pineforge::CASH_PER_ORDER, commission_type_, commission_value_, pineforge::PERCENT, and syminfo_.
Referenced by calc_commission().
|
inlineprotected |
Definition at line 1191 of file engine.hpp.
References calc_commission(), pineforge::PyramidEntry::entry_commission_account, pineforge::PyramidEntry::price, and pineforge::PyramidEntry::qty.
Referenced by allocated_entry_commission().
|
inlineprotected |
Definition at line 1197 of file engine.hpp.
References open_entry_commission(), and pineforge::PyramidEntry::qty.
|
inlineprotected |
Definition at line 1203 of file engine.hpp.
References calc_commission(), pineforge::PyramidEntry::entry_commission_account, pineforge::PyramidEntry::price, and pineforge::PyramidEntry::qty.
|
inlineprotected |
Definition at line 1226 of file engine.hpp.
References qty_step_.
|
inlineprotected |
Definition at line 1246 of file engine.hpp.
References qty_step_.
|
inlineprotected |
Definition at line 1261 of file engine.hpp.
References net_profit_sum_.
|
inlineprotected |
Definition at line 1262 of file engine.hpp.
References gross_profit_sum_.
|
inlineprotected |
Definition at line 1263 of file engine.hpp.
References gross_loss_sum_.
|
inlineprotected |
Definition at line 1264 of file engine.hpp.
References initial_capital_, and net_profit_sum_.
Referenced by live_current_equity().
|
inlineprotected |
Definition at line 1266 of file engine.hpp.
References initial_capital_, and max_runup_.
|
inlineprotected |
Definition at line 1269 of file engine.hpp.
References gross_profit_sum_, and initial_capital_.
|
inlineprotected |
Definition at line 1272 of file engine.hpp.
References gross_loss_sum_, and initial_capital_.
|
inlineprotected |
Definition at line 1275 of file engine.hpp.
References net_profit_sum_, and trades_.
|
inlineprotected |
Definition at line 1279 of file engine.hpp.
References trade_percent_prefix_, and trades_.
|
inlineprotected |
Definition at line 1286 of file engine.hpp.
References gross_profit_sum_, and win_trades_count_.
|
inlineprotected |
Definition at line 1289 of file engine.hpp.
References gross_loss_sum_, and loss_trades_count_.
|
inlineprotected |
Definition at line 1292 of file engine.hpp.
References trade_percent_prefix_, trades_, and win_trades_count_.
|
inlineprotected |
Definition at line 1301 of file engine.hpp.
References loss_trades_count_, trade_percent_prefix_, and trades_.
|
inlineprotected |
Definition at line 1310 of file engine.hpp.
References pineforge::FLAT, position_entry_price_, position_qty_, position_side_, and syminfo_.
|
inlineprotected |
Definition at line 1319 of file engine.hpp.
References active_account_currency_fx(), pineforge::FLAT, open_profit_at(), and position_side_.
Referenced by record_equity_point(), and update_equity_extremes().
|
inlineprotected |
Definition at line 1324 of file engine.hpp.
References pineforge::FLAT, pineforge::LONG, position_entry_price_, position_qty_, position_side_, and syminfo_.
Referenced by open_profit().
|
inlineprotected |
Definition at line 1336 of file engine.hpp.
References win_trades_count_.
|
inlineprotected |
Definition at line 1337 of file engine.hpp.
References loss_trades_count_.
|
inlineprotected |
Definition at line 1360 of file engine.hpp.
References bar_time_memo_, bar_time_memo_ts_, current_bar_, pineforge::engine_script_run_v19::BacktestEngine::BarTime::dayofmonth, pineforge::engine_script_run_v19::BacktestEngine::BarTime::dayofweek, pineforge::engine_script_run_v19::BacktestEngine::BarTime::hour, pineforge::engine_script_run_v19::BacktestEngine::BarTime::minute, pineforge::engine_script_run_v19::BacktestEngine::BarTime::month, pineforge::engine_script_run_v19::BacktestEngine::BarTime::second, pineforge::engine_script_run_v19::BacktestEngine::BarTime::weekofyear, and pineforge::engine_script_run_v19::BacktestEngine::BarTime::year.
Referenced by _bar_dayofmonth(), _bar_dayofweek(), _bar_hour(), _bar_minute(), _bar_month(), _bar_second(), _bar_weekofyear(), and _bar_year().
|
inlineprotected |
Definition at line 1380 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::hour.
|
inlineprotected |
Definition at line 1381 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::minute.
|
inlineprotected |
Definition at line 1382 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::second.
|
inlineprotected |
Definition at line 1383 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::dayofmonth.
|
inlineprotected |
Definition at line 1384 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::dayofweek.
|
inlineprotected |
Definition at line 1385 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::month.
|
inlineprotected |
Definition at line 1386 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::year.
|
inlineprotected |
Definition at line 1387 of file engine.hpp.
References _decompose_bar_time(), and pineforge::engine_script_run_v19::BacktestEngine::BarTime::weekofyear.
|
inlineprotected |
Definition at line 1561 of file engine.hpp.
References abort_requested_.
|
protected |
|
protected |
|
protected |
References pineforge::bar_index.
|
protected |
|
inlineprotectedvirtual |
Definition at line 1614 of file engine.hpp.
|
inlineprotectedvirtual |
Definition at line 1616 of file engine.hpp.
|
inlineprotectedvirtual |
Definition at line 1617 of file engine.hpp.
|
inlineprotectedvirtual |
Definition at line 1618 of file engine.hpp.
|
inlineprotectedvirtual |
Definition at line 1626 of file engine.hpp.
|
inlineprotectedvirtual |
Definition at line 1627 of file engine.hpp.
|
inlineprotectedvirtual |
Definition at line 1628 of file engine.hpp.
|
inlineprotectedvirtual |
Definition at line 1633 of file engine.hpp.
|
inlineprotected |
Definition at line 1643 of file engine.hpp.
References max_drawdown_, max_equity_, max_runup_, and min_equity_.
Referenced by refold_summary_equity_tail().
|
inlineprotected |
Definition at line 1656 of file engine.hpp.
References current_bar_, pineforge::FLAT, fold_report_equity_extreme(), initial_capital_, pineforge::LONG, max_contracts_held_all_, max_contracts_held_long_, max_contracts_held_short_, net_profit_sum_, open_profit(), position_qty_, position_side_, and pineforge::SHORT.
|
inlineprotected |
Definition at line 1670 of file engine.hpp.
References chart_timezone_, pineforge::metrics::equity_month_key(), metrics_streaming_, and pineforge::metrics::monthly_replay_time_supported_v1().
Referenced by record_equity_point().
|
inlineprotected |
Definition at line 1683 of file engine.hpp.
References active_equity_report_mode_, bars_in_market_, pineforge::metrics::CompletedMark, current_bar_, pf_equity_point_t::equity, equity_curve_, first_bar_open_, pineforge::FLAT, initial_capital_, metrics_streaming_, net_profit_sum_, pf_equity_point_t::open_profit, open_profit(), position_side_, prepare_equity_point(), report_equity_month_key(), store_equity_point(), summary_broker_equity_prefix_, summary_equity_fold_, summary_equity_ratios_, summary_equity_ratios_ready_, summary_equity_snapshot_valid_, pineforge::SUMMARY_ONLY, sync_metrics_streaming_held_v1(), and pf_equity_point_t::time_ms.
|
inlineprotected |
Definition at line 1732 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1737 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1741 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1745 of file engine.hpp.
References pineforge::na< int >(), and trades_.
|
inlineprotected |
Definition at line 1749 of file engine.hpp.
References pineforge::na< int >(), and trades_.
|
inlineprotected |
Definition at line 1753 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1757 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1761 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1765 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1769 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1773 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1777 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1781 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1785 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1789 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1793 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1801 of file engine.hpp.
|
inlineprotected |
Definition at line 1806 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1810 of file engine.hpp.
|
inlineprotected |
Definition at line 1817 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 1821 of file engine.hpp.
References pineforge::FLAT, pineforge::LONG, position_side_, and pyramid_entries_.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
Definition at line 1841 of file engine.hpp.
References pineforge::FLAT, position_side_, and pyramid_entries_.
|
inlineprotected |
Definition at line 1846 of file engine.hpp.
References initial_capital_, and max_drawdown_.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by calc_commission(), and open_profit().
|
protected |
|
protected |
|
inlineprotectednoexcept |
Definition at line 1987 of file engine.hpp.
|
protected |
|
protectedvirtual |
Referenced by aux_security_feed_enabled().
|
protectedvirtual |
|
inlineprotected |
Definition at line 1994 of file engine.hpp.
References source_aux_security_feed_enabled().
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
inlineprotectedvirtual |
Definition at line 2006 of file engine.hpp.
|
inlineprotectedvirtualnoexcept |
Reimplemented in pineforge::engine_script_run_v19::NativeStrategyHost.
Definition at line 2013 of file engine.hpp.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by clear_inputs(), set_broker_state_hash_recording(), set_chart_timezone(), set_input(), set_magnifier_volume_weighted(), set_path_order(), set_syminfo_mintick(), set_syminfo_pointvalue(), set_syminfo_session(), set_syminfo_string(), set_syminfo_timezone(), set_syminfo_type(), set_trace_enabled(), and set_trade_start_time().
| int pineforge::engine_script_run_v19::BacktestEngine::execution_contract | ( | ) | const |
| bool pineforge::engine_script_run_v19::BacktestEngine::native_bound | ( | ) | const |
|
pure virtual |
Implemented in pineforge::engine_script_run_v19::NativeStrategyHost.
| void pineforge::engine_script_run_v19::BacktestEngine::run | ( | const Bar * | bars, |
| int | n ) |
| void pineforge::engine_script_run_v19::BacktestEngine::run | ( | const Bar * | input_bars, |
| int | n_input, | ||
| const std::string & | input_tf, | ||
| const std::string & | script_tf, | ||
| bool | bar_magnifier = false, | ||
| int | magnifier_samples = 4, | ||
| MagnifierDistribution | magnifier_dist = MagnifierDistribution::ENDPOINTS ) |
References pineforge::ENDPOINTS.
|
virtual |
| bool pineforge::engine_script_run_v19::BacktestEngine::set_native_security_feed | ( | const std::string & | timeframe, |
| const Bar * | bars, | ||
| int | n ) |
References pineforge::timeframe.
|
inline |
Definition at line 2086 of file engine.hpp.
References native_security_feeds_.
|
inline |
Definition at line 2091 of file engine.hpp.
References diag_native_security_substitutions_.
|
inline |
Definition at line 2094 of file engine.hpp.
References diag_native_security_misses_.
|
inline |
Definition at line 2099 of file engine.hpp.
References chart_day_partition_.
|
virtual |
References pineforge::timeframe.
|
virtual |
References pineforge::timeframe.
|
virtual |
|
virtual |
| bool pineforge::engine_script_run_v19::BacktestEngine::stream_begin | ( | const Bar * | warmup_bars, |
| int | n_warmup, | ||
| const std::string & | input_tf, | ||
| const std::string & | script_tf = "" ) |
| bool pineforge::engine_script_run_v19::BacktestEngine::stream_push_bar | ( | const Bar & | bar | ) |
| bool pineforge::engine_script_run_v19::BacktestEngine::stream_push_tick | ( | const TradeTick & | tick | ) |
| bool pineforge::engine_script_run_v19::BacktestEngine::stream_push_ticks | ( | const TradeTick * | ticks, |
| int | n ) |
| bool pineforge::engine_script_run_v19::BacktestEngine::stream_advance_time | ( | int64_t | timestamp_ms | ) |
| bool pineforge::engine_script_run_v19::BacktestEngine::stream_end | ( | bool | finalize_partial_input_bar = false | ) |
|
inline |
Definition at line 2135 of file engine.hpp.
References REALTIME, and stream_phase_.
|
inline |
Definition at line 2136 of file engine.hpp.
References stream_order_actions_.
|
inline |
Definition at line 2137 of file engine.hpp.
References stream_order_actions_.
|
inline |
Definition at line 2140 of file engine.hpp.
References stream_order_actions_.
| uint64_t pineforge::engine_script_run_v19::BacktestEngine::stream_state_hash | ( | ) | const |
| bool pineforge::engine_script_run_v19::BacktestEngine::set_account_currency_fx_series | ( | const int64_t * | timestamps_ms, |
| const double * | rates, | ||
| int | n ) |
| void pineforge::engine_script_run_v19::BacktestEngine::run | ( | const Bar * | input_bars, |
| int | n_input, | ||
| const std::string & | input_tf, | ||
| const std::string & | script_tf, | ||
| const std::unordered_map< std::string, std::string > & | inputs, | ||
| const SymInfo & | syminfo, | ||
| const void * | overrides = nullptr, | ||
| bool | bar_magnifier = false, | ||
| int | magnifier_samples = 4, | ||
| MagnifierDistribution | magnifier_dist = MagnifierDistribution::ENDPOINTS ) |
References pineforge::ENDPOINTS.
|
inline |
Definition at line 2167 of file engine.hpp.
References trades_.
|
inline |
Definition at line 2168 of file engine.hpp.
References trades_.
|
noexcept |
|
inlinenoexcept |
Definition at line 2179 of file engine.hpp.
References trades_.
|
inline |
Definition at line 2180 of file engine.hpp.
References trades_.
|
inline |
Definition at line 2183 of file engine.hpp.
References trades_.
|
inline |
Definition at line 2192 of file engine.hpp.
References range_end_trades_, and trades_.
|
inline |
Definition at line 2196 of file engine.hpp.
References range_end_trades_, and trades_.
|
inline |
Definition at line 2204 of file engine.hpp.
References range_end_trades_, and trades_.
|
static |
| int pineforge::engine_script_run_v19::BacktestEngine::closed_trade_close_cause | ( | int | i | ) | const |
|
inline |
Definition at line 2226 of file engine.hpp.
References max_contracts_held_all_.
|
inline |
Definition at line 2227 of file engine.hpp.
References max_contracts_held_long_.
|
inline |
Definition at line 2228 of file engine.hpp.
References max_contracts_held_short_.
|
inline |
Definition at line 2231 of file engine.hpp.
References eventrades_count_.
| void pineforge::engine_script_run_v19::BacktestEngine::fill_report | ( | ReportC * | out | ) | const |
Referenced by pineforge::native_module::publish_report().
|
static |
| int pineforge::engine_script_run_v19::BacktestEngine::set_report_mode_v1 | ( | ReportMode | mode | ) |
| metrics::MetricsStreamingStatusV1 pineforge::engine_script_run_v19::BacktestEngine::set_metrics_streaming_v1 | ( | metrics::StreamingSharpeV1 | , |
| metrics::MetricsNeedMaskV1 | ) |
| metrics::MetricsStreamingStatusV1 pineforge::engine_script_run_v19::BacktestEngine::metrics_extent_receipt_v1 | ( | metrics::MetricsExtentReceiptV1 * | ) | const |
| metrics::MetricsStreamingStatusV1 pineforge::engine_script_run_v19::BacktestEngine::admit_metrics_plain_v1 | ( | const MetricsPlainInputsV1 & | , |
| const metrics::MetricsExtentPlanV1 & | , | ||
| metrics::MetricsExtentReceiptV1 * | ) |
| metrics::MetricsStreamingStatusV1 pineforge::engine_script_run_v19::BacktestEngine::prepare_metrics_streaming_v1 | ( | const metrics::MetricsStreamingConfigV1 & | , |
| const metrics::MetricsExtentPlanV1 & | ) |
| int pineforge::engine_script_run_v19::BacktestEngine::fill_report_envelope_v1 | ( | ReportEnvelopeV1 * | out | ) | const |
|
inline |
Definition at line 2274 of file engine.hpp.
References last_error_.
|
inline |
Definition at line 2279 of file engine.hpp.
References guard_native_mutation(), and inputs_.
Referenced by pineforge::native_module::set_input(), and pineforge::native_module::set_override().
|
inline |
Definition at line 2283 of file engine.hpp.
References guard_native_mutation(), and inputs_.
|
inline |
Definition at line 2287 of file engine.hpp.
References guard_native_mutation(), and trade_start_time_.
|
inline |
Definition at line 2319 of file engine.hpp.
References chart_timezone_, and guard_native_mutation().
|
inline |
Definition at line 2323 of file engine.hpp.
References chart_timezone_.
|
inline |
Definition at line 2334 of file engine.hpp.
References guard_native_mutation(), and syminfo_.
|
inline |
Definition at line 2338 of file engine.hpp.
References guard_native_mutation(), and syminfo_.
|
inline |
Definition at line 2348 of file engine.hpp.
References guard_native_mutation(), and syminfo_.
| bool pineforge::engine_script_run_v19::BacktestEngine::session_template_knows_early_close | ( | ) | const |
Whether TradingView's session template for this symbol carries the exchange's early closes and holidays, so a D/W/M request.security bucket completes on a shortened session's actual last chart bar (TimeframeAggregator::set_early_close_completes): exchange-listed kinds (stock, futures, index, fund, dr, ...) yes – NYSE:F's 12:45 ET half-day bar and CME's 11:45 CT early-close bar are pinned; the OTC quote streams – forex, cfd, crypto – no: their period ends at the nominal close and a session ending early completes lazily on the next period's first bar (OANDA:XAUUSD 15m, lab tv oanda pin, ledger log-20260905t034240z-30be11fe).
syminfo.type comes from the harness (strategy_set_syminfo_type <- PINEFORGE_VERIFY_SYMTYPE); the constructor default "crypto" keeps an untyped run on the lazy rule.
|
inline |
Definition at line 2369 of file engine.hpp.
References guard_native_mutation(), and syminfo_.
|
inline |
Definition at line 2389 of file engine.hpp.
References guard_native_mutation(), syminfo_, and syminfo_mintick_.
|
inline |
Definition at line 2393 of file engine.hpp.
References guard_native_mutation(), and syminfo_.
|
virtual |
|
inline |
Definition at line 2402 of file engine.hpp.
References script_tf_.
|
virtual |
|
virtual |
|
inline |
Definition at line 2437 of file engine.hpp.
References guard_native_mutation(), and path_order_mode_.
| uint64_t pineforge::engine_script_run_v19::BacktestEngine::broker_state_hash | ( | ) | const |
|
inline |
Definition at line 2459 of file engine.hpp.
References position_entry_price_.
|
inline |
Definition at line 2460 of file engine.hpp.
References position_cycle_seq_.
|
inline |
Definition at line 2461 of file engine.hpp.
References trail_best_price_.
| double pineforge::engine_script_run_v19::BacktestEngine::initial_capital | ( | ) | const |
|
inlinevirtual |
Definition at line 2473 of file engine.hpp.
References pineforge::LONG, position_qty_, position_side_, and pineforge::SHORT.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Definition at line 2499 of file engine.hpp.
|
inline |
Definition at line 2500 of file engine.hpp.
References current_equity().
|
inline |
Definition at line 2505 of file engine.hpp.
References diag_script_bars_processed_.
|
inline |
Definition at line 2552 of file engine.hpp.
References broker_state_hash_recording_, and guard_native_mutation().
|
inline |
Definition at line 2560 of file engine.hpp.
References guard_native_mutation(), and magnifier_volume_weighted_.
Referenced by pineforge::native_module::set_magnifier_volume_weighted().
|
inline |
Definition at line 2570 of file engine.hpp.
References guard_native_mutation(), and trace_enabled_.
|
inline |
Definition at line 2574 of file engine.hpp.
References trace_enabled_.
|
inline |
Definition at line 2577 of file engine.hpp.
References last_run_status_.
|
inline |
Definition at line 2583 of file engine.hpp.
References abort_requested_.
| void pineforge::engine_script_run_v19::BacktestEngine::trace | ( | const std::string & | name, |
| double | value ) |
|
inline |
|
inline |
|
inline |
Definition at line 2626 of file engine.hpp.
| bool pineforge::engine_script_run_v19::BacktestEngine::set_outputs_enabled | ( | bool | on | ) |
|
inline |
Definition at line 2633 of file engine.hpp.
References outputs_enabled_.
|
inline |
Definition at line 2634 of file engine.hpp.
| bool pineforge::engine_script_run_v19::BacktestEngine::output_bar_times_copy | ( | int64_t | from_bar, |
| int64_t * | open_ms, | ||
| int64_t * | close_ms, | ||
| int64_t | capacity, | ||
| int64_t * | written ) const |
| bool pineforge::engine_script_run_v19::BacktestEngine::output_series_copy | ( | int | slot, |
| int64_t | from_bar, | ||
| double * | out, | ||
| int64_t | capacity, | ||
| int64_t * | written ) const |
|
inline |
Definition at line 2639 of file engine.hpp.
| const OutputEvent * pineforge::engine_script_run_v19::BacktestEngine::output_event_at | ( | int | index | ) | const |
| void pineforge::engine_script_run_v19::BacktestEngine::output_events_clear | ( | ) |
|
inline |
Definition at line 2643 of file engine.hpp.
References outputs_enabled_.
| double pineforge::engine_script_run_v19::BacktestEngine::output_constant_value | ( | int | index | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Definition at line 2819 of file engine.hpp.
References pf_scratch_tables_v1::B_c, pf_scratch_tables_v1::B_e, pf_scratch_tables_v1::B_q, pf_scratch_tables_v1::B_U, pf_scratch_tables_v1::B_V, pf_scratch_tables_v1::backend, pineforge::detail::ScratchTableConfig::backend, pineforge::detail::bounded_memory, pf_scratch_tables_v1::K_c, pf_scratch_tables_v1::K_e, pf_scratch_tables_v1::K_q, pineforge::detail::ScratchTableConfig::manifest, pf_scratch_tables_v1::R, pf_scratch_tables_v1::reserved, pf_scratch_tables_v1::struct_size, pf_scratch_tables_v1::U, pf_scratch_tables_v1::V, and pf_scratch_tables_v1::version.
|
inlinenoexcept |
Definition at line 2839 of file engine.hpp.
| int pineforge::engine_script_run_v19::BacktestEngine::set_cache_policy_v1 | ( | const pf_cache_policy_v1 * | descriptor | ) |
| void pineforge::engine_script_run_v19::BacktestEngine::set_cache_policy | ( | const CacheDefaults & | policy | ) |
| const CacheDefaults & pineforge::engine_script_run_v19::BacktestEngine::cache_policy_config | ( | ) | const |
| const CacheDefaults & pineforge::engine_script_run_v19::BacktestEngine::cache_policy_for_run | ( | ) | const |
| int pineforge::engine_script_run_v19::BacktestEngine::set_report_sink_v1 | ( | const pf_report_sink_v1 * | sink | ) |
| int pineforge::engine_script_run_v19::BacktestEngine::set_report_sink_fd_v1 | ( | const pf_report_sink_fd_v1 * | sink | ) |
|
noexcept |
|
noexcept |
|
noexcept |
| int pineforge::engine_script_run_v19::BacktestEngine::set_report_replay_v1 | ( | const char * | path, |
| const char * | run_id ) |
|
inlinenoexcept |
Definition at line 2857 of file engine.hpp.
References net_profit_sum_.
|
noexcept |
| void pineforge::engine_script_run_v19::BacktestEngine::set_trade_history_streamable | ( | bool | streamable | ) |
References set_trade_history_streamable().
Referenced by set_trade_history_streamable().
|
inline |
Definition at line 2862 of file engine.hpp.
References trade_history_streamable().
Referenced by trade_history_streamable().
|
inlineprotectednoexcept |
Definition at line 2870 of file engine.hpp.
References pending_equity_report_mode_, and report_replay_flag.
|
inlineprotectednoexcept |
Definition at line 2874 of file engine.hpp.
References pending_equity_report_mode_, and report_replay_flag.
|
inlineprotectednoexcept |
Definition at line 2878 of file engine.hpp.
References find_report_replay(), pending_equity_report_mode_, and report_replay_flag.
|
protectednoexcept |
Referenced by report_replay_state().
|
protected |
References amend_report_replay_point().
Referenced by amend_report_replay_point().
|
inlineprotectednoexcept |
Definition at line 2888 of file engine.hpp.
References scratch_tables_for_run().
Referenced by scratch_tables_for_run().
|
inlineprotected |
Definition at line 2894 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 2898 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 2902 of file engine.hpp.
References trades_.
|
inlineprotected |
Definition at line 2906 of file engine.hpp.
References trades_.
|
protectednoexcept |
Referenced by last_equity_point().
|
protectednoexcept |
References last_equity_point().
|
protected |
References report_sink_equity_scratch_region().
Referenced by report_sink_equity_scratch_region().
|
protected |
References store_equity_point().
Referenced by record_equity_point(), and store_equity_point().
|
protected |
References prepare_equity_point().
Referenced by prepare_equity_point(), and record_equity_point().
|
protected |
References fold_report_equity_extreme().
Referenced by fold_report_equity_extreme(), and update_equity_extremes().
|
protected |
References refold_equity_tail().
Referenced by refold_equity_tail().
|
protected |
References present_report_equity_tail().
Referenced by present_report_equity_tail().
|
protected |
|
protected |
|
protected |
| int pineforge::engine_script_run_v19::BacktestEngine::set_optional_report_mode | ( | report_sequence::ReportMode | mode | ) |
| report_sequence::OptionalSequenceSummary pineforge::engine_script_run_v19::BacktestEngine::optional_sequence_summary | ( | ) | const |
|
staticnoexcept |
|
staticnoexcept |
|
protected |
Definition at line 587 of file engine.hpp.
Referenced by live_position_size(), open_profit(), open_profit_at(), open_trade_direction(), open_trades_capital_held(), position_entry_name(), record_equity_point(), and update_equity_extremes().
|
protected |
Definition at line 588 of file engine.hpp.
Referenced by open_profit_at(), open_trades_capital_held(), and position_avg_price().
|
protected |
Definition at line 592 of file engine.hpp.
|
protected |
Definition at line 593 of file engine.hpp.
|
protected |
Definition at line 599 of file engine.hpp.
Referenced by live_position_size(), open_profit_at(), open_trades_capital_held(), and update_equity_extremes().
|
protected |
Definition at line 600 of file engine.hpp.
|
protected |
Definition at line 601 of file engine.hpp.
|
protected |
Definition at line 605 of file engine.hpp.
Referenced by position_cycle_seq().
|
protected |
Definition at line 606 of file engine.hpp.
|
protected |
Definition at line 607 of file engine.hpp.
Referenced by open_trade_direction(), and position_entry_name().
|
protected |
Definition at line 610 of file engine.hpp.
Referenced by current_equity(), grossloss_percent(), grossprofit_percent(), max_drawdown_percent(), max_runup_percent(), record_equity_point(), and update_equity_extremes().
|
protected |
Definition at line 613 of file engine.hpp.
Referenced by calc_commission(), and calc_commission_at().
|
protected |
Definition at line 614 of file engine.hpp.
Referenced by calc_commission_at().
|
protected |
Definition at line 615 of file engine.hpp.
|
protected |
Definition at line 616 of file engine.hpp.
Referenced by price_grid_decimals(), round_to_mintick(), set_syminfo_mintick(), and tick_grid_price().
|
protected |
Definition at line 623 of file engine.hpp.
Referenced by apply_exit_qty_step(), and apply_qty_step().
|
protected |
Definition at line 635 of file engine.hpp.
|
protected |
Definition at line 636 of file engine.hpp.
|
protected |
Definition at line 637 of file engine.hpp.
|
protected |
Definition at line 643 of file engine.hpp.
|
protected |
Definition at line 644 of file engine.hpp.
|
protected |
Definition at line 645 of file engine.hpp.
|
protected |
Definition at line 647 of file engine.hpp.
Referenced by set_trade_start_time().
|
protected |
Definition at line 651 of file engine.hpp.
Referenced by calc_commission_at(), closed_trade_max_drawdown_percent(), closed_trade_max_runup_percent(), open_profit_at(), open_trades_capital_held(), set_syminfo_mintick(), set_syminfo_pointvalue(), set_syminfo_session(), set_syminfo_string(), set_syminfo_timezone(), and set_syminfo_type().
|
protected |
Definition at line 652 of file engine.hpp.
|
protected |
Definition at line 653 of file engine.hpp.
|
protected |
Definition at line 661 of file engine.hpp.
Referenced by set_path_order().
|
protected |
Definition at line 665 of file engine.hpp.
|
protected |
Definition at line 670 of file engine.hpp.
Referenced by chart_timezone(), report_equity_month_key(), and set_chart_timezone().
|
protected |
Definition at line 671 of file engine.hpp.
Referenced by clear_inputs(), and set_input().
|
protected |
Definition at line 678 of file engine.hpp.
Referenced by get_syminfo_metadata().
|
protected |
Definition at line 697 of file engine.hpp.
Referenced by _decompose_bar_time(), record_equity_point(), and update_equity_extremes().
|
protected |
Definition at line 698 of file engine.hpp.
|
protected |
Definition at line 706 of file engine.hpp.
|
protected |
Definition at line 707 of file engine.hpp.
|
protected |
Definition at line 716 of file engine.hpp.
|
protected |
Definition at line 717 of file engine.hpp.
Referenced by avg_losing_trade_percent(), avg_trade(), avg_trade_percent(), avg_winning_trade_percent(), closed_trade(), closed_trade_commission(), closed_trade_count(), closed_trade_direction(), closed_trade_entry_bar_index(), closed_trade_entry_comment(), closed_trade_entry_comment_equals(), closed_trade_entry_id(), closed_trade_entry_id_equals(), closed_trade_entry_incarnation(), closed_trade_entry_price(), closed_trade_entry_time(), closed_trade_exit_bar_index(), closed_trade_exit_comment(), closed_trade_exit_comment_equals(), closed_trade_exit_id(), closed_trade_exit_id_equals(), closed_trade_exit_price(), closed_trade_exit_time(), closed_trade_max_drawdown(), closed_trade_max_drawdown_percent(), closed_trade_max_runup(), closed_trade_max_runup_percent(), closed_trade_profit(), closed_trade_profit_percent(), closed_trade_size(), get_report_trade(), get_trade(), materialize_report_trade(), previous_closed_trade(), report_trade_count(), and trade_count().
|
protected |
Definition at line 724 of file engine.hpp.
Referenced by get_report_trade(), materialize_report_trade(), and report_trade_count().
|
protected |
Definition at line 729 of file engine.hpp.
Referenced by trail_best_price().
|
protected |
Definition at line 733 of file engine.hpp.
|
protected |
Definition at line 736 of file engine.hpp.
Referenced by avg_trade(), current_equity(), net_profit(), raw_net_profit_sum(), record_equity_point(), and update_equity_extremes().
|
protected |
Definition at line 741 of file engine.hpp.
|
protected |
Definition at line 745 of file engine.hpp.
|
protected |
Definition at line 746 of file engine.hpp.
Referenced by avg_winning_trade(), gross_profit(), and grossprofit_percent().
|
protected |
Definition at line 747 of file engine.hpp.
Referenced by avg_losing_trade(), gross_loss(), and grossloss_percent().
|
protected |
Definition at line 748 of file engine.hpp.
Referenced by avg_winning_trade(), avg_winning_trade_percent(), and count_wintrades().
|
protected |
Definition at line 749 of file engine.hpp.
Referenced by avg_losing_trade(), avg_losing_trade_percent(), and count_losstrades().
|
protected |
Definition at line 752 of file engine.hpp.
Referenced by fold_equity_extreme(), and refold_summary_equity_tail().
|
protected |
Definition at line 753 of file engine.hpp.
Referenced by fold_equity_extreme(), max_drawdown_percent(), and refold_summary_equity_tail().
|
protected |
Definition at line 754 of file engine.hpp.
Referenced by fold_equity_extreme(), max_runup_percent(), and refold_summary_equity_tail().
|
protected |
Definition at line 755 of file engine.hpp.
Referenced by fold_equity_extreme(), and refold_summary_equity_tail().
|
protected |
Definition at line 760 of file engine.hpp.
Referenced by equity_logical_point_count(), record_equity_point(), and refold_summary_equity_tail().
|
protected |
Definition at line 761 of file engine.hpp.
Referenced by record_equity_point().
|
protected |
Definition at line 762 of file engine.hpp.
Referenced by record_equity_point().
|
protected |
Definition at line 768 of file engine.hpp.
Referenced by set_broker_state_hash_recording().
|
protected |
Definition at line 769 of file engine.hpp.
|
protected |
Definition at line 772 of file engine.hpp.
Referenced by max_contracts_held_all(), and update_equity_extremes().
|
protected |
Definition at line 773 of file engine.hpp.
Referenced by max_contracts_held_long(), and update_equity_extremes().
|
protected |
Definition at line 774 of file engine.hpp.
Referenced by max_contracts_held_short(), and update_equity_extremes().
|
protected |
Definition at line 777 of file engine.hpp.
Referenced by eventrades().
|
protected |
Definition at line 785 of file engine.hpp.
Referenced by pending_equity_report_mode(), report_replay_state(), and with_report_replay_flag().
|
protected |
Definition at line 786 of file engine.hpp.
Referenced by equity_logical_point_count(), equity_report_mode(), record_equity_point(), and refold_summary_equity_tail().
|
protected |
Definition at line 787 of file engine.hpp.
Referenced by equity_logical_point_count(), and record_equity_point().
|
mutableprotected |
Definition at line 788 of file engine.hpp.
Referenced by equity_summary_snapshot(), and install_equity_ratio_result().
|
mutableprotected |
Definition at line 789 of file engine.hpp.
Referenced by equity_summary_snapshot(), install_equity_ratio_result(), and record_equity_point().
|
mutableprotected |
Definition at line 790 of file engine.hpp.
Referenced by equity_summary_ratios_ready(), install_equity_ratio_result(), and record_equity_point().
|
protected |
Definition at line 791 of file engine.hpp.
Referenced by install_equity_ratio_result(), and record_equity_point().
|
protected |
Definition at line 792 of file engine.hpp.
Referenced by record_equity_point(), and refold_summary_equity_tail().
|
mutableprotected |
Definition at line 823 of file engine.hpp.
Referenced by equity_logical_point_count(), record_equity_point(), refold_summary_equity_tail(), and report_equity_month_key().
|
protected |
Definition at line 904 of file engine.hpp.
|
protected |
Definition at line 922 of file engine.hpp.
|
protected |
Definition at line 923 of file engine.hpp.
|
staticconstexprprotected |
Definition at line 1126 of file engine.hpp.
Referenced by level_on_price_grid().
|
mutableprotected |
Definition at line 1357 of file engine.hpp.
Referenced by _decompose_bar_time().
|
mutableprotected |
Definition at line 1358 of file engine.hpp.
Referenced by _decompose_bar_time().
|
protected |
Definition at line 1390 of file engine.hpp.
|
protected |
Definition at line 1391 of file engine.hpp.
|
protected |
Definition at line 1392 of file engine.hpp.
|
protected |
Definition at line 1393 of file engine.hpp.
|
protected |
Definition at line 1401 of file engine.hpp.
Referenced by set_magnifier_volume_weighted().
|
protected |
Definition at line 1409 of file engine.hpp.
|
protected |
Definition at line 1416 of file engine.hpp.
|
protected |
Definition at line 1417 of file engine.hpp.
Referenced by main_period().
|
protected |
Definition at line 1421 of file engine.hpp.
|
protected |
Definition at line 1422 of file engine.hpp.
|
protected |
Definition at line 1423 of file engine.hpp.
|
protected |
Definition at line 1430 of file engine.hpp.
Referenced by stream_is_realtime().
|
protected |
Definition at line 1431 of file engine.hpp.
|
protected |
Definition at line 1436 of file engine.hpp.
|
protected |
Definition at line 1437 of file engine.hpp.
|
protected |
Definition at line 1438 of file engine.hpp.
|
protected |
Definition at line 1439 of file engine.hpp.
|
protected |
Definition at line 1440 of file engine.hpp.
|
protected |
Definition at line 1441 of file engine.hpp.
|
protected |
Definition at line 1442 of file engine.hpp.
|
protected |
Definition at line 1443 of file engine.hpp.
|
protected |
Definition at line 1444 of file engine.hpp.
|
protected |
Definition at line 1445 of file engine.hpp.
|
protected |
Definition at line 1446 of file engine.hpp.
|
protected |
Definition at line 1447 of file engine.hpp.
|
protected |
Definition at line 1448 of file engine.hpp.
|
protected |
Definition at line 1449 of file engine.hpp.
|
protected |
Definition at line 1451 of file engine.hpp.
|
protected |
Definition at line 1452 of file engine.hpp.
|
protected |
Definition at line 1453 of file engine.hpp.
|
protected |
Definition at line 1454 of file engine.hpp.
Referenced by stream_order_action_at(), stream_order_actions_clear(), and stream_order_actions_len().
|
protected |
Definition at line 1486 of file engine.hpp.
|
protected |
Definition at line 1489 of file engine.hpp.
|
protected |
Definition at line 1502 of file engine.hpp.
Referenced by native_security_feed_enabled().
|
protected |
Definition at line 1503 of file engine.hpp.
Referenced by native_security_substitutions().
|
protected |
Definition at line 1504 of file engine.hpp.
Referenced by native_security_misses().
|
protected |
Definition at line 1512 of file engine.hpp.
Referenced by chart_day_partition_installed().
|
protected |
Definition at line 1525 of file engine.hpp.
Referenced by set_trace_enabled(), and trace_enabled().
|
protected |
Definition at line 1529 of file engine.hpp.
Referenced by last_run_status().
|
protected |
Definition at line 1559 of file engine.hpp.
Referenced by check_abort(), and request_abort().
|
protected |
Definition at line 1565 of file engine.hpp.
|
protected |
Definition at line 1566 of file engine.hpp.
|
protected |
Definition at line 1567 of file engine.hpp.
|
protected |
Definition at line 1571 of file engine.hpp.
|
protected |
Definition at line 1572 of file engine.hpp.
Referenced by script_bars_processed().
|
protected |
Definition at line 1573 of file engine.hpp.
|
protected |
Definition at line 1574 of file engine.hpp.
|
protected |
Definition at line 1575 of file engine.hpp.
|
protected |
Definition at line 1576 of file engine.hpp.
|
protected |
Definition at line 1582 of file engine.hpp.
Referenced by last_error().
|
protected |
Definition at line 2045 of file engine.hpp.
|
protected |
Definition at line 2649 of file engine.hpp.
Referenced by output_constants_count(), and output_series_count().
|
staticconstexprprotected |
Definition at line 2869 of file engine.hpp.
Referenced by pending_equity_report_mode(), report_replay_state(), and with_report_replay_flag().
|
protected |
Definition at line 2936 of file engine.hpp.
Referenced by avg_losing_trade_percent(), avg_trade_percent(), and avg_winning_trade_percent().