Hello,
When starting out with
https://www.dukascopy.com/client/jforexl ... ibrary.zip Main.java, and extending it to run more than one strategy, the strategies run into LABEL_NOT_UNIQUE exceptions when executing orders.
The same strategies run fine if I only launch one strategy from Main.java.
I put a breakpoint on the engine.submitOrder call, and verified that I only open one order. However I am not able to debug into the engine.submitOrder code. Thus for what I understand, for some reason a single call to engine.submitOrder executes several orders, where additional orders are rejected due to having the same label.
In debugging this I also got one exception on instrument not subscribed. From my own code this would not be possible, as I check for the instrument type before submitting any orders, and I only submit orders which pass have the correct instrument type.
The behavior is reproducible 100% of the time. The current workaround I use, is a try-catch or the submitOrder call. I still of course get the exception, however, my strategy does not stop.