/// <summary> /// Called on each bar update event (incoming tick) /// </summary> protected override void OnBarUpdate() { if (CurrentBar < lookbackBars + 2) { return; } double tempSlope = 0.00; tempSlope = EMA(Close, eMAPeriod)[0] - EMA(Close, eMAPeriod)[lookbackBars]; Slope.Set(tempSlope); }