PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::internal Namespace Reference

Functions

int64_t session_trading_day_index (int64_t ms, const std::string &tz, const std::string &session)
 Broker trading-day ordinal on the unmerged symbol session clock.
 
bool entry_stop_first_touch (const Bar &bar, double stop_level, bool is_long, double *out_pos)
 
bool entry_stop_first_touch (const Bar &bar, bool high_first, double stop_level, bool is_long, double *out_pos)
 
double snap_trail_level_to_tick_grid (double price, double mintick)
 
double trail_offset_to_ticks (double trail_offset)
 
double trail_points_to_ticks (double trail_points)
 

Function Documentation

◆ session_trading_day_index()

int64_t pineforge::internal::session_trading_day_index ( int64_t ms,
const std::string & tz,
const std::string & session )

Broker trading-day ordinal on the unmerged symbol session clock.

A native daily bar may combine holiday sessions, but each session still renews the intraday order budget. This function never reads the native D partition.

Referenced by pineforge::compat::pine::IntradayCap::risk_day().

◆ entry_stop_first_touch() [1/2]

bool pineforge::internal::entry_stop_first_touch ( const Bar & bar,
double stop_level,
bool is_long,
double * out_pos )

Definition at line 41 of file pine_path_resolve.cpp.

References entry_stop_first_touch().

Referenced by entry_stop_first_touch().

◆ entry_stop_first_touch() [2/2]

bool pineforge::internal::entry_stop_first_touch ( const Bar & bar,
bool high_first,
double stop_level,
bool is_long,
double * out_pos )

◆ snap_trail_level_to_tick_grid()

double pineforge::compat::pine::snap_trail_level_to_tick_grid ( double price,
double mintick )
inline

Definition at line 59 of file trail_ticks.hpp.

◆ trail_offset_to_ticks()

double pineforge::compat::pine::trail_offset_to_ticks ( double trail_offset)
inline

Definition at line 43 of file trail_ticks.hpp.

◆ trail_points_to_ticks()

double pineforge::compat::pine::trail_points_to_ticks ( double trail_points)
inline

Definition at line 39 of file trail_ticks.hpp.