Strategy implementation class need to expose user input variables which is necessary to control the behaviour of running strategy from BlitzTrader terminal. StrategyParameter attribute is applied over any strategy variable definition to mark that variable is of type input parameter. StrategyParameter attribute allow to specify characteristic such as: Name of the variable: Unique name identifier of variable Default value: Default value set during the initialization Description: Detail description of the variable CategoryName: User defined category name DisplayName: Diaplay name of the variable
[StrategyParameter("MaxBuyPositionInLots",
DefaultValue = 0,
Description = "Maximum Buy Position.",
CategoryName = "Buy IV", DisplayName = "Max Position (Lots)")]
private int MaxBuyPositionInLot = 0;
[StrategyParameter("BuyBiddingAtTargetIV",
DefaultValue = 0,
Description = " Bidding on target IV instead on best bid(If available).",
CategoryName = "Buy IV",
DisplayName = " Bidding @ Target IV ")]
bool BuyBiddingAtTargetIV = false;
Strategy implementation class need to expose user input variables which is necessary to control the behaviour of running strategy from BlitzTrader terminal.
StrategyParameter attribute is applied over any strategy variable definition to mark that variable is of type input parameter. StrategyParameter attribute allow to specify characteristic such as:
Name of the variable: Unique name identifier of variable
Default value: Default value set during the initialization
Description: Detail description of the variable
CategoryName: User defined category name
DisplayName: Diaplay name of the variable
[StrategyParameter("MaxBuyPositionInLots",
DefaultValue = 0,
Description = "Maximum Buy Position.",
CategoryName = "Buy IV", DisplayName = "Max Position (Lots)")]
private int MaxBuyPositionInLot = 0;
[StrategyParameter("BuyBiddingAtTargetIV",
DefaultValue = 0,
Description = " Bidding on target IV instead on best bid(If available).",
CategoryName = "Buy IV",
DisplayName = " Bidding @ Target IV ")]
bool BuyBiddingAtTargetIV = false;