Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Average Volume indicator

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

    Average Volume indicator

    Hi,

    Does anybody know of an indicator, that displays the volume of the current bar compared to an average volume of that same bar of the last e.g. five days?
    There probably will be divergences, if there is a holiday or roll-over.

    Thanks

    Thomas

    #2
    Hello td_910,

    Thanks for your post.

    I am not aware of an existing indicator that would pull and average the volume of a bar at a time over the last n days.

    If you wanted to create this yourself, we would suggest using Bars.GetBar(): https://ninjatrader.com/support/help...t8/?getbar.htm which would return the first bar number that matches the date/time specified. Using the bar number you could then subtract that from the current bar to provide a barsago value that you could use in Volume[]. Using a for loop you could increment the day to get bar from each of the previous n days.





    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Many Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ETFVoyageur, Today, 05:50 AM
      0 responses
      5 views
      0 likes
      Last Post ETFVoyageur  
      Started by DawnTreader, 05-08-2024, 05:58 PM
      17 responses
      63 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by ttrader23, 05-08-2024, 09:04 AM
      10 responses
      48 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by agclub, 04-21-2024, 08:57 PM
      6 responses
      41 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by thumper57, 05-11-2024, 04:30 PM
      9 responses
      28 views
      0 likes
      Last Post thumper57  
      Working...
      X