![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The strategy's settings. More...
#include <algotradelib/src/strategy/vanilla/reversion.hpp>
Public Attributes | |
| InstrumentId | instrument_ |
| The instrument to trade; bars for any other instrument are ignored. | |
| std::size_t | lookback_ {20} |
| The number of prior closes the channel spans; zero disables the strategy. | |
| Decimal64 | quantity_ |
| The shares to hold while in a position. | |
| std::string | tag_ {"donchian-breakout"} |
| The tag on the targets. | |
The strategy's settings.
Definition at line 208 of file reversion.hpp.
| InstrumentId algotradelib::strategy::vanilla::DonchianBreakout::Params::instrument_ |
The instrument to trade; bars for any other instrument are ignored.
Definition at line 210 of file reversion.hpp.
Referenced by algotradelib::strategy::vanilla::DonchianBreakout::on_bar().
| std::size_t algotradelib::strategy::vanilla::DonchianBreakout::Params::lookback_ {20} |
The number of prior closes the channel spans; zero disables the strategy.
Definition at line 212 of file reversion.hpp.
Referenced by algotradelib::strategy::vanilla::DonchianBreakout::on_bar(), and algotradelib::strategy::vanilla::DonchianBreakout::warmup_bars().
| Decimal64 algotradelib::strategy::vanilla::DonchianBreakout::Params::quantity_ |
The shares to hold while in a position.
Definition at line 214 of file reversion.hpp.
Referenced by algotradelib::strategy::vanilla::DonchianBreakout::on_bar().
| std::string algotradelib::strategy::vanilla::DonchianBreakout::Params::tag_ {"donchian-breakout"} |
The tag on the targets.
Definition at line 216 of file reversion.hpp.
Referenced by algotradelib::strategy::vanilla::DonchianBreakout::on_bar().