PDA

View Full Version : GTC question


jjthetrader
05-25-2009, 04:15 AM
Hello, I've got this simple bit of code just as an example:

if (Low[0] <= Low[1])
{
EnterShortLimit(DefaultQuantity, ((High[0]+(High[0]-Low[0])*0.618)), "");
}

But it will only fill if that limit is hit on the following bar. If that limit level is hit 2 bars later then there will be no order at all. Could someone help me keep this order good till cancelled even though in my parameters I have GTC set?

Thanks

NinjaTrader_Bertrand
05-25-2009, 05:00 AM
jjthetrader, this is expected - you can set liveUntilCancelled to true and use the 'advanced' overload mentioned in this link - http://www.ninjatrader-support.com/HelpGuideV6/EnterShortLimit.html