algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::backtest::MarketPriceInput Struct Reference

What a market-price rule is given (see NextBarFillModel::with_market_price). More...

#include <algotradelib/src/backtest/fill.hpp>

Collaboration diagram for algotradelib::backtest::MarketPriceInput:

Public Attributes

const strategy::PlannedOrder & order_
 The order to price: a market order, or any other type the model does not price against a limit.
const std::optional< Decimal64 > & decision_price_
 The instrument's last price when the strategy decided the order (the close of the bar it decided on, or the quote it decided on; for an order placed in on_fill, the close before the fill bar), or empty when it had none yet.
const std::optional< std::chrono::system_clock::time_point > & decision_price_at_
 When decision_price_ was observed (the bar's period end, or the quote's time); older than decided_at_'s bar when the instrument had no newer price, as after a halt.
const std::optional< std::chrono::system_clock::time_point > & decided_at_
 When the strategy decided the order, if known.
const strategy::BarEvent & next_
 The bar the order fills against.
const PriceRule & rule_
 The instrument's price grid.

Detailed Description

What a market-price rule is given (see NextBarFillModel::with_market_price).

Definition at line 58 of file fill.hpp.

Member Data Documentation

◆ decided_at_

const std::optional<std::chrono::system_clock::time_point>& algotradelib::backtest::MarketPriceInput::decided_at_

When the strategy decided the order, if known.

Definition at line 73 of file fill.hpp.

◆ decision_price_

const std::optional<Decimal64>& algotradelib::backtest::MarketPriceInput::decision_price_

The instrument's last price when the strategy decided the order (the close of the bar it decided on, or the quote it decided on; for an order placed in on_fill, the close before the fill bar), or empty when it had none yet.

Definition at line 66 of file fill.hpp.

◆ decision_price_at_

const std::optional<std::chrono::system_clock::time_point>& algotradelib::backtest::MarketPriceInput::decision_price_at_

When decision_price_ was observed (the bar's period end, or the quote's time); older than decided_at_'s bar when the instrument had no newer price, as after a halt.

Definition at line 71 of file fill.hpp.

◆ next_

const strategy::BarEvent& algotradelib::backtest::MarketPriceInput::next_

The bar the order fills against.

Definition at line 75 of file fill.hpp.

◆ order_

const strategy::PlannedOrder& algotradelib::backtest::MarketPriceInput::order_

The order to price: a market order, or any other type the model does not price against a limit.

Definition at line 60 of file fill.hpp.

◆ rule_

const PriceRule& algotradelib::backtest::MarketPriceInput::rule_

The instrument's price grid.

Definition at line 77 of file fill.hpp.


The documentation for this struct was generated from the following file: