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

Index Add list in an Indicator with parameters

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

    Index Add list in an Indicator with parameters

    Hi

    I have an indicator with 2 parameters
    val = Indicator (7,1).P2[0]
    witch return the value of the P2 curves

    it run well

    now i want applied it on the first item of the "Add instrument List)
    Add ("YM 09-13", PeriodType.minute,2)

    I cant add the add liste index :

    - val = Indicator (1,7,1).P2[0]
    - val = Indicator ([1],7,1).P2[0]
    - val = Indicator [1](7,1).P2[0]

    nothing is good
    have you an idea ?

    Thanks
    Last edited by Pcomm69; 06-27-2013, 10:13 AM.

    #2
    Hello Pcomm69,

    Thank you for your response.

    You will need to use BarsArray[1]: val = Indicator (BarsArray[1],7,1).P2[0]

    For information on BarsArray please visit the following link: http://www.ninjatrader.com/support/h.../barsarray.htm

    For information on multiple instrument and period types in your code please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      all is good
      thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Karado58, 11-26-2012, 02:57 PM
      8 responses
      14,825 views
      0 likes
      Last Post Option Whisperer  
      Started by Option Whisperer, Today, 09:05 AM
      0 responses
      1 view
      0 likes
      Last Post Option Whisperer  
      Started by cre8able, Yesterday, 01:16 PM
      3 responses
      11 views
      0 likes
      Last Post cre8able  
      Started by Harry, 05-02-2018, 01:54 PM
      10 responses
      3,203 views
      0 likes
      Last Post tharton3  
      Started by ChartTourist, Today, 08:22 AM
      0 responses
      6 views
      0 likes
      Last Post ChartTourist  
      Working...
      X