Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a function to tell you the end or start tick of a bar

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

    Is there a function to tell you the end or start tick of a bar

    I try to match this function in TradeStation Easy Language Function
    BarStatus
    is used to determine whether the current tick is the opening or closing tick of a bar, or whether it is a tick ’r;inside the bar.’
    BarStatus(DataNum)
    DataNum is a numeric expression representing the data stream that is being evaluated. 1 refers to Data1, 2 to Data2 and so on. DataNum can be between 1 and 50, inclusive.
    Notes:

    This reserved word will return one of four possible values:
    2 = the closing tick of a bar
    1 = a tick within a bar
    0 = the opening tick of a bar (relevant only for strategies using Open Next Bar order actions)
    -1 = an error occurred while executing the reserved word
    When used with multi-data charts the data series referenced must be applied to the chart. For example, to use BarStatus (2), a second data series must be applied to the chart.

    #2
    Hello,

    I am not familiar with TS Easy Language, however I think you could use FirstTickOfBar:
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X