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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        161 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        309 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        349 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X