public void executionDetailsEnd ( final ConcurrentHashMap < Integer , TradeOrder > tradeOrders ) { try { Tradingday todayTradingday = m_tradingdays . getTradingday ( TradingCalendar . getTradingDayStart ( TradingCalendar . getDateTimeNowMarketTimeZone ( ) ) , TradingCalendar . getTradingDayEnd ( TradingCalendar . getDateTimeNowMarketTimeZone ( ) ) ) ; if ( null == todayTradingday ) { return ; } tradingdayPanel . doRefresh ( todayTradingday ) ; tradingdayPanel . doRefreshTradingdayTable ( todayTradingday ) ; } catch ( Exception ex ) { this . setErrorMessage ( "Error starting PositionManagerRule." , ex . getMessage ( ) , ex ) ; } }
This method is fired when the Brokermodel has completed the request for Execution Details see doFetchExecution or connectionOpened i.e from a BrokerModel event all executions for the filter have now been received . Check to see if we need to close any trades for these order fills .