Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Close > highest high of last 10 bars

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

    Close > highest high of last 10 bars

    How would I say..
    Close > highest high of last 10 bars

    is this correct?

    if(Close[0] > HighestBar(High, 10))

    #2
    Almost correct, but HighestBar() will return a bars ago value, not the actual high value.

    change it to something like this:

    if(Close[0] > High[HighestBar(High, 10)])



    Let me know if I can further assist.
    Last edited by NinjaTrader_Lance; 01-24-2014, 09:25 AM.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Thanks and is there anyway to specify that the Highest high bar is on Index 0 or Index 1. Can I somehow get BarsArray[0] in there?

      Comment


        #4
        Try this:

        Highs[0][HighestBar(Highs[0], 10)]
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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