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 burtoninlondon, Today, 12:38 AM
      0 responses
      5 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      12 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      13 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,982 views
      3 likes
      Last Post jhudas88  
      Working...
      X