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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      65 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      149 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      99 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      286 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X