|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
The host's answer to one requirement view — NativeMarginDecision.
More...
#include <native_c_api.h>
Data Fields | |
| uint32_t | struct_size |
| sizeof(pf_native_margin_decision_v1). | |
| uint32_t | version |
| PF_NATIVE_API_VERSION. | |
| uint32_t | force_breach |
| 0/1. | |
| uint32_t | reserved0 |
| double | required |
| double | equity |
The host's answer to one requirement view — NativeMarginDecision.
required and equity replace the kernel's two numbers for that check point only: they are a broker's money rule, never a second account. force_breach makes the kernel proceed past required > equity even when the answered numbers do not meet it. Read only when the hook answers PF_NATIVE_ANSWER_PROVIDED; a nonfinite required or equity is refused by the kernel and the check point is abandoned, exactly as in C++.
Definition at line 903 of file native_c_api.h.
| uint32_t pf_native_margin_decision_v1::struct_size |
sizeof(pf_native_margin_decision_v1).
Definition at line 904 of file native_c_api.h.
| uint32_t pf_native_margin_decision_v1::version |
PF_NATIVE_API_VERSION.
Definition at line 905 of file native_c_api.h.
| uint32_t pf_native_margin_decision_v1::force_breach |
0/1.
Definition at line 906 of file native_c_api.h.
| uint32_t pf_native_margin_decision_v1::reserved0 |
Definition at line 907 of file native_c_api.h.
| double pf_native_margin_decision_v1::required |
Definition at line 908 of file native_c_api.h.
| double pf_native_margin_decision_v1::equity |
Definition at line 909 of file native_c_api.h.