PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::engine_script_run_v18::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.

Definition at line 600 of file native_host.hpp.

Field Documentation

◆ decision

NativeDecisionContext pineforge::engine_script_run_v18::NativeCurrentPointView::decision

Definition at line 601 of file native_host.hpp.

◆ price

double pineforge::engine_script_run_v18::NativeCurrentPointView::price = 0.0

Definition at line 602 of file native_host.hpp.

◆ quote_kind

NativeCurrentQuoteKind pineforge::engine_script_run_v18::NativeCurrentPointView::quote_kind = NativeCurrentQuoteKind::MarketDecision

Definition at line 603 of file native_host.hpp.

◆ quote_origin_ordinal

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

Definition at line 604 of file native_host.hpp.


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