![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The strategy's settings. More...
#include <algotradelib/src/strategy/vanilla/buy_and_hold.hpp>
Public Attributes | |
| InstrumentId | instrument_ |
| The instrument to hold; bars for any other instrument are ignored. | |
| Decimal64 | quantity_ |
| The shares to hold. | |
| std::string | tag_ {"buy-and-hold"} |
| The tag on the targets. | |
The strategy's settings.
Definition at line 23 of file buy_and_hold.hpp.
| InstrumentId algotradelib::strategy::vanilla::BuyAndHold::Params::instrument_ |
The instrument to hold; bars for any other instrument are ignored.
Definition at line 25 of file buy_and_hold.hpp.
Referenced by algotradelib::strategy::vanilla::BuyAndHold::on_bar().
| Decimal64 algotradelib::strategy::vanilla::BuyAndHold::Params::quantity_ |
The shares to hold.
Definition at line 27 of file buy_and_hold.hpp.
Referenced by algotradelib::strategy::vanilla::BuyAndHold::on_bar().
| std::string algotradelib::strategy::vanilla::BuyAndHold::Params::tag_ {"buy-and-hold"} |
The tag on the targets.
Definition at line 29 of file buy_and_hold.hpp.
Referenced by algotradelib::strategy::vanilla::BuyAndHold::on_bar().