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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      155 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      90 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      137 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      130 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X