?> QuantXpress – Deliver high performance automated trading and connectivity solutions



Strategy Input Parameter (Variable)


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;
The input variables are used with strategy code to logically manage its defination purpose.
All input variables are automatically visible to BlitzTrader terminal for the strategy instance and provides a mechanism for trader to interact and control strategy instance behaviours by logically manipulating the value of input variables.