![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The strategy's settings. More...
#include <algotradelib/src/strategy/vanilla/sizing.hpp>
Public Attributes | |
| InstrumentId | instrument_ |
| The instrument to hold; bars for any other instrument are ignored. | |
| std::size_t | window_ {20} |
| The number of returns the volatility is measured over; below 2, nothing is traded. | |
| Decimal64 | risk_budget_ |
| The value volatility per bar the position should have, in the instrument's currency. | |
| Decimal64 | max_quantity_ |
| The largest position to hold, whatever the arithmetic gives. | |
| std::string | tag_ {"volatility-target"} |
| The tag on the targets. | |
The strategy's settings.
Definition at line 30 of file sizing.hpp.
| InstrumentId algotradelib::strategy::vanilla::VolatilityTargetSizing::Params::instrument_ |
The instrument to hold; bars for any other instrument are ignored.
Definition at line 32 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::VolatilityTargetSizing::on_bar().
| Decimal64 algotradelib::strategy::vanilla::VolatilityTargetSizing::Params::max_quantity_ |
The largest position to hold, whatever the arithmetic gives.
Definition at line 38 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::VolatilityTargetSizing::on_bar().
| Decimal64 algotradelib::strategy::vanilla::VolatilityTargetSizing::Params::risk_budget_ |
The value volatility per bar the position should have, in the instrument's currency.
Definition at line 36 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::VolatilityTargetSizing::on_bar().
| std::string algotradelib::strategy::vanilla::VolatilityTargetSizing::Params::tag_ {"volatility-target"} |
The tag on the targets.
Definition at line 40 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::VolatilityTargetSizing::on_bar().
| std::size_t algotradelib::strategy::vanilla::VolatilityTargetSizing::Params::window_ {20} |
The number of returns the volatility is measured over; below 2, nothing is traded.
Definition at line 34 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::VolatilityTargetSizing::on_bar(), and algotradelib::strategy::vanilla::VolatilityTargetSizing::warmup_bars().