CalculateOnBarClose = false;
if (entry requirements here)
{
EnterLongLimit(DefaultQuantity, Close[0] + 1, "Long Entry One");
if (profit loss requirements here)
{
SetStopLoss(CalculationMode.Ticks, 12);
}
}
My reasoning is that with CalculateOnBarClose = false, my Close[0] price is moving along with the current price since the strategy updates tick-by-tick, and each time it updates and satisfies the if statements, then another long limit is entered at a different Close[0] price. However, I thought my Close[0] price should have been the close of the last bar, which is unchanging. Please let me know if this could be the case and how I can fix it.
Thanks,
Lee
Comment