コード例 #1
0
        protected override void InitExecuteContext()
        {
            if (IsSimple)
            {
                return;
            }

            m_source = new ShrinkedList <double>(Period);
        }
コード例 #2
0
        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
            };
        }
コード例 #3
0
 protected override void ClearExecuteContext()
 {
     m_source     = null;
     m_lastResult = 0;
 }
コード例 #4
0
 protected override void InitExecuteContext()
 {
     m_source     = new ShrinkedList <double>(Period + 2);
     m_lastResult = 0;
 }
コード例 #5
0
 protected override void ClearExecuteContext()
 {
     m_source = null;
 }
コード例 #6
0
 protected override void ClearExecuteContext()
 {
     m_source     = null;
     m_smaValues  = null;
     m_smaHandler = null;
 }
コード例 #7
0
 protected override void ClearExecuteContext()
 {
     m_source    = null;
     m_lastIndex = -1;
     m_lastValue = double.NaN;
 }
コード例 #8
0
ファイル: Momentum.cs プロジェクト: barbagrigia/Handlers
 protected override void InitExecuteContext()
 {
     m_source = new ShrinkedList <double>(Period + 1);
 }