Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instrument List as a Parameter?

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

    #16
    Originally posted by NinjaTrader_ChelseaB View Post
    That I know of, there are not any documented ways of listing the instruments that have been added to a chart.
    Something like this might work for that..

    Code:
    [COLOR=#0000ff]bool[/COLOR] [COLOR=#080808]BarsArrayPrintedBool[/COLOR] = [COLOR=#0000ff]false[/COLOR];
    [COLOR=#0000ff]if[/COLOR](![COLOR=#080808]BarsArrayPrintedBool[/COLOR])
    {
    [COLOR=#0000ff]   int[/COLOR] [COLOR=#080808]BarsArrayCount[/COLOR] = [COLOR=#080808]BarsArray[/COLOR].[COLOR=#080808]Count[/COLOR]();
    [COLOR=#080808]   Print[/COLOR]([COLOR=#b22222]"BarsArrayCount = "[/COLOR] + [COLOR=#080808]BarsArrayCount[/COLOR]);
    [COLOR=#0000ff]   for[/COLOR] ([COLOR=#0000ff]int[/COLOR] [COLOR=#080808]i[/COLOR] = [COLOR=#ff8c00]0[/COLOR]; [COLOR=#080808]i[/COLOR] < [COLOR=#080808]BarsArrayCount[/COLOR]; [COLOR=#080808]i[/COLOR]++) 
         {
    [COLOR=#080808]        Print[/COLOR]([COLOR=#b22222]"BarsArray["[/COLOR] + [COLOR=#080808]i[/COLOR] + [COLOR=#b22222]"] Instrument = "[/COLOR] + [COLOR=#080808]BarsArray[/COLOR][[COLOR=#080808]i[/COLOR]].[COLOR=#080808]Instrument[/COLOR].[COLOR=#080808]FullName[/COLOR]);
         }
    [COLOR=#080808]  BarsArrayPrintedBool[/COLOR] = [COLOR=#0000ff]true[/COLOR];
    }

    -=Edge=-
    NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    669 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    378 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X