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 LiamTwine, Today, 08:10 AM
    0 responses
    2 views
    0 likes
    Last Post LiamTwine  
    Started by Balage0922, Today, 07:38 AM
    0 responses
    5 views
    0 likes
    Last Post Balage0922  
    Started by JoMoon2024, Today, 06:56 AM
    0 responses
    6 views
    0 likes
    Last Post JoMoon2024  
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    19 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    6 views
    0 likes
    Last Post Creamers  
    Working...
    X