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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        123 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        104 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        82 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        102 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        83 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X