I am using logic from the managed order side of NT8 and getting errors on rare occasion.
My logic is attached: I am entering with two 1 lots, assigning a stop to each, and assigning a target to one. There is downstream logic for getting out of the remaining order, and I update the stop on the one order that doesn't have a target, when the first target is hit.
I have attached the basic logic for entrance (or reversal) and also a screenshot of the error. Given the inconsistent frequency of the error, I don't think it's my logic. I'm guessing there's some race condition happening here that's causing the price of a pre-existing stop to be changed before deleted and before the new stops are placed once the reversal of position occurs. But just a guess.
Can someone please explain these error messages and recommend a logic improvement? I need proper reversals (and target/stops to be pushed) properly 100% of the time. If I need to make a logic change that generates some kind of slight latency, that's less important than error free code.
Thank you!!!
-Tim
Comment