Hiblet/NewZopa01 — pull request #42 by Hiblet (2014-04-11 14:21:10+00:00)
Title: Improved Risk management radically, uses all exposed orders to calculate proposed position change;

CHANGED: Market.cs
-- Removed atTradeLimitCheck()
-- Added atTradeLimitCheck_2(), uses all working orders en-masse.
-- Added GetWorkingOrdersForAccount() for use by MarketManagerT

CHANGED: PositionLimitManager.cs
-- CheckOrderLimit() now pulls up all orders on the same account and
-- works out the total quantity exposed and adds that to the proposed
-- change in position.

CHANGED: MarketManager.cs
-- Added GetWorkingOrders(), wrapper, calls Market.GetWorkingOrdersForAccount()

CHANGED: OrderContainers.cs
-- Added GetOrdersForAccount() to return orders for particular account.

CHANGED: MarketPriceLevel.cs
-- Added GetByAccount() to retrieve all orders for a particular account.

CHANGED: Order.cs
-- Tiny tweak, wrapper around PositionLimitManager::CheckOrderLimit() call.
-- Changed text and name for capacity adjustment string