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 burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      13 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X