I have a big critical problem. I'm using the ExitShortStop/ExitLongStop method, in this syntax: ExitLongStop(0, true, quantity, stopPrice, "StopLossLong", "");
every time, when I get sign it will amend at FirstTickOfBar, usually in every 10 min. For a little while it works as expect and randomly from an undeterminable point it won't amend the quantity or stopPrice of the same method but it sends every time at the sign a new ExitLongStop with a new stopPrice or quantity, so it will accumulate many Stop order, and can't able to close the whole position. (it will ignore)I attached a picture about it. I used to Market Replay with 500 x speed. what can accour it? the MR has problem, or the method? please help so I can't trust in NT when I want to run it in live.
when I run it again only the same time period, where the problem accoured, won't give this behaviour. it accour when the strategy runs for a long time. 2-3 days.
thanks. Tom
Comment