PDA

View Full Version : EnterLong quantity 0


gg80108
11-17-2009, 04:22 PM
When my EntryQuantity2 is 0 an order for 1 contract is being placed
-----------------------------------------------
EnterLong(EntryQuantity2, "L2");



#region Properties

}
[Description("2nd Entry Quantity")]
[Category("Parameters")]
publicint EntryQuantity2
{
get { return entryQuantity2; }
set { entryQuantity2 = Math.Max(0, value); }

NinjaTrader_Bertrand
11-18-2009, 04:23 AM
What setting are you using to set your order quantity by as you run / backtest the strategy?

gg80108
11-18-2009, 07:28 AM
What setting are you using to set your order quantity by as you run / backtest the strategy?

Just using the parameter entries built into the strategy.

NinjaTrader_Bertrand
11-18-2009, 07:48 AM
I see, did a test on my end, and even if you call an Enter() method with 0 quantity an order for 1 is placed. If you don't want to place an order, please don't call the Enter() method.

gg80108
11-18-2009, 08:07 AM
So its working as designed,, txs for the verification