NexusFi: Find Your Edge


Home Menu

 





Better Volume Indicator with Sound Alerts


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 81 posts (297 thanks)
    2. looks_two rcabri with 8 posts (3 thanks)
    3. looks_3 sudhirc with 8 posts (3 thanks)
    4. looks_4 danjuma with 8 posts (0 thanks)
      Best Posters
    1. looks_one Zondor with 7.3 thanks per post
    2. looks_two l1onel with 4.5 thanks per post
    3. looks_3 Fat Tails with 3.7 thanks per post
    4. looks_4 Big Mike with 0.8 thanks per post
    1. trending_up 116,883 views
    2. thumb_up 364 thanks given
    3. group 82 followers
    1. forum 218 posts
    2. attach_file 49 attachments




 
Search this Thread

Better Volume Indicator with Sound Alerts

  #171 (permalink)
 jmont1 
New York, NY
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,394 since May 2011
Thanks Given: 1,719
Thanks Received: 1,019


Fat Tails View Post
Have posted the indicator in the download section. Please let me know any observations.

Fat Tails, may I request you post the sound files referenced in the indicator.

Also, is there a possibility to add a volume filter? Would think filtering out the very low contract size of say 3 contracts would eliminate most of the "uninformed investors." Not sure how that would impact the analysis being done but would like to test it.

THANKS FOR ALL YOU DO!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
Deepmoney LLM
Elite Quantitative GenAI/LLM
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #172 (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


jmont1 View Post
Fat Tails, may I request you post the sound files referenced in the indicator.

Also, is there a possibility to add a volume filter? Would think filtering out the very low contract size of say 3 contracts would eliminate most of the "uninformed investors." Not sure how that would impact the analysis being done but would like to test it.

THANKS FOR ALL YOU DO!


I do not have plans for a volume filter right now.

I will possibly add sound alert files later, but in the meantime you may use the indicator with your own sound files. Just select them via the indicator dialogue box.

Started this thread Reply With Quote
Thanked by:
  #173 (permalink)
 emun 
prague, czech republic
 
Experience: Advanced
Platform: NinjaTrader
Trading: NQ
Posts: 165 since May 2012
Thanks Given: 49
Thanks Received: 74



Fat Tails View Post
Have posted the indicator in the download section.



Please let me know any observations.

Hello Fat Tails,

thank you for the great indicator. Just one question - is there a way how to call this indicator? I mean something like: if CurrentBar is ClimaxBar than do something. It would be very useful with working with it further.


Thanks again,
emun

Reply With Quote
  #174 (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


emun View Post
Hello Fat Tails,

thank you for the great indicator. Just one question - is there a way how to call this indicator? I mean something like: if CurrentBar is ClimaxBar than do something. It would be very useful with working with it further.


Thanks again,
emun

Of course you may call it. It comes with a public Series<double> "BarType" that can be accessed by an indicator or a strategy. When you first do so, please use the indicator with the default settings. As long as you set the volume type to amaBetterVolumeType.Absolute_Volume, it only requires a few bars, before returning any results.

However, with volume type set to amaBetterVolumeType.Relative_Volume, it will not return any values for the first 8 weeks on your chart. This is because the relative volume is calculated by comparing today's volume to the average volume of the prior 8 weeks.

This means that when running a strategy that uses this indicator with relative volume, you would need to let the strategy run for 8 weeks without taking any positions. Only when the indicator starts returning values, you may use the signals. In order to check whether the indicator returns a signal you would use the inbuilt NinjaScript method "IsValidDataPoint". Here is a piece of a sample code you may use to check whether the current bar is a strong climax bar (not tested).

 
Code
if(amaBetterVolume.IsValidDataPoint(0) && amaBetterVolume[0].BarType == 1) 
{
   // The current bar is a strong climax bar.
   // Do something here.
}

The values for the bar types are the same as used for the market analyzer columns, also see description in the download section:

strong climax churn bar = 0
strong climax bar = 1
strong churn bar = 2
weak climax churn bar = 3
weak climax bar = 4
weak churn bar = 5
low volume bar = 6
upclose no signal bar = 7
downclose no signal bar = 8
doji no signal bar = 9

Started this thread Reply With Quote
Thanked by:
  #175 (permalink)
 rickr 
Waynesville, NC USA
 
Experience: Intermediate
Platform: NT8 & Jigsaw
Broker: NT Clearing
Trading: NQ, ES
Posts: 111 since Mar 2010
Thanks Given: 4,120
Thanks Received: 73

@Fat Tails

Attached please find pic of two charts side by side . . .

The chart on left is 1M and prints Y-close from 9/7 Fri at 2874.75

the char on the right is 20S and prints Y-close from 9/6 at 2879.00

Both charts are ETH and Floor Trader Pivots and Daily Bars.

I reloaded all historical data on both charts but the discrepancy did not go away.

Today from yesterday's (Mon) data the charts are in agreement . . .

Thank you again for your great indys . . .

rickr
Attached Thumbnails
Click image for larger version

Name:	Fat Tails Daily Pivots Discrepancy.png
Views:	252
Size:	52.0 KB
ID:	255147  
Follow me on Twitter Reply With Quote
  #176 (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


rickr View Post
@Fat Tails

Attached please find pic of two charts side by side . . .

The chart on left is 1M and prints Y-close from 9/7 Fri at 2874.75

the char on the right is 20S and prints Y-close from 9/6 at 2879.00

