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 AaronKoRn, Yesterday, 09:49 PM
    0 responses
    11 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    10 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    12 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Yesterday, 06:48 PM
    0 responses
    10 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X