PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_toolkit::native_toolkit_v1 Namespace Reference

Data Structures

struct  BracketLegOutcome
 
struct  BracketReceipt
 
struct  BracketSpec
 
class  OrderBook
 
struct  OrderBookCancel
 
struct  OrderBookOutcome
 

Enumerations

enum class  BracketLeg : std::int64_t {
  TakeProfit = 1 ,
  StopLoss = 2 ,
  Trail = 3
}
 
enum class  BracketLegState : std::uint8_t {
  NotRequested = 0 ,
  NotSubmitted = 1 ,
  Accepted = 2 ,
  Rejected = 3
}
 
enum class  OrderBookAction : std::uint8_t {
  Replaced = 0 ,
  ReplaceRejected = 1 ,
  SubmitAccepted = 2 ,
  SubmitRejected = 3
}
 

Functions

native_order::Request bracket_leg (const native_order::Request &leg, const native_order::RequestHandle &parent, BracketLeg which, native_order::GroupEffect sibling_effect, native_order::NativeArmVisibility visibility=native_order::NativeArmVisibility::Working, std::optional< native_order::NativeAnchorRounding > anchor_rounding=std::nullopt)
 
BracketReceipt submit_bracket (NativeStrategyHost &host, const BracketSpec &spec)
 

Enumeration Type Documentation

◆ BracketLeg

Enumerator
TakeProfit 
StopLoss 
Trail 

Definition at line 48 of file native_toolkit.hpp.

◆ BracketLegState

Enumerator
NotRequested 
NotSubmitted 
Accepted 
Rejected 

Definition at line 64 of file native_toolkit.hpp.

◆ OrderBookAction

Enumerator
Replaced 
ReplaceRejected 
SubmitAccepted 
SubmitRejected 

Definition at line 208 of file native_toolkit.hpp.

Function Documentation

◆ bracket_leg()

native_order::Request pineforge::native_toolkit::native_toolkit_v1::bracket_leg ( const native_order::Request & leg,
const native_order::RequestHandle & parent,
BracketLeg which,
native_order::GroupEffect sibling_effect,
native_order::NativeArmVisibility visibility = native_order::NativeArmVisibility::Working,
std::optional< native_order::NativeAnchorRounding > anchor_rounding = std::nullopt )
inline

Definition at line 138 of file native_toolkit.hpp.

◆ submit_bracket()

BracketReceipt pineforge::native_toolkit::native_toolkit_v1::submit_bracket ( NativeStrategyHost & host,
const BracketSpec & spec )
inline

Definition at line 160 of file native_toolkit.hpp.