|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI 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) |
| 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().
| 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().
| bool pineforge::internal::entry_stop_first_touch | ( | const Bar & | bar, |
| bool | high_first, | ||
| double | stop_level, | ||
| bool | is_long, | ||
| double * | out_pos ) |
Definition at line 47 of file pine_path_resolve.cpp.
References pineforge::Bar::high, pineforge::Bar::low, and pineforge::Bar::open.
|
inline |
Definition at line 59 of file trail_ticks.hpp.
|
inline |
Definition at line 43 of file trail_ticks.hpp.
|
inline |
Definition at line 39 of file trail_ticks.hpp.