Ok thanks for posting.
Alright so your explination would be correct for how this code is done.
Once you submit order the iOrder object BullQuickI and BullRunnerI are holding an order object and is no longer null.
That order objects holds the OrderState.Filled since the order was filled and will continue to hold this until you reset this object. If you dont reset the object it will always hold that filled state and you will never get another entry since the BullRunnerI is not equal to null which is what you check for your next trade.
Therefor you will need to add code that checks the status of the entry order. If its been fulled then set the object back to null. Therefor allowing you to take more trades.
Also you'll need your own flag to allwo or not allow the short position to fire if your currently in a long position. As here you are left with a flat position since the short condition triggers at the same time as the long. Leaving you flat.
Let me know if I can be of further assistance.

Comment