I try to solve a strange problem for days now but I can´t find the reason for this:
when the entry is filled then I bring in the stops in onExecution. This works sometimes and sometimes there is only the entry but no stop!?
if (entryOrder1 != null && entryOrder1 == execution.Order && execution.Order.OrderState == OrderState.Filled)
{stopOrder1a = ExitShortStop(0, true, 1000, execution.Order.AvgFillPrice +80 * TickSize, "StopD1a", "D5");
I need not to debug with coloring or variables, because we see that the entry is filled. The trade itself shows that it works (correctly referring conditons). So, the stop should be accepted also.
What might be the reason that sometimes the stop is not "there" (not accepted/not recjected/not working" - nothing appears in orderstab!)
Thank you.
Tony
Comment