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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          55 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          72 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          38 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          99 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          60 views
          0 likes
          Last Post PaulMohn  
          Working...
          X