Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X