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. 
    
    }

    JesseNinjaTrader Customer Service

    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 lightsun47, Today, 03:51 PM
      0 responses
      5 views
      0 likes
      Last Post lightsun47  
      Started by 00nevest, Today, 02:27 PM
      1 response
      10 views
      0 likes
      Last Post 00nevest  
      Started by futtrader, 04-21-2024, 01:50 AM
      4 responses
      46 views
      0 likes
      Last Post futtrader  
      Started by Option Whisperer, Today, 09:55 AM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by port119, Today, 02:43 PM
      0 responses
      10 views
      0 likes
      Last Post port119
      by port119
       
      Working...
      X