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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    428 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    281 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    241 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    328 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    290 views
    0 likes
    Last Post CarlTrading  
    Working...
    X