Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Number of ticks up and down in a bar.

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

    Number of ticks up and down in a bar.

    I'm placing it here, as I don't work with 6.5 anymore.

    I'm sure, somebody did it.

    I need to know number of ticks up and down for every bar. While it seems trivial to code for a last bar in the real time data, what about a historical data ? How CalculateOnBarClose = false behaves for historical bars ? Does it look at 1 tick data if available ?

    I don't see any TicksUp / TicksDown fields in Bars object or anywhere else. My suggestion is to store this information and to access these values as properties, exactly as TickCount implementation.

    Of course, I can program a multiseries counter with the second 1 tick data series to count, but it seems to me reinventing a wheel in a heavy way.

    Any comments ?

    #2
    xTrader1, thanks for the suggestion - those properties are unfortunately not available, you would need to custom code those calcs as you've outlined.

    CalculateOnBarClose is defaulted to 'true' for all historical OnBarUpdates(), as the intrabar formation is not known (only OHLCV).

    Comment


      #3
      Please transfer the suggestion.

      May be for further NT7 releases. TradeStation has this information from its very beginning as a part of a bar data.

      As for now - Is Market Replay treated as a real time data in all aspects ? If yes ,I could just implement a code to count ups and downs for the last bar.

      Comment


        #4
        Correct, for Market Replay the tick formation is recorded and thus no MultiSeries strategy would be needed here.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        41 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X