|
PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
|
One committed execution: the definition, the cursor, the resolved price and units, the scope it acted on, the committed closed-row range, the cycle on either side, and the ticket it booked under. More...
#include <native_order.hpp>
Public Member Functions | |
| const RequestHandle & | handle () const noexcept |
| const Request & | request () const noexcept |
| const Birth & | birth () const noexcept |
| int64_t | effective_time_ms () const noexcept |
| int64_t | interval_open_ms () const noexcept |
| int64_t | interval_last_traded_close_ms () const noexcept |
| int | interval_index () const noexcept |
| std::uint8_t | provenance () const noexcept |
Data Fields | |
| uint64_t | ordinal = 0 |
| DefinitionRef | definition |
| double | raw_price = 0.0 |
| double | resolved_price = 0.0 |
| double | current_ticket = 0.0 |
| std::size_t | first_trade_index = 0 |
| std::size_t | closed_trade_count = 0 |
| uint64_t | opened_lot_incarnation = 0 |
| double | closed_units = 0.0 |
| double | opened_units = 0.0 |
| double | filled_working = 0.0 |
| RemainingProjection | remaining_before = RemainingProjectionUnbound{} |
| RemainingProjection | remaining_after = RemainingProjectionUnbound{} |
| Allowance | allowance_before = AllowanceUnset{} |
| Allowance | allowance_after = AllowanceUnset{} |
| bool | terminal = true |
| std::optional< AppliedTerminalReason > | terminal_reason |
| int64_t | cycle_before = 0 |
| int64_t | cycle_after = 0 |
| ExecutionScope | scope = execution::Book{} |
| MatchCursor | cursor {} |
One committed execution: the definition, the cursor, the resolved price and units, the scope it acted on, the committed closed-row range, the cycle on either side, and the ticket it booked under.
Delivered to on_native_applied and recorded in native_events(); the account observation that follows it shares its ordinal.
Definition at line 1146 of file native_order.hpp.
|
inlinenoexcept |
Definition at line 1168 of file native_order.hpp.
References definition.
Referenced by pineforge::source::PineExecutionAdapter::begin_coof_recalc(), pineforge::source::PineExecutionAdapter::on_applied(), and pineforge::source::PineStrategyHost::on_native_applied().
|
inlinenoexcept |
Definition at line 1169 of file native_order.hpp.
References definition.
Referenced by pineforge::source::PineExecutionAdapter::begin_coof_recalc(), and pineforge::source::PineExecutionAdapter::on_applied().
|
inlinenoexcept |
Definition at line 1170 of file native_order.hpp.
References definition.
|
inlinenoexcept |
Definition at line 1171 of file native_order.hpp.
References cursor.
|
inlinenoexcept |
Definition at line 1172 of file native_order.hpp.
References cursor.
|
inlinenoexcept |
Definition at line 1173 of file native_order.hpp.
References cursor.
|
inlinenoexcept |
Definition at line 1176 of file native_order.hpp.
References cursor.
|
inlinenoexcept |
Definition at line 1177 of file native_order.hpp.
References cursor.
| uint64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::ordinal = 0 |
| DefinitionRef pineforge::native_order::native_order_v7::ExecutionAppliedEvent::definition |
Definition at line 1148 of file native_order.hpp.
Referenced by birth(), handle(), pineforge::source::PineExecutionAdapter::on_applied(), and request().
| double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::raw_price = 0.0 |
Definition at line 1149 of file native_order.hpp.
Referenced by pineforge::source::PineExecutionAdapter::on_applied().
| double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::resolved_price = 0.0 |
Definition at line 1150 of file native_order.hpp.
Referenced by pineforge::source::PineExecutionAdapter::on_applied().
| double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::current_ticket = 0.0 |
Definition at line 1151 of file native_order.hpp.
| std::size_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::first_trade_index = 0 |
Definition at line 1152 of file native_order.hpp.
Referenced by pineforge::source::PineStrategyHost::on_native_applied().
| std::size_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::closed_trade_count = 0 |
Definition at line 1153 of file native_order.hpp.
Referenced by pineforge::source::PineExecutionAdapter::on_applied(), and pineforge::source::PineStrategyHost::on_native_applied().
| uint64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::opened_lot_incarnation = 0 |
Definition at line 1154 of file native_order.hpp.
| double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::closed_units = 0.0 |
Definition at line 1155 of file native_order.hpp.
Referenced by pineforge::source::PineExecutionAdapter::on_applied().
| double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::opened_units = 0.0 |
Definition at line 1156 of file native_order.hpp.
Referenced by pineforge::source::PineExecutionAdapter::begin_coof_recalc(), pineforge::source::PineExecutionAdapter::on_applied(), and pineforge::source::PineStrategyHost::on_native_applied().
| double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::filled_working = 0.0 |
Definition at line 1157 of file native_order.hpp.
| RemainingProjection pineforge::native_order::native_order_v7::ExecutionAppliedEvent::remaining_before = RemainingProjectionUnbound{} |
Definition at line 1158 of file native_order.hpp.
| RemainingProjection pineforge::native_order::native_order_v7::ExecutionAppliedEvent::remaining_after = RemainingProjectionUnbound{} |
Definition at line 1159 of file native_order.hpp.
| Allowance pineforge::native_order::native_order_v7::ExecutionAppliedEvent::allowance_before = AllowanceUnset{} |
Definition at line 1160 of file native_order.hpp.
| Allowance pineforge::native_order::native_order_v7::ExecutionAppliedEvent::allowance_after = AllowanceUnset{} |
Definition at line 1161 of file native_order.hpp.
| bool pineforge::native_order::native_order_v7::ExecutionAppliedEvent::terminal = true |
Definition at line 1162 of file native_order.hpp.
Referenced by pineforge::source::PineExecutionAdapter::on_applied().
| std::optional<AppliedTerminalReason> pineforge::native_order::native_order_v7::ExecutionAppliedEvent::terminal_reason |
Definition at line 1163 of file native_order.hpp.
| int64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::cycle_before = 0 |
Definition at line 1164 of file native_order.hpp.
| int64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::cycle_after = 0 |
Definition at line 1165 of file native_order.hpp.
| ExecutionScope pineforge::native_order::native_order_v7::ExecutionAppliedEvent::scope = execution::Book{} |
Definition at line 1166 of file native_order.hpp.
| MatchCursor pineforge::native_order::native_order_v7::ExecutionAppliedEvent::cursor {} |
Definition at line 1167 of file native_order.hpp.
Referenced by effective_time_ms(), interval_index(), interval_last_traded_close_ms(), interval_open_ms(), pineforge::source::PineExecutionAdapter::on_applied(), and provenance().