Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Basic TRIN strategy

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

    Basic TRIN strategy

    Could someone please help with the following. I am on the IB feed in NT6.

    All I want to do is get some guidepost on how to create a SIMPLE Multi-Instrument strategy that goes long ZN when a 10 period SMA of ^TRIN is below .8, (short when above 1.2), with a 15 tick stop or exit at market close. I do not need it plotted or charted or anything else I just want to autotrade the strat.

    I have read the Multi-Instrument help guide until my eyes bled and have been all over the sample Multi-Instrument strategy provided and I guess I just don't get it. Perhaps this is not simple, and I apologize in advance for suggesting it is. Apparently, if it does not exist in Strategy Wizard I am lost.

    #2
    Multi-instrument does not exist in Strategy Wizard. You need to manually code it. The idea is to "add" the various time periods then use BarsInProgress inside the OnBarUpdate() method to work with it.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh-

      I am trying to take this one step at a time, I just coded a TRIN strategy that compiled successfully using only ^TRIN. When I run backtests I get no results. That's what I expected since I have no other instrument in there yet, however I am surprised it would even compile! Now I intend to "add" the symbol ZN.

      So, I surmise ^TRIN can ONLY be used currently with another instrument and if that is the case one has to be primary, which one? If ^TRIN is primary, then it is indexed at "0", then ZN would be indexed at "1" correct? I want to apply an SMA to ^TRIN, does that make a difference which one is primary in your experience?

      Any help appreciated as usual.

      Alfie

      Comment


        #4
        Whichever one is the primary does not matter. You can mix and match different instruments as you please.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          OK, Thanks for your assistance.

          Alfie

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X