![]() |
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 | |
| std::vector< InstrumentId > | universe_ |
| The instruments to hold; an empty universe does nothing. | |
| std::uint8_t | weight_scale_ {4} |
| Decimal places of each weight; 4 is a hundredth of a percent. | |
| MarketPhase | rebalance_at_ {MarketPhase::OPEN} |
| The phase whose start triggers a rebalance. | |
| std::string | tag_ {"equal-weight"} |
| The tag on the orders. | |
The strategy's settings.
Definition at line 126 of file sizing.hpp.
| MarketPhase algotradelib::strategy::vanilla::EqualWeightRebalance::Params::rebalance_at_ {MarketPhase::OPEN} |
The phase whose start triggers a rebalance.
Definition at line 132 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::EqualWeightRebalance::on_phase().
| std::string algotradelib::strategy::vanilla::EqualWeightRebalance::Params::tag_ {"equal-weight"} |
The tag on the orders.
Definition at line 134 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::EqualWeightRebalance::on_phase().
| std::vector<InstrumentId> algotradelib::strategy::vanilla::EqualWeightRebalance::Params::universe_ |
The instruments to hold; an empty universe does nothing.
Definition at line 128 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::EqualWeightRebalance::on_phase().
| std::uint8_t algotradelib::strategy::vanilla::EqualWeightRebalance::Params::weight_scale_ {4} |
Decimal places of each weight; 4 is a hundredth of a percent.
Definition at line 130 of file sizing.hpp.
Referenced by algotradelib::strategy::vanilla::EqualWeightRebalance::on_phase().