Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instrument.Exchange

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

    Instrument.Exchange

    Hi, how to get printed the instrument´s exchange other that "default" one?

    I've several instruments on a personal list, each with it's own exchange setted, and need to print that info when backtest.

    Print(Instrument.Exchange);

    only prints "Default"

    Thanks in advance

    #2
    Hello fercho,

    Likely the chart has an instrument loaded with the Default exchange selected.

    Is this instrument added to the Default Instrument list?
    If so, please show the Instrument drop-down from a chart so that I can see what exchange you have selected when adding this instrument to the instrument list.

    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

    Click here for instructions

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    Click here for detailed instruction


    Below is a link to a video I have created to demonstrate.
    http://screencast.com/t/GoofSmPq
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Filter Instrument List

      Hi I have a "EUROPE" Instrument List that contais several exchanges marked on it.
      I want to perform a backtest on that list, but filtering the "xetra" marked ones only.

      thanks in advance, best regards

      Comment


        #4
        Hi fercho,

        Instrument lists cannot have exchanges applied to them directly.

        Instead the exchanges are enabled on a per instrument basis.

        Please include a screenshot of an instrument where you are looping through the exchanges and finding there is only one selected.

        Code:
        for (int i = 0; i < Instrument.MasterInstrument.Exchanges.Length; ++i)
        {
        	Print(Instrument.MasterInstrument.Exchanges[i].ToString());
        }
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        2 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Working...
        X