Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade Alternate Instrument from Strategy Conditions

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

    Trade Alternate Instrument from Strategy Conditions

    Greetings,

    I am wondering how I could use one of my existing strategies, developed to be used on 1 particular instrument but have it trigger entries/exits on a completely different instrument, hopefully without changing too much. Is there a way to specify the instrument in the entry/exit methods?

    Thank you,
    hbmiles2000

    #2
    hbmiles2000, yes what you look for here is a MultiInstrument strategy, a working example is preinstalled with NT and it's named 'SampleMultiInstrument' strategy.

    The framework used is explained in depth here in our helpguide :

    Comment


      #3
      Thanks Bertrand-one more question that I cannot find the answer to in the documentation - where & how do you define the signal name you can use to enter/exit various instruments within the context of bars updates for other instruments?
      Thx again,
      hbmiles2000

      Comment


        #4
        Please take as example this Market order entry overload we have :

        EnterLong(int barsInProgressIndex, int quantity, string signalName)

        The barsInProgressIndex is the bars series you submit to, if you Add() for example MSFT to your strategy and enter 1 as the index (the second instrument, it starts counting from 0) then you would submit to MSFT instead. The signalName is just a string you could configure to your liking and potentially add the instrument name here as well to differentiate.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X