I have a strange problem with entries and onorderupdate and onexecution. I do debugging with coloring and drawing objects and it occurs that with
ConditionSet1 (COBC== false)
if (BarsInProgress == 2
&& FirstTickOfBar
&& Closes[2][1] > Lows[2][1]
&& Position.MarketPosition == MarketPosition.Flat )
there is an entry and onExecution works fine and onOrderupdate works fine (and my coloring and drawing objects work fine - in onExecution and onOrder)
but with
ConditionSet2 (COBC==false)
if (BarsInProgress == 0
&& Position.MarketPosition == MarketPosition.Flat )
there is an entry but onExecution and onOrder do not work - there is no coloring and no drawing objects (which I do for control). Only onbarupdate is correct (entry) but onorder and onexecution are not done.
I do not understand, as condtionset 2 is more "easy". How can conditionset1 work correct all the time, but conditionset2 appears as I described 90% (only sometimes the coloring for debugging is correct)
What is the issue here for onorder and onexecution please?
(also when I add for NT another logic and true condition in conditionset2 like "if GetCurrentAsk() > GetCurrentBid()" there is only the entry from onbarupdate but nothing from onorderupdaten and onexecution)
Thank you
Tony
Comment