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 rdtdale, Today, 01:02 PM
      0 responses
      1 view
      0 likes
      Last Post rdtdale
      by rdtdale
       
      Started by alifarahani, Today, 09:40 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by RookieTrader, Today, 09:37 AM
      4 responses
      18 views
      0 likes
      Last Post RookieTrader  
      Started by PaulMohn, Today, 12:36 PM
      0 responses
      6 views
      0 likes
      Last Post PaulMohn  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      40 views
      0 likes
      Last Post love2code2trade  
      Working...
      X