Example #1
0
 protected override void OnBarUpdate()
 {
     #region Indicator Formula
     PriceSeries.Set((High[0] + Low[0] + Close[0]) / 3);
     JMAvalue = (CurrentBar >= J_lag ?  JurikJMA(PriceSeries, J_phase, J_len)[J_lag] : PriceSeries[0]);
     JMA_Series.Set(JMAvalue);
     #endregion
 }
Example #2
0
 protected override void OnBarUpdate()
 {
     #region Indicator Formula
     PriceSeries.Set((High[0] + Low[0] + 2 * Close[0]) / 4);
     JMAValue  = JurikJMA(PriceSeries, Jma_phase, Jma_len)[0];
     DWMAvalue = WMA(WMA(PriceSeries, Dwma_len), Dwma_len)[0];
     JMA_Series.Set(CurrentBar >= 50 ? JMAValue : PriceSeries[0]);
     DWMA_Series.Set(CurrentBar >= 50 ? DWMAvalue : PriceSeries[0]);
     #endregion
 }