Skip to content

Histogram Property

Summary

Gets the Histogram (bar graph).

Remarks

The histogram of MACD: difference between the blue and red lines.

Signature

1
public abstract IndicatorDataSeries Histogram {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("Histogram")]
 public IndicatorDataSeries Histogram { get; set; }
 protected override void Initialize()
 {
     _macdCrossOver = Indicators.MacdCrossOver(LongCycle, ShortCycle, Period);
 }
 public override void Calculate(int index)
 {
     Histogram[index] = _macdCrossOver.Histogram[index];
     //...
 }

Last update: July 1, 2022

Comments