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 jeronymite, 04-12-2024, 04:26 PM
        3 responses
        44 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        179 views
        0 likes
        Last Post jeronymite  
        Started by ghoul, Today, 06:02 PM
        0 responses
        10 views
        0 likes
        Last Post ghoul
        by ghoul
         
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Working...
        X