Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

External event/signal

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

    External event/signal

    Hello,

    I'm looking at building a strategy with a slightly different logic by relying on external signals to trigger entries. Once these signals are picked up by NinjaTrader, the strategy will handle the rest of the logic (size, stop, target, exit, etc) and execution.

    Now to go about relying on these external events instead of the bar update event to check for entries, two possible solutions first come to mind, polling for signals on each bar update or using a custom event handler.

    My problem however is with the instruments as a I don't know which instrument may generate a signal. Is it possible to add an instrument to a running strategy after the initialization, or do I have to load the whole list of instruments before hand (it can be a very long list)?

    Any suggestions on how to go around this would be greatly appreciated.

    Thanks

    #2
    The Add() method can only be called in Initialize(). This means you would need to know which instruments you plan on trading in your strategy before it is started.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

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