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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X