NexusFi: Find Your Edge


Home Menu

 





Relative Volume Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 47 posts (253 thanks)
    2. looks_two soulartist with 13 posts (6 thanks)
    3. looks_3 Cachevary with 8 posts (0 thanks)
    4. looks_4 Big Mike with 5 posts (5 thanks)
      Best Posters
    1. looks_one Fat Tails with 5.4 thanks per post
    2. looks_two Silvester17 with 4 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 soulartist with 0.5 thanks per post
    1. trending_up 86,797 views
    2. thumb_up 278 thanks given
    3. group 50 followers
    1. forum 106 posts
    2. attach_file 15 attachments




 
Search this Thread

Relative Volume Indicator

  #71 (permalink)
 
Otterly's Avatar
 Otterly 
Zurich, Switzerland
 
Experience: Intermediate
Platform: Ninja, CTS, TOS
Trading: ES, TF, CL, NQ, GC
Posts: 131 since Aug 2011
Thanks Given: 251
Thanks Received: 62

I want to plot the average relative volume for an instrument inside the Market Analyzer.

At present I have the Daily Vol as one of the standard columns, this is great but I want to also to be able to plot the "average relative volume" alongside that, to see whether the volume at that particular time of day is below or above an average.

Will this relative volume indicator do that? I have added it to the columns, but at present it is simply displaying the instrument price, obviously I have something set wrong.

I would like to be able to plot what the average volume was, at that particular time of day, based on an average of the last 30 trading days, for instance.

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2014-07-18 at 4.13.56 AM.png
Views:	231
Size:	27.2 KB
ID:	151201  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Deepmoney LLM
Elite Quantitative GenAI/LLM
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
43 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #72 (permalink)
 
Otterly's Avatar
 Otterly 
Zurich, Switzerland
 
Experience: Intermediate
Platform: Ninja, CTS, TOS
Trading: ES, TF, CL, NQ, GC
Posts: 131 since Aug 2011
Thanks Given: 251
Thanks Received: 62


Otterly View Post
I want to plot the average relative volume for an instrument inside the Market Analyzer.

At present I have the Daily Vol as one of the standard columns, this is great but I want to also to be able to plot the "average relative volume" alongside that, to see whether the volume at that particular time of day is below or above an average.

Will this relative volume indicator do that? I have added it to the columns, but at present it is simply displaying the instrument price, obviously I have something set wrong.

I would like to be able to plot what the average volume was, at that particular time of day, based on an average of the last 30 trading days, for instance.


Hi all,

I was looking at this over the weekend and I am still struggling to get this to work 100%. The indicator inside this thread simply returns the instrument price, not the "relative volume"… I can't work out what that is. Can anyone help?

If anyone has other suggestions on how to get the exact "relative volume" I want, into the market analyser, i´d be grateful to hear from you.

Thank-you.

Reply With Quote
  #73 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527



Otterly View Post
Hi all,

I was looking at this over the weekend and I am still struggling to get this to work 100%. The indicator inside this thread simply returns the instrument price, not the "relative volume"… I can't work out what that is. Can anyone help?

If anyone has other suggestions on how to get the exact "relative volume" I want, into the market analyser, i´d be grateful to hear from you.

Thank-you.

@Otterly,

have to say I'm anything but an expert when it comes to market analyzer

but I believe the problem is your look back period being too short. attached is a ma template with relative volume. however maybe better to wait for an updated version of this indicator.


Attached Files
Elite Membership required to download: Otterly.xml
Reply With Quote
  #74 (permalink)
 
Otterly's Avatar
 Otterly 
Zurich, Switzerland
 
Experience: Intermediate
Platform: Ninja, CTS, TOS
Trading: ES, TF, CL, NQ, GC
Posts: 131 since Aug 2011
Thanks Given: 251
Thanks Received: 62


Silvester17 View Post
@Otterly,

have to say I'm anything but an expert when it comes to market analyzer

but I believe the problem is your look back period being too short. attached is a ma template with relative volume. however maybe better to wait for an updated version of this indicator.


You´re right. I had the lookback set at 500 candles, I assumed that would be more than enough… it wasn´t. I changed it to 1000 and the figures dropped in. Thank-you.

Reply With Quote
Thanked by:
  #75 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

I have updated the Relative Volume indicator. The update is a completely new indicator with a different design. The new design is by far more efficient and reduces CPU load. This is in particular true, if the calculations are performed over a longer lookback period.

