Created branch for a severe threading issue. Sending FLAT to the FSB
state machine not always closes orders. Added logging to
Added additional logs to thread constructors and fixed order state
printig bug.
Bug fix: order maybe null, so removed order output.
Added log when order is null; in the logs all these calls have an
invalid order.
Added more traces. Added synchronized to all methods. Able to retrive
instrument from context.
Added log messages.
Bug fix: This commit is most probably the fix for the threading issues
when mass closing orders. Setting the FSM context in an enum FSM is bad,
since enum are singletons and therefore only the latest context with its
order will be processed. This leads to strange order processing when the
context is set before the FSMTask is started. After testing this on live
market this branch will be deleted and the fix applied to trunk with the
context being injected as method parameter.
Removed interface for FBS FSM.
Removed FSM interface from other dependent classes.
Removed logs.
Removed logs.
Removed the debug interface methods from the FSM context.
Removed debug log.
Bug fix: as with the FBS FSM; the context must be set statically in
athreaded context.
Removed the deubg synchronied attribute from private methods.
Removed not needed synchronized for no state transition.
Switched the handleEquity logic to avoid not needed account comparisons.
Merge remote-tracking branch 'origin/fbs_thread_debug'
Bug fix: The context is now again an interface instance.