Both charts are ETH and Floor Trader Pivots and Daily Bars.

I reloaded all historical data on both charts but the discrepancy did not go away.

Today from yesterday's (Mon) data the charts are in agreement . . .

Thank you again for your great indys . . .


Pretty easy to fix.

Your 1-minute chart displays the pivots correctly. Your 20-second chart does not.

In fact the 20-second chart calculates Monday's pivots from Thursday's data.

This points to a large data gap on your 20-second chart for Friday.

Please reload all historical data for your 20-second chart, and the issue should be fixed.

Not related to the indicator.

Started this thread Reply With Quote
Thanked by:
  #177 (permalink)
 
sudhirc's Avatar
 sudhirc 
detroit,mi
sc
 
Experience: Intermediate
Platform: NT
Broker: NT
Trading: ES
Frequency: Every few months
Duration: Hours
Posts: 417 since Sep 2011
Thanks Given: 1,709
Thanks Received: 471

@Fat Tails

Thank you Sir, great indicator....

Regarding Alerts, I can see them printed in my Alert Log, however i don't hear the sound (.wav File).
I have my sound files at C:\Program Files (x86)\NinjaTrader 8\sounds. I typed the name of the .wav file and i also tried the putting then name inside " .wav" still doesn't seem to work either.

Is anyone having issues or is it just me..

Thank you,
Sudhir

I have a few sound files if any one is interested...

Attached Thumbnails
Click image for larger version

Name:	sound files.JPG
Views:	171
Size:	26.7 KB
ID:	255181  
Attached Files
Elite Membership required to download: Sounds.zip
Reply With Quote
Thanked by:
  #178 (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


sudhirc View Post
@Fat Tails

Thank you Sir, great indicator....

Regarding Alerts, I can see them printed in my Alert Log, however i don't hear the sound (.wav File).
I have my sound files at C:\Program Files (x86)\NinjaTrader 8\sounds. I typed the name of the .wav file and i also tried the putting then name inside " .wav" still doesn't seem to work either.

Is anyone having issues or is it just me..

Thank you,
Sudhir

I have a few sound files if any one is interested...


Sudhir,


Thank you for your feedback.

The sound files did not fire because I had forgotten to initialize the path pointing to the sounds directory of NinjaTrader 8.

I have now updated the indicator, and the sound alerts should work as intended.



Started this thread Reply With Quote
  #179 (permalink)
 
sudhirc's Avatar
 sudhirc 
detroit,mi
sc
 
Experience: Intermediate
Platform: NT
Broker: NT
Trading: ES
Frequency: Every few months
Duration: Hours
Posts: 417 since Sep 2011
Thanks Given: 1,709
Thanks Received: 471

Hello, @Fat Tails

I have this indicator on all my minute charts (5/15/60) and three markets (ES, CL & GC) and i'm most interested in getting alerts when i get a churn bar and a climatic bar on any of these charts. In all, i have 9 charts. Basically i have three tabs for each market and what i noticed is that the tab that is on top i get the signals without any issues, but the tabs that are on back ground i don't seem to be getting the alerts in real time..

i.e suppose if 5 min tab is the viewing it has no problem in issuing a signal in real time (which i see in my Alert Log screen), but if won't issue the alert signal in real time on 15 & 60 min and it seem to trigger the alert only when i move over to that tab at a later time i.e. a churn bar could have formed say at 9:45 but since the tab is in the background it wont alert in real time, only when i clicked that tab and bring it to my viewing screen at 9:55, it will alert with a churn signal.

i think this is an NT8 Issue, do any one notice the same issues?

Any one using Alerts in Market Analyzer? if so, can you guys help me with real time alerts.


Thank you,
Sudhir.

Reply With Quote
  #180 (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



sudhirc View Post
Hello, @Fat Tails

I have this indicator on all my minute charts (5/15/60) and three markets (ES, CL & GC) and i'm most interested in getting alerts when i get a churn bar and a climatic bar on any of these charts. In all, i have 9 charts. Basically i have three tabs for each market and what i noticed is that the tab that is on top i get the signals without any issues, but the tabs that are on back ground i don't seem to be getting the alerts in real time..

i.e suppose if 5 min tab is the viewing it has no problem in issuing a signal in real time (which i see in my Alert Log screen), but if won't issue the alert signal in real time on 15 & 60 min and it seem to trigger the alert only when i move over to that tab at a later time i.e. a churn bar could have formed say at 9:45 but since the tab is in the background it wont alert in real time, only when i clicked that tab and bring it to my viewing screen at 9:55, it will alert with a churn signal.

i think this is an NT8 Issue, do any one notice the same issues?

Any one using Alerts in Market Analyzer? if so, can you guys help me with real time alerts.


Thank you,
Sudhir.


Hi Sudhir,


Thank you for coming up with this question.


To fix this issue please edit the indicator and change line 193 to
 
Code
IsSuspendenWhileInactive = false;

then compile via F5.

The setting "IsSuspendenWhileInactive = true" is a default setting for all indicators that ship with NinjaTrader 8, because it reduces CPU load when inactive charts are not being recalculated for every incoming tick. Obviously, when using indicators with sound alerts, you also want to have them calculated for inactive charts.

I have already changed all of my indicators with sound alerts to work with inactive charts, but not had the time yet to do all the required updates in the download section and indicator library.

Started this thread Reply With Quote
Thanked by:




Last Updated on October 12, 2022


© 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