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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X