Another issue that is now solved is the behaviour with different data feeds. Some datafeeds insert an artificial minute bar, if there is no transaction. Other simply do not plot a minute bar, so there may be only some 23 or 37 minute bars per hour during the early morning. In this case it is difficult to calculate an average from non existing bars. The old indicator could not cope with this situation and did not work correctly with all data feeds.

If there is no minute bar available for a specific period of the referenced day, there are two possible solutions that can be adopted. Either the volume can be set to zero for that period, or the period can be ignored and the average then be calculated from fewer or earlier bars. I have opted for the second solution, and this for two reasons. In the first place it avoids that the relative volume indicator shows huge peaks off-session which cannot be used for trade analysis. Secondly, if there is a period with zero volume, the indicator is not capable to determine whether the exchange was closed, or whether the exchange was open and no trade took place. Therefore it is best to eliminate these cases and not use them for the calculations.

With the new indicator I have introduced an option to calculate relative volume by

- comparison of today's volume with the average volume of the prior N business days (new option)
- comparison of today's volume with the average volume of the same day of the week over the prior N weeks (option already available with old version)

The cumulated relative volume of the day shows the degree of traders' participation and be used as a filter for discretionary and automated trading.


Summary

- new indicator is CPU efficient and calculates considerably faster than the old version
- indicator copes with different data feeds
- new option introduced to calculate relative volume
- indicator can be used as filter with automated strategies


The updated indicator can be found here:




Reply With Quote
  #76 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541

Notifications sent.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #77 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014


Fat Tails View Post
I have updated the Relative Volume indicator. The update is a completely new indicator with a different design. The new design is by far more efficient and reduces CPU load. This is in particular true, if the calculations are performed over a longer lookback period.

Another issue that is now solved is the behaviour with different data feeds. Some datafeeds insert an artificial minute bar, if there is no transaction. Other simply do not plot a minute bar, so there may be only some 23 or 37 minute bars per hour during the early morning. In this case it is difficult to calculate an average from non existing bars. The old indicator could not cope with this situation and did not work correctly with all data feeds.

If there is no minute bar available for a specific period of the referenced day, there are two possible solutions that can be adopted. Either the volume can be set to zero for that period, or the period can be ignored and the average then be calculated from fewer or earlier bars. I have opted for the second solution, and this for two reasons. In the first place it avoids that the relative volume indicator shows huge peaks off-session which cannot be used for trade analysis. Secondly, if there is a period with zero volume, the indicator is not capable to determine whether the exchange was closed, or whether the exchange was open and no trade took place. Therefore it is best to eliminate these cases and not use them for the calculations.

With the new indicator I have introduced an option to calculate relative volume by

- comparison of today's volume with the average volume of the prior N business days (new option)
- comparison of today's volume with the average volume of the same day of the week over the prior N weeks (option already available with old version)

The cumulated relative volume of the day shows the degree of traders' participation and be used as a filter for discretionary and automated trading.


Summary

- new indicator is CPU efficient and calculates considerably faster than the old version
- indicator copes with different data feeds
- new option introduced to calculate relative volume
- indicator can be used as filter with automated strategies


The updated indicator can be found here:




@Fat Tails,

Hi,how would you use it as a filter with automated strategies?

Reply With Quote
  #78 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Cachevary View Post
@Fat Tails,

Hi,how would you use it as a filter with automated strategies?

For example you could run a countertrend strategy when cumulated relative volume is low, but focus on breakout strategies when cumulated relative volume is above average.

Reply With Quote
Thanked by:
  #79 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014


Fat Tails View Post
For example you could run a countertrend strategy when cumulated relative volume is low, but focus on breakout strategies when cumulated relative volume is above average.

Kinda doing it right about now.As you can see in the attached,i don`t counter per se,but just buy/sell on the CumRatio dip below 100,but in the current VWAP direction.Main thing is in the execution, though.Still needs some improvement ,but feels promising.

Attached Thumbnails
Click image for larger version

Name:	CumRatioDnVAWPdirection.png
Views:	315
Size:	79.0 KB
ID:	168165  
Reply With Quote
  #80 (permalink)
 
Cachevary's Avatar
 Cachevary 
Russia,Khabarovsk
 
Experience: Beginner
Platform: NT
Trading: Gold
Posts: 407 since Feb 2014


@Fat Tails,

may i ask you,what the referenceVolume within the code means?What`s referring to?Is that the same logic used,that it is with IntradaySeasonality study(meaning the current High volume referres to the last peaking volume some arbitrary N period ago)?

Reply With Quote




Last Updated on March 25, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts