Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

volume bar chart with AddDataSeries( Second, 10 ) ? get tick cound of 10 second bar

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

    volume bar chart with AddDataSeries( Second, 10 ) ? get tick cound of 10 second bar

    Hi Ninja Team!

    I have a strategy running on a volume bar chart. Calculate on each tick. NOT tick replay.

    I have added 10 second bars and I would like to get tick count for each of the 10 second bars.

    Is there a way to surface that like I do volume below?

    Code:
    Print(
    string.Format("{0} {1} || {2} {3}",
       Times[1][ii],
       Closes[1][ii],
       Volumes[1][ii],
       slATR(BarsArray[1],3)[ii]
    ));

    #2
    Hello robforee2,

    Thank you for your post.

    I'd suggest using a custom Series<T> data series to count and store the tick counts for each bar.

    I've created a short example of this that adds a secondary 1 second data series, counts each tick per bar and saves them to a custom series which I've attached below.

    Please let us know if we may be of further assistance to you.
    Attached Files
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Excellent Kate, thanks very much!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by f.saeidi, Today, 11:02 AM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by geotrades1, Today, 10:02 AM
      4 responses
      12 views
      0 likes
      Last Post geotrades1  
      Started by rajendrasubedi2023, Today, 09:50 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by lorem, Today, 09:18 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by geddyisodin, Today, 05:20 AM
      4 responses
      30 views
      0 likes
      Last Post geddyisodin  
      Working...
      X