Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bar Count Management

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

    Bar Count Management

    Hi,

    I am looking for a way to pick up how many bars there are between a High and Low given a time window specified. I can easily pull the Min() and Max() prices over a historical period however am struggling to get a bar count between these two values. A time isn't sufficient since I will be doing this across many windows and potentially volume intervals. Any help would be greatly appreciated.

    thanks

    #2
    Hello,

    Thanks for your post and welcome to the NinjaTrader forum!

    Please try the following:

    Math.Abs(HighestBar(Input, 20)-LowestBar(Input, 20));

    This will give the absolute position of the count of the highest bar - the lowest bar.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by TradeForge, Today, 02:09 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by elirion, Today, 01:36 AM
    2 responses
    14 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by DJ888, 04-16-2024, 06:09 PM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by samish18, Yesterday, 08:31 AM
    4 responses
    14 views
    0 likes
    Last Post elirion
    by elirion
     
    Working...
    X