Json
03-30-2007, 12:55 PM
getting:
The type 'NinjaTrader.Strategy.duhwiz' already contains a definition for 'Tsize'
The type 'NinjaTrader.Strategy.duhwiz' already contains a definition for 'BidAskRatio'
The type 'NinjaTrader.Strategy.duhwiz' already contains a definition for 'STriggerPrice'
Defaults:
#region Variables
private int Tsize = 1;
private double BidAskRatio = 4.0;
private double STriggerPrice = 0.0;
#endregion
User Imputs:
#region Properties
[Description("Qty to be traded")]
[Category("Parameters")]
public int Tsize
{
get { return Tsize; }
set { Tsize = Math.Max(1, value); }
}
[Description("Ratio Threshold")]
[Category("Parameters")]
public int BidAskRatio
{
get { return BidAskRatio; }
set { BidAskRatio = Math.Max(1, value); }
}
[Description("TriggerPrice")]
[Category("Parameters")]
public double STriggerPrice
{
get { return STriggerPrice; }
set { STriggerPrice = Math.Max(1, value); }
}
#endregion
What do I need to change?
The type 'NinjaTrader.Strategy.duhwiz' already contains a definition for 'Tsize'
The type 'NinjaTrader.Strategy.duhwiz' already contains a definition for 'BidAskRatio'
The type 'NinjaTrader.Strategy.duhwiz' already contains a definition for 'STriggerPrice'
Defaults:
#region Variables
private int Tsize = 1;
private double BidAskRatio = 4.0;
private double STriggerPrice = 0.0;
#endregion
User Imputs:
#region Properties
[Description("Qty to be traded")]
[Category("Parameters")]
public int Tsize
{
get { return Tsize; }
set { Tsize = Math.Max(1, value); }
}
[Description("Ratio Threshold")]
[Category("Parameters")]
public int BidAskRatio
{
get { return BidAskRatio; }
set { BidAskRatio = Math.Max(1, value); }
}
[Description("TriggerPrice")]
[Category("Parameters")]
public double STriggerPrice
{
get { return STriggerPrice; }
set { STriggerPrice = Math.Max(1, value); }
}
#endregion
What do I need to change?