PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
native_calc_point.hpp File Reference
#include <cstdint>
Include dependency graph for native_calc_point.hpp:

Go to the source code of this file.

Data Structures

struct  pineforge::native_calc::Event
 One driving event: its kind and its time. More...
 
struct  pineforge::native_calc::Point
 One planned calculation. More...
 

Namespaces

namespace  pineforge
 
namespace  pineforge::native_calc
 

Enumerations

enum class  pineforge::native_calc::EventKind : std::uint32_t {
  pineforge::native_calc::WarmupBar = 1 ,
  pineforge::native_calc::Bar = 2 ,
  pineforge::native_calc::Tick = 3 ,
  pineforge::native_calc::AdvanceTime = 4
}
 The driving events of a schedule. More...
 
enum class  pineforge::native_calc::Phase : std::uint32_t {
  pineforge::native_calc::Pre = 0 ,
  pineforge::native_calc::Post = 1
}
 Whether a calculation ran before the payload of its driving event was applied (a bar closed only because time reached its end) or after it. More...
 
enum class  pineforge::native_calc::Finality : std::uint32_t {
  pineforge::native_calc::Provisional = 0 ,
  pineforge::native_calc::Confirmed = 1
}
 Provisional for an intrabar calculation, Confirmed for the calculation that closes a bar. More...
 
enum class  pineforge::native_calc::Status : std::uint32_t {
  pineforge::native_calc::Ok = 0 ,
  pineforge::native_calc::NotEngaged ,
  pineforge::native_calc::BadArguments ,
  pineforge::native_calc::BadCadence ,
  pineforge::native_calc::UnknownEventKind ,
  pineforge::native_calc::BarKeyExhausted ,
  pineforge::native_calc::TraceExhausted ,
  pineforge::native_calc::NoBarSlot ,
  pineforge::native_calc::BarEndNotAfterEvent ,
  pineforge::native_calc::PositionOutsideWindow
}
 How a derivation ended. More...
 

Functions

constexpr bool pineforge::native_calc::is_known (EventKind kind) noexcept
 Whether kind is in the registry: the one range check a raw number passes before the derivation treats it as an EventKind.
 

Variables

constexpr std::uint32_t pineforge::native_calc::kCadenceAdvanceTime = 1u << 0
 Which driving events make an instance calculate, as a bit set.
 
constexpr std::uint32_t pineforge::native_calc::kCadenceBarClose = 1u << 1
 
constexpr std::uint32_t pineforge::native_calc::kCadenceTick = 1u << 2
 
constexpr std::uint32_t pineforge::native_calc::kCadenceMask