Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instrument currency

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

    Instrument currency

    Hi,

    It's possible to retrieve the currency of an instrument?

    If I want to use the method Add() to add an instrument with the EURUSR pair, what would be the right redaction?

    #2
    guillembm, can you please be more specific? Are you trying to retrieve the base currency of an instrument? If you want to add a new instrument to your strategy, you could do something like this:
    Code:
    Initialize()
    {
       Add("ES 09-11", PeriodType.Minute, 1); // this will add a 1 minutes ES 09-11 series to your strategy/instrument
    }
    The help guide page for Add() can be found here - http://www.ninjatrader.com/support/h...s/nt7/add3.htm.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Exactly,

      I'm trying to retrieve the base currency of an instrument

      Comment


        #4
        Hi guillembm,

        This property is not supported but you can use intellisense to find:
        Print(Instrument.MasterInstrument.Currency.ToStrin g());
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        71 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        42 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        25 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        28 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        56 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X