Why exitlongstop order didin't work and didin't close transaction?
This is a code and screenshot of example where there was no stop loss order.
protected override void Initialize()
{
SetProfitTarget("", CalculationMode.Ticks, 72);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (High[0] < High[1]
&& Low[0] > Low[1])
{
EnterLongStop(DefaultQuantity, High[0] + 1 * TickSize, "dluga");
ExitLongStop(High[0] + -36 * TickSize, "dluga_stop", "dluga");
}
}
Thanks for help

Comment