|
PineForge v0.1.2-11-ga87241d
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Closed-trade record returned in pf_report_t::trades. More...
#include <pineforge.h>
Data Fields | |
| int64_t | entry_time |
| Entry fill time (Unix ms). | |
| int64_t | exit_time |
| Exit fill time (Unix ms). | |
| double | entry_price |
| Entry fill price (incl. | |
| double | exit_price |
| Exit fill price (incl. | |
| double | pnl |
| Net realized PnL in account currency. | |
| double | pnl_pct |
| Net realized PnL as a percentage of entry capital. | |
| int | is_long |
| 1 if long, 0 if short. | |
| double | max_runup |
| Peak favorable price travel during the trade ($/unit qty). | |
| double | max_drawdown |
| Peak adverse price travel during the trade ($/unit qty). | |
| double | qty |
| Filled quantity. | |
Closed-trade record returned in pf_report_t::trades.
Layout-compatible with internal pineforge::TradeC.
Definition at line 107 of file pineforge.h.
| int64_t pf_trade_t::entry_time |
Entry fill time (Unix ms).
Definition at line 108 of file pineforge.h.
| int64_t pf_trade_t::exit_time |
Exit fill time (Unix ms).
Definition at line 109 of file pineforge.h.
| double pf_trade_t::entry_price |
| double pf_trade_t::exit_price |
| double pf_trade_t::pnl |
Net realized PnL in account currency.
Definition at line 112 of file pineforge.h.
| double pf_trade_t::pnl_pct |
Net realized PnL as a percentage of entry capital.
Definition at line 113 of file pineforge.h.
| int pf_trade_t::is_long |
1 if long, 0 if short.
Definition at line 114 of file pineforge.h.
| double pf_trade_t::max_runup |
Peak favorable price travel during the trade ($/unit qty).
Definition at line 115 of file pineforge.h.
| double pf_trade_t::max_drawdown |
Peak adverse price travel during the trade ($/unit qty).
Definition at line 116 of file pineforge.h.
| double pf_trade_t::qty |
Filled quantity.
Definition at line 117 of file pineforge.h.