PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v19::NativeCurrentPointView Struct Reference

What current_execution_point() answers inside a callback: the point's decision context, its price, which quote that price is, and the ordinal the quote came from. More...

#include <native_host.hpp>

Data Fields

NativeDecisionContext decision
 
double price = 0.0
 
NativeCurrentQuoteKind quote_kind = NativeCurrentQuoteKind::MarketDecision
 
std::uint64_t quote_origin_ordinal = 0
 

Detailed Description

What current_execution_point() answers inside a callback: the point's decision context, its price, which quote that price is, and the ordinal the quote came from.

nullopt outside a decision point. C spelling: pf_native_decision_v1's price and quote_kind, on every callback (no quote origin ordinal).

Definition at line 658 of file native_host.hpp.

Field Documentation

◆ decision

NativeDecisionContext pineforge::engine_script_run_v19::NativeCurrentPointView::decision

Definition at line 659 of file native_host.hpp.

◆ price

double pineforge::engine_script_run_v19::NativeCurrentPointView::price = 0.0

Definition at line 660 of file native_host.hpp.

◆ quote_kind

NativeCurrentQuoteKind pineforge::engine_script_run_v19::NativeCurrentPointView::quote_kind = NativeCurrentQuoteKind::MarketDecision

Definition at line 661 of file native_host.hpp.

◆ quote_origin_ordinal

std::uint64_t pineforge::engine_script_run_v19::NativeCurrentPointView::quote_origin_ordinal = 0

Definition at line 662 of file native_host.hpp.


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