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 futtrader, 04-21-2024, 01:50 AM
      6 responses
      58 views
      0 likes
      Last Post futtrader  
      Started by sgordet, Today, 11:48 AM
      0 responses
      4 views
      0 likes
      Last Post sgordet
      by sgordet
       
      Started by Trader146, Today, 11:41 AM
      0 responses
      5 views
      0 likes
      Last Post Trader146  
      Started by jpapa, 04-23-2024, 07:22 AM
      2 responses
      19 views
      0 likes
      Last Post rene69851  
      Started by funk10101, Today, 11:35 AM
      0 responses
      3 views
      0 likes
      Last Post funk10101  
      Working...
      X