PineForge unreleased
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, bool high_first, double stop_level, bool is_long, double *out_pos)
 

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()

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