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).
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Today, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Working...
        X