What a market-price rule is given (see NextBarFillModel::with_market_price).
More...
#include <algotradelib/src/backtest/fill.hpp>
|
| 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.
|
What a market-price rule is given (see NextBarFillModel::with_market_price).
Definition at line 58 of file fill.hpp.
◆ 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_
The bar the order fills against.
Definition at line 75 of file fill.hpp.
◆ 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: