|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
One generic risk limit breaching (L9). More...
#include <native_order.hpp>
Data Fields | |
| uint64_t | ordinal = 0 |
| RiskLimitKind | kind = RiskLimitKind::MaxDrawdown |
| double | limit = 0.0 |
| double | observed = 0.0 |
| std::int64_t | day_ordinal = 0 |
| MatchCursor | cursor {} |
One generic risk limit breaching (L9).
It is not bound to a request: the block it opens is an account fact, so this event carries no definition. limit is the threshold in the unit the breach was measured in — account currency for the two loss limits (a percent limit is already resolved against its basis equity here), days or fills for the two counts — and observed is the measured value that reached it. day_ordinal is the risk day the breach happened on, on the spec's own day basis, and cursor is the point it was measured at.
Definition at line 1156 of file native_order.hpp.
| uint64_t pineforge::native_order::native_order_v6::NativeRiskEvent::ordinal = 0 |
Definition at line 1157 of file native_order.hpp.
| RiskLimitKind pineforge::native_order::native_order_v6::NativeRiskEvent::kind = RiskLimitKind::MaxDrawdown |
Definition at line 1158 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::NativeRiskEvent::limit = 0.0 |
Definition at line 1159 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::NativeRiskEvent::observed = 0.0 |
Definition at line 1160 of file native_order.hpp.
| std::int64_t pineforge::native_order::native_order_v6::NativeRiskEvent::day_ordinal = 0 |
Definition at line 1161 of file native_order.hpp.
| MatchCursor pineforge::native_order::native_order_v6::NativeRiskEvent::cursor {} |
Definition at line 1162 of file native_order.hpp.