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
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