Added UTs for the trading framework.
Created better UTs for the duration conditions.
Missing algorithms stops added on maximum loss reached.
Replaced null check with static initialization in the constructor. Here
the definite assignment rules should apply. Behaviour must live be
monitored on disconnections.
Filter enabling/disabling is now implemented in the event handler
itself. Removed this logic from trading framework.
Minor improvements on printing logs and method complexity. Updated
testcases for onMessage.
Added final.
Replaced 0 with invalid price from platform constants.
Added missing UT for the empty tick return.
Renamed interface method to event. This is more consitent with existing
methods. Some other minor formatting.
Minor method complexity reduction on trade signal handling.
Added onStop handling for closing all orders.
Merge branch 'master' of https://github.com/juxeii/JForexUtils.git
Bug fix: getLastTick can return null. This check was missing and causing
on some conditions null pointer excpetions. Now it is guaranteed that
the tick is always initialized. Maybe even a while loop until not null
is returned from history can be implemented to deal with disconnects.
Reduced the complexity of getLastTick.