Please help,
Thanks
Nigel.
here is the relevant part of the code:-
#region Variables
// Wizard generated variables
private double lots = 1.0; // Default setting for Lots
if (ToTime(Time[0]) > 80005 && ToTime(Time[0]) <= 160000 && tradeno == 0)
{
EnterShort(Lots, "LondonShort");
tradeno = tradeno + 1;
}
#region Properties
[Description("Lots")]
[Category("Parameters")]
public double Lots
{
get { return lots; }
set { lots = Math.Max(1.0, value); }
//set { lots = Math.Round(1, value); }
}
Mnay thanks,
Nigel

Comment