I´m recognizing differences in behavior in OnExecution (if there is no error on my end) depending if I have COBC=false or COBC=true.
* I want to ask please if there might be a difference depending of COBC in onExecution. (Like eg if(exec.Order!=PartFilled) entryOrder1 = null; is with closeofbar or immediately when filled?)
* And I want to ask please another question by using a variable to explain what I mean: If eg the Variable is set to 1 with "onexecution" (eg an entryorder) is this value 1 "fixed" as long the enterlong is filled or can its value be changed referring to other conditions (even when long still filled)
(My issue is that with exitorder the corresponding stop is cancelled (which is correct in my coding) with COBC=false but persists with COBC=true and I can´t find out as the coding of the strategies to test is the same except COBC. As the referring "action" to cancel the stoporder once the exitorder is filled is in onexectuion I´m thinking about behavior there)
Thanks
Tony
Comment