When defining an input parameter for your strategy it's important that you do the following:
- The property you create should be in the "Parameters" region;
- the property should be assigned to the "Parameters" category;
- and, the internal variable that stores the value should be defined in the "Variables" region.
Here's a correct example:
#region Variables private double mFixedFraction = 2.0; #endregion #region Properties [Description("The percentage of equity to risk on a given trade. For example, a value of 2.0 would mean that you're willing to lose 2% of the account's equity on a trade.")] [Category("Parameters")] public double FixedFraction { get { return mFixedFraction; } set { mFixedFraction = Math.Max(0, value); } } #endregion
Cheers,
Erik P
Comment