PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
exit_lifecycle.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <limits>
6#include <optional>
7
9
12 int direction = 0;
13 double position_entry_price = std::numeric_limits<double>::quiet_NaN();
14 double tick = std::numeric_limits<double>::quiet_NaN();
15 double open = std::numeric_limits<double>::quiet_NaN();
16 double prior_best = std::numeric_limits<double>::quiet_NaN();
17 bool open_slice_this_bar = false;
18 bool standing = true;
19};
20
21std::optional<exit_legs::Operation> select_exit_suspension(
26std::optional<exit_legs::Operation> select_exit_completion(
27 const exit_legs::Lifecycle&, exit_legs::Frame completed);
28
29} // namespace pineforge::compat::pine
exit_legs::Operation select_pair_hold(const exit_legs::Lifecycle &, exit_legs::Frame)
double select_margin_revival_stop(const exit_legs::Lifecycle &)
std::optional< exit_legs::Operation > select_exit_completion(const exit_legs::Lifecycle &, exit_legs::Frame completed)
exit_legs::Definition select_replacement_revival_definition(const exit_legs::Lifecycle &)
std::optional< exit_legs::Operation > select_exit_suspension(const exit_legs::Lifecycle &, const ExitSuspensionContext &)
std::variant< BindOwner, Suspend, StageReplacement, CancelDeferredActivation, Restore, CompleteBarrier, Observe, Cancel > Operation