Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NR4 or NR7 Inside Bars

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

    #16
    One more question.

    Everything's working fine, but I can't get the NT4/NT7 indicator to save on my charts.

    When I shut down NT, and select save, when I restart it, the indicator is gone.

    Comment


      #17
      Hello jasonw,

      I had some variables which were public and didn't need to be, I fixed the issue.

      Please let us know if you need further assistance.
      Attached Files
      Alan P.NinjaTrader Customer Service

      Comment


        #18
        Can someone please tweak the last version of the indicator AlanP posted? It works perfect with NR4 inside bars but not with NR7 inside bars (I looked at the NinjaScript code and AlanP didn't specify that NR7 bars had to be inside bars, just that they had to be the narrowed bar out of the last 7).
        Last edited by jasonw; 05-27-2024, 05:47 PM.

        Comment


          #19
          Hello jasonw,

          While I'm not familar with this script, I think you are wanting to change lines 163 to 166 from:
          if(nr7Bars>=6)
          {
          isNR7 =true;
          }


          To:
          if(nr7Bars>=6)
          {
          if (High[0] < High[1] && Low[0] > Low[1])
          isNR7 =true;
          }​
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

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