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 Jonker, Today, 01:19 PM
    0 responses
    1 view
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by futtrader, Today, 01:16 PM
    0 responses
    5 views
    0 likes
    Last Post futtrader  
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,789 views
    0 likes
    Last Post aligator  
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    838 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,294 views
    1 like
    Last Post jgualdronc  
    Working...
    X