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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    58 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X