protected override void InitExecuteContext() { if (IsSimple) { return; } m_source = new ShrinkedList <double>(Period); }
protected override void InitExecuteContext() { if (IsSimple) { return; } m_source = new ShrinkedList <double>(Period); m_smaValues = new ShrinkedList <double>(Period); m_smaHandler = new SMA { Context = Context, Period = Period }; }
protected override void ClearExecuteContext() { m_source = null; m_lastResult = 0; }
protected override void InitExecuteContext() { m_source = new ShrinkedList <double>(Period + 2); m_lastResult = 0; }
protected override void ClearExecuteContext() { m_source = null; }
protected override void ClearExecuteContext() { m_source = null; m_smaValues = null; m_smaHandler = null; }
protected override void ClearExecuteContext() { m_source = null; m_lastIndex = -1; m_lastValue = double.NaN; }
protected override void InitExecuteContext() { m_source = new ShrinkedList <double>(Period + 1); }