Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Keltner Channel Indicator does not work with other inputs

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

    Keltner Channel Indicator does not work with other inputs

    Hello Support,

    The ninjascript of KeltnerChannel references Typical, High and Low directly, so it does not work when fed with other inputs.

    The Bollinger script however works well, eg when fed with CumDelta output.

    I am wondering how to get Input's high, low and typical values, it seems that Input in ninjascript Input is a non-Bar object.

    Since the KeltnerChannel indicator is Ninja's own code, can you update it with a more generic one?

    Thank you.

    Best regards,
    Mokaru Z.

    #2
    Hello Mokaru Zen,

    The short answer to this question is that the Keltner could not be updated to be more generic which I have detailed why below.

    This would be expected for any indicator that uses the price series directly such as Typical or High/Low. When an indicator is passed an input that is a singular optional input, that can be a price series or another indicator. Inside the indicators code that data is referenced using the property named "Input" instead of a named series like Typical/High/Low. Some indicators can take an input like the Bollinger, that uses the SMA internally and the SMA uses Input[0] in its code so that works out to being able to use an input generically.

    For the KeltnerChannel to use a any generic kind of input it would need to be reprogrammed with a different equation which would make it work differently. It couldn't use Typical as an example if you were wanting to pass another indicator to it, it could only use the singular Input[0] but then the remainder of its logic wont work.

    You can use the KeltnerChannel with a secondary instrument series and that series can be used as input but you would have to use the indicator differently in code:

    Code:
    if(BarsInProgress == 1)
    { 
        double value = KeltnerChannel(1.5, 20).Upper[0];  // the input series for the indicator is now the secondary series. 
    
    }

    Comment


      #3
      Hello Jesse,

      Thanks for the explanation.

      Will get back if I have further queries.

      Best Regards,
      Mokaru Z.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      91 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      48 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      31 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      34 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      69 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X