Skip to content

DonchianChannel.Top

property · DonchianChannel · cAlgo.API.Indicators

DesktopCLICloud

Gets or sets the highest high of the period.

Definition

IndicatorDataSeries Top {get; set;}
donchianChannel.Top: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

var donchian = Indicators.DonchianChannel(20);
if (Bars.ClosePrices.Last(1) > donchian.Top.Last(2))
    Print("Breakout above the channel Top: {0}", donchian.Top.Last(2));
donchian = api.Indicators.DonchianChannel(20)
if api.Bars.ClosePrices.Last(1) > donchian.Top.Last(2):
    api.Print(f"Breakout above the channel Top: {donchian.Top.Last(2)}")