I have a strategy run on a 10 Tick's bar.
When the script send an limit order, it is unfortunetly cancel at the end of the 10 Ticks bar, even if i said to the script to cancel it only after 4 bars
Here my script :
{
entryOrderBuy = EnterLongLimit(DefaultQuantity, Close[0], "Buy");
barNumberOfOrder = CurrentBar;
}
else if (entryOrderBuy != null && CurrentBar > barNumberOfOrder + 4)
{
CancelOrder(entryOrderBuy);
}
This kind of script is working well on daily or minute bar but not on Tick bar. Is there a difference on the order management between the daily/minute bar and the tick bar ?
Can you help ?
Thanks a lot
Comment