there is +2*ticksize for both longs and short stoplimit order.
Which one short or long should be -2*ticksize.
which one is correct.
this example is from your help
thanks
protected override void OnBarUpdate()
{
if (CurrentBar < 20)
return;
// Only enter if at least 10 bars has passed since our last entry
if (BarsSinceEntry() > 10 && CrossAbove(SMA(10), SMA(20), 1))
EnterLongStopLimit(High[0] + 2 * TickSize, High[0], "SMA Cross Entry");
}

Comment