Skip to content

Signal Property

Summary

Gets the Signal line of MACD (red line).

Remarks

Signal: 9 day EMA of the blue line

Signature

1
public abstract IndicatorDataSeries Signal {get;}

Return Value

IndicatorDataSeries

Declaring Type

cAlgo.API.Indicators.MacdCrossOver

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 //...
 private MacdCrossOver _macdCrossOver;
 [Output("Signal")]
 public IndicatorDataSeries Signal { get; set; }
 protected override void Initialize()
 {
     _macdCrossOver = Indicators.MacdCrossOver(LongCycle, ShortCycle, Period);
 }
 public override void Calculate(int index)
 {
     Signal[index] = _macdCrossOver.Signal[index];
     //...
 }

Last update: July 1, 2022

Comments