Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Keltner Channel: Documentation needs to be updated

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Keltner Channel: Documentation needs to be updated

    In the documentation for Keltner Channel (http://www.ninjatrader-support.com/H...erChannel.html), it says:

    "Keltner Channel indicator is based on volatility using a pair of values placed as an "envelope" around the data field. Values are calculated by taking the Exponential Moving Average of the data and adding or subtracting the average true range multiplied by an offset value from the moving average."

    I opened the source code. It's using SMA, not EMA.

    protected override void OnBarUpdate()
    {
    diff.Set(High[0] - Low[0]);

    double middle = SMA(Typical, Period)[0];
    double offset = SMA(diff, Period)[0] * offsetMultiplier;

    double upper = middle + offset;
    double lower = middle - offset;

    Midline.Set(middle);
    Upper.Set(upper);
    Lower.Set(lower);
    }

    #2
    Thanks for bringing this to our attention. We will get it corrected.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Our implementation is correct. The original Keltner Channel uses SMA. Later variations NOT by the original author uses EMA and sometimes even offsets of ATR. The documentation is incorrect and I will change that.
      RayNinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_Ray View Post
        Our implementation is correct. The original Keltner Channel uses SMA. Later variations NOT by the original author uses EMA and sometimes even offsets of ATR. The documentation is incorrect and I will change that.
        Agreed, the original uses SMA.

        Comment


          #5
          keltner channel with EMA

          Hello. I am looking for the Keltner Channel with the EMA.

          Any help would be appreciated.

          Thanks.

          Comment


            #6
            geotrader, you can open up the source code for the Keltner Channel indicator, make a copy (make sure to change the Keltner Channel name in the code itself!) of it, and then every time you see a reference to SMA, you can just change it to EMA and then compile it and you'll have an EMA Keltner Channel ready to go.
            AustinNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            42 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            25 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            162 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            98 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            157 views
            2 likes
            Last Post CaptainJack  
            Working...
            X