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

    Comment


      #3
      Excellent Kate, thanks very much!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      41 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      124 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      64 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X