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 CarlTrading, Yesterday, 11:51 AM
    0 responses
    18 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    27 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    22 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X