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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        145 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X