kralowsky wrote:
So one instance of my strategy cannot know if this order is already being tracked by another instance. Is there a way around this?
You can pass order label as a parameter to the strategy. For manually created orders it looks like "jf<some symbols>"
kralowsky wrote:
On a related note, is there any way of hooking the manual BUY/SELL commands so that when a BUY signal is issued with SL/TP settings, some code is invoked which could set the order information itself, including the order label?
Inside strategy you can do that by looking at the order label. In onMessage method catch ORDER_SUBMIT_OK and ORDER_FILL_OK and if label doesn't look like created by the strategy, then it's likely created manually.