PDA

View Full Version : Stop Losses not working?


zoltran
11-07-2007, 10:21 PM
Not sure if stop losses are working as they did before.

Just testing a simple strategy, using the wizard.

Nothing special


protected override void Initialize()
{
SetStopLoss("", CalculationMode.Ticks, 5, false);

CalculateOnBarClose = true;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (Close[0] < Close[1])
{
EnterShort(DefaultQuantity, "");
}
}



Yet, the only exit taken is my calculated one within the strategy or the EOD exit

I am using this on range[5] charts on YM

NinjaTrader_Josh
11-08-2007, 01:02 AM
Thanks for reporting. Looking into it.

NinjaTrader_Dierk
11-08-2007, 04:00 AM
Your findings are correct. SetStopLoss and SetTrailStop no longer work on short positions. This will be fixed with next update.

Thanks for reporting this.