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 sjsj2732, 03-23-2026, 04:31 AM
            0 responses
            42 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            295 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            290 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            135 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            98 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X