Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Highest Bar: Strategy Builder

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

    Highest Bar: Strategy Builder

    Why would the condition "if (HighestBar(Close, 8) > 20)" cause a back test not to run? If the "Numeric Value" I am testing against is greater than the "Period", it will not show results.

    Or am I wrong about what the expression means? It appears to mean that "if a bar which has a high, higher than the previous 9 (0-8) bars before it, is greater than 21 (0-20) bars back from the current bar" However, whenever I test with the "Period" as the lower number, it does not run a back test.

    Any help would be appreciated.
    Last edited by smcllr; 08-18-2021, 12:21 AM.

    #2
    Hello smcllr,

    Thanks for your post.

    With reference to the help guide, "Returns the number of bars ago the highest price value occurred within the specified look-back period." So that means you will get a value that is up to the length of the specified lookback, which in your example would be 0 to 8 which is not greater than 20.

    Reference: https://ninjatrader.com/support/help...highestbar.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X