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 ageeholdings, Today, 07:43 AM
      0 responses
      10 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      9 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X