Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Input and Inputs

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

    Input and Inputs

    On the manual page 729, Section 10.4.3.40 under Tips, "When working with multi-series indicators, Input always references BarsInProgress 0."

    I always thought Input is a just a convenient 'alias' for OHLC objects so the behaviors should be the same, i.e., Close[0] always refers to the 'current calling Bars object's Close.

    So why is it Input is behaving differently?

    There's no mention of Inputs as Open/Opens, but in some of the Indicators code there're references of Inputs[0]

    So what is the correct behavior of Input, and can I use Inputs as in Closes?

    #2
    Hello balancenv,
    Correct, Input would basically represent the PriceType you select while initializing the indicator.

    If you select the input series as Close then it will return the Close data series values.

    To assist you further may I know are you getting any different values.


    Since using Inputs wont provide any extra benefit as you cannot select the additional inputs (like value for Inputs[1]) it would be recommended to use Closes[1] etc as they are documented and officially supported unlike Inputs.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    32 views
    0 likes
    Last Post Pattontje  
    Started by abdo22, Yesterday, 03:15 PM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by f.saeidi, Yesterday, 02:09 PM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Jltarrau, Today, 05:57 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by kujista, Today, 06:23 AM
    0 responses
    2 views
    0 likes
    Last Post kujista
    by kujista
     
    Working...
    X