Skip to content

KeltnerChannels.Top

property · KeltnerChannels · cAlgo.API.Indicators

DesktopCLICloud

Moving Average + ATR * BandDistance

Definition

IndicatorDataSeries Top {get;}
keltnerChannels.Top: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

var keltnerChannels = Indicators.KeltnerChannels(20, MovingAverageType.Exponential, 10, MovingAverageType.Simple, 2);
if (Bars.HighPrices.Last(1) >= keltnerChannels.Top.Last(1))
    Print("Price touched the upper Keltner band: {0}", keltnerChannels.Top.Last(1));
keltnerChannels = api.Indicators.KeltnerChannels(20, MovingAverageType.Exponential, 10, MovingAverageType.Simple, 2)
if api.Bars.HighPrices.Last(1) >= keltnerChannels.Top.Last(1):
    api.Print(f"Price touched the upper Keltner band: {keltnerChannels.Top.Last(1)}")