Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instrument from string

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

    Instrument from string

    Is it possible to obtain an Instrument from the string that corresponds to the Instrument.Name? For example, specify the string "$EURUSD" to obtain the corresponding EURUSD Instrument.

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    You can use the core Instrument methods to obtain this.

    Code:
    Instrument eurusd = NinjaTrader.Cbi.Instrument.GetInstrument("EURUSD");
    You do not need to use $ to specify a forex instrument any longer, just the master instrument name will do.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    14 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    135 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X