algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::strategy::vanilla::BuyAndHold::Params Struct Reference

The strategy's settings. More...

#include <algotradelib/src/strategy/vanilla/buy_and_hold.hpp>

Collaboration diagram for algotradelib::strategy::vanilla::BuyAndHold::Params:

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.

Detailed Description

The strategy's settings.

Definition at line 23 of file buy_and_hold.hpp.

Member Data Documentation

◆ instrument_

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().

◆ quantity_

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().

◆ tag_

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().


The documentation for this struct was generated from the following file: