protected override void CalcBar() { m_FastAvg.Value = m_FastAverageFC[0]; m_SlowAvg.Value = m_SlowAverageFC[0]; if (Bars.CurrentBar > 1 && m_FastAvg.CrossesUnder(m_SlowAvg, ExecInfo.MaxBarsBack)) { m_MA2CrossSE.Send(); } }
protected override void CalcBar() { m_Stochastic.Call(); if (Bars.CurrentBar > 2 && m_oSlowK.CrossesUnder(m_oSlowD, ExecInfo.MaxBarsBack) && PublicFunctions.DoubleGreater(m_oSlowK.Value, OverBought)) { m_StochSE.Send(); } }
protected override void CalcBar() { m_my_MACD.Value = m_MACD[0]; double MACD_avg = m_XAverage[0]; m_MACD_diff.Value = m_my_MACD.Value - MACD_avg; if (Bars.CurrentBar > 2 && m_MACD_diff.CrossesUnder(0, ExecInfo.MaxBarsBack)) { m_MacdSE.Send(); } }