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 snoussi, Today, 12:26 PM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by reynoldsn, Today, 12:42 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by f.saeidi, Today, 12:35 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Italohispanico, Today, 12:39 PM
    0 responses
    4 views
    0 likes
    Last Post Italohispanico  
    Started by SnailHorn, 05-02-2024, 10:49 PM
    3 responses
    30 views
    0 likes
    Last Post SnailHorn  
    Working...
    X