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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    41 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    49 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    31 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    90 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    54 views
    0 likes
    Last Post PaulMohn  
    Working...
    X