Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Check validity of InstrumentName/Access Strategy Name

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

    Check validity of InstrumentName/Access Strategy Name

    Hi Ninja team,

    In NT7 is there a way to check the validity of an instrument name? For example, if an indicator or strategy is expecting user input of an instrument for a second data series?

    Second, is there a way to programatically access the name of a strategy from within that strategy? For example;

    if (something happens)
    {
    PrintWithTimeStamp(MyStrategyName+" halted due to P&L rules");
    }

    Thanks!

    #2
    Hi MXASJ, are you referring to checking if an instrument with this name exists in the database? This is unfortunately not possible.

    For your second request, I believe you could set the Name to a custom string in the Initialize() and then use this to Print it to the output window.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    592 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X