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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    36 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    287 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    287 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    133 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    95 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X