Пример #1
0
        private void StartEvent()
        {
            var item = new EventItem(tickFile.Symbol, EventType.StartHistorical);

            agent.SendEvent(item);
            LogInfo("Starting loading for " + tickFile.Symbol + " from " + tickIO.ToPosition());
        }
Пример #2
0
        private Yield StartEvent()
        {
            if (!receiver.OnEvent(symbol, (int)EventType.StartHistorical, null))
            {
                return(Yield.NoWork.Repeat);
            }
            else
            {
                if (!quietMode)
                {
                    LogInfo("Starting loading for " + symbol + " from " + tickIO.ToPosition());
                }
                box            = tickBoxPool.Create();
                box.TickBinary = tick;

                return(Yield.DidWork.Invoke(TickEventMethod));
            }
        }