Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RE: find the high or low value for the past 10 bars

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

    RE: find the high or low value for the past 10 bars

    Hi,

    I need the code for the Plot0.Set line to find the high or low value for the past 10 bars for the following indicator - CCI (14) .

    Thanks

    #2
    Shawn,

    You can use something like :

    double highest = Plot0[HighestBar(Plot0,10)];

    The other function you can use is LowestBar(). HighestBar() and LowestBar() return the index.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Need more help.

      Hi Adam,

      Thanks for your help. I need a code that can be configured for the Plot0.Set. I'm a novice at this stuff. Do you have something like this?

      Plot0.Set[HighestBar(CCI(14),10)];

      Comment


        #4
        Shawn,

        Plot0.Set( CCI(14)[HighestBar(CCI(14),10) ] ) should work.

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Thanks.

          Perfect. Thanks..

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          63 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          40 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          21 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          23 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          51 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X