protected override void CalcBar()
        {
            var m_value1 = m_avg_price.Average(jaw, jawoffset);
            var m_value2 = m_avg_price.Average(teeth, teethoffset);
            var m_value3 = m_avg_price.Average(lip, lipoffset);

            if (Bars.CurrentBar >= 21)
            {
                Plot1.Set(0, m_value1);
                Plot2.Set(0, m_value2);
                Plot3.Set(0, m_value3);
            }
        }
 protected override void CalcBar()
 {
     m_ao.Value = m_avg_price.Average(5) - m_avg_price.Average(34);
     m_ac.Value = m_ao.Value - m_ao.Average(5);
     if (Bars.CurrentBar >= 5)
     {
         if (PublicFunctions.DoubleGreater(m_ac.Value, m_ac[1]))
         {
             Plot1.Set(0, m_ac.Value);
         }
         else
         {
             Plot2.Set(0, m_ac.Value);
         }
     }
 }
Exemplo n.º 3
0
        protected override void CalcBar()
        {
            m_ao.Value = m_avg_price.Average(5) - m_avg_price.Average(34);
            Plot3.Set(0, 0);

            if (Bars.CurrentBar < 1)
            {
                return;
            }

            if (PublicFunctions.DoubleGreater(m_ao.Value, m_ao[1]))
            {
                Plot1.Set(0, m_ao.Value);
            }
            else
            {
                Plot2.Set(0, m_ao.Value);
            }
        }