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 geddyisodin, Yesterday, 05:20 AM
    8 responses
    49 views
    0 likes
    Last Post geddyisodin  
    Started by DayTradingDEMON, Today, 09:28 AM
    3 responses
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by George21, Today, 10:07 AM
    0 responses
    8 views
    0 likes
    Last Post George21  
    Started by navyguy06, Today, 09:28 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X