I'm having some trouble with consecutive order execution.
Consider the following:
I run a stop-limit order in the OnBarUpdate method:
EnterLongStop(999, "test1");
The price didn't reach 999, and at the next bar (the following call to OnBarUpdate),
i execute a simple market-buy order:
EnterLong("test2");
The second order doesn't get filled and I don't really understand why.

Comment