PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_value_admit_doors.hpp
Go to the documentation of this file.
1#pragma once
2
3// Internal source-door admission. Each signature mirrors the raw host command;
4// ignored quantity/percent/default operands still travel unchanged to the adapter.
5// The L0 throw helper and its closed field vocabulary live in the other header.
6#include <cstdint>
7#include <string>
8
9namespace pineforge::source {
10
11void admit_strategy_entry(const std::string& id, bool is_long,
12 double limit_price, double stop_price, double qty,
13 const std::string& comment, const std::string& oca_name,
14 int oca_type, int qty_type);
15void admit_strategy_close(const std::string& id, const std::string& comment,
16 double qty, double qty_percent, bool immediately);
17void admit_strategy_close_token(const std::string& id, const std::string& comment,
18 double qty, double qty_percent, bool immediately,
19 std::uint64_t callsite_token);
20void admit_strategy_close_all() noexcept;
21void admit_strategy_exit(const std::string& id, const std::string& from_entry,
22 double limit_price, double stop_price,
23 double trail_points, double trail_offset, double trail_price,
24 double qty_percent, const std::string& comment, double qty,
25 const std::string& oca_name, double profit_ticks, double loss_ticks);
26void admit_strategy_exit_cancel_bracket(const std::string& exit_id,
27 const std::string& from_entry,
28 const std::string& comment);
29void admit_strategy_cancel(const std::string& id);
30void admit_strategy_cancel_all() noexcept;
31void admit_strategy_order(const std::string& id, bool is_long, double qty,
32 double limit_price, double stop_price,
33 const std::string& oca_name, int oca_type);
34
35} // namespace pineforge::source
void admit_strategy_exit(const std::string &id, const std::string &from_entry, double limit_price, double, double, double trail_offset, double trail_price, double, const std::string &comment, double, const std::string &oca_name, double profit_ticks, double loss_ticks)
void admit_strategy_close_token(const std::string &id, const std::string &comment, double qty, double qty_percent, bool immediately, std::uint64_t)
void admit_strategy_cancel(const std::string &id)
void admit_strategy_close_all() noexcept
void admit_strategy_entry(const std::string &id, bool, double limit_price, double stop_price, double, const std::string &comment, const std::string &oca_name, int, int)
void admit_strategy_exit_cancel_bracket(const std::string &exit_id, const std::string &from_entry, const std::string &comment)
void admit_strategy_close(const std::string &id, const std::string &comment, double, double, bool)
void admit_strategy_cancel_all() noexcept
void admit_strategy_order(const std::string &id, bool, double, double limit_price, double stop_price, const std::string &oca_name, int)