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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X