Exemplo n.º 1
0
        private void AddSingleMagicBox(List <MagicBoxOrder> mgcBoxOrderList,
                                       IGrouping <DateTime, EconomicEvent> eventGroup)
        {
            EconomicEvent singleEvent = eventGroup.Single();

            mgcBoxOrderList.Add(new MagicBoxOrder
            {
                Symbol   = singleEvent.Currency,
                LotSize  = 1,
                Config   = SelectConfig(singleEvent),
                NewsTime = singleEvent.DateTime
            });
        }
Exemplo n.º 2
0
 private MagicBoxConfig SelectConfig(EconomicEvent eventx)
 {
     return eventx.IsSpeechOrMeeting ? speechCfg : commonCfg;
 }
Exemplo n.º 3
0
 private MagicBoxConfig SelectConfig(EconomicEvent eventx)
 {
     return(eventx.IsSpeechOrMeeting ? speechCfg : commonCfg);
 }