public IndSignal(TemporalContextManager manager, string token, int signalPeriod) { m_manager = manager; m_unsubscribers = new IDisposable[2]; m_token = TemporalContextManager.GetTokenName(); m_indSignalEMA = new IndEMA(m_manager, token); m_indSignalEMA.SetParameters(new IndParameter("Period", signalPeriod)); m_unsubscribers[0] = m_manager.AddTemporalQueueObserver <double>(this, m_indSignalEMA.Token, "SignalEMA", TemporalContextManager.InternalIndicatorPriority + 3); m_unsubscribers[1] = m_manager.AddTemporalQueueObserver <double>(this, token, "Line", TemporalContextManager.InternalIndicatorPriority + 2); m_manager.AddTemporalQueue <double[]>(m_token, "Line&Signal"); m_indSignalEMA.SetParameters( new IndParameter("Start", true), new IndParameter("Priority", TemporalContextManager.InternalIndicatorPriority + 1)); }