NexusFi: Find Your Edge


Home Menu

 





Using different wav files


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one meyer99 with 4 posts (0 thanks)
    2. looks_two sam028 with 2 posts (4 thanks)
    3. looks_3 Fat Tails with 2 posts (6 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 3 thanks per post
    2. looks_two sam028 with 2 thanks per post
    3. looks_3 MXASJ with 2 thanks per post
    4. looks_4 bukkan with 1 thanks per post
    1. trending_up 11,578 views
    2. thumb_up 13 thanks given
    3. group 6 followers
    1. forum 12 posts
    2. attach_file 3 attachments




 
Search this Thread

Using different wav files

  #1 (permalink)
 meyer99 
Charlotte NC
 
Experience: Advanced
Platform: Charts:TOS, execution:TOS
Broker: TOS
Trading: SPX, RUT. TQQQ, Stocks, /YM
Posts: 234 since Jul 2009
Thanks Given: 99
Thanks Received: 122

I am using the label ray line alerts indicator. The alert4.wav is coded in the script. Is there a way to change the wav so that I can use different sounds for different contracts?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (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,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,602


Your would need to change the indicator code to append the instrument name to the end of the wav file, for instance.

Post the code and someone can do it most likely.

Sent via tapatalk on my DROID X

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
  #4 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


meyer99 View Post
I am using the label ray line alerts indicator. The alert4.wav is coded in the script. Is there a way to change the wav so that I can use different sounds for different contracts?

you can use System.Speech of the .net framework. there has been works in these lines here at nexusfi.com (formerly BMT). search a bit you will get a solution.

edit: see this thread

Reply With Quote
Thanked by:
  #5 (permalink)
 meyer99 
Charlotte NC
 
Experience: Advanced
Platform: Charts:TOS, execution:TOS
Broker: TOS
Trading: SPX, RUT. TQQQ, Stocks, /YM
Posts: 234 since Jul 2009
Thanks Given: 99
Thanks Received: 122

Mike,
Here is the code.

Attached Files
Elite Membership required to download: LabelRayLineAlerts (1).zip
Started this thread Reply With Quote
  #6 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

I don't know what this indicator is doing, but just change alertFileName value in OnBarUpdate():

 
Code
                            
...

        
/// </summary>
        
protected override void OnBarUpdate()
        {
            
int j ;
            
String beginMessage Instrument.FullName " - Ray Line Price Triggered on " ;

            
alertFileName=Instrument.MasterInstrument.Name.ToString()+".wav";
    
            
            
// Determine the Period Value
            
switch ( BarsPeriod.Id )
... 
and create one .wav for each instrument (TF.wav, YM.wav, ...).
Not tested.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #7 (permalink)
 meyer99 
Charlotte NC
 
Experience: Advanced
Platform: Charts:TOS, execution:TOS
Broker: TOS
Trading: SPX, RUT. TQQQ, Stocks, /YM
Posts: 234 since Jul 2009
Thanks Given: 99
Thanks Received: 122

Sam,
Thank you. I have no experience writing code.
So were it says ".wav" I replace it with YM.wav? Where do I put the sound file named YM?

What about the other section in red and in " "? Do I need to replace that with anything?

Started this thread Reply With Quote
  #8 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

With NT7 (not sure about 6.5) it will look for unqualified wav files in the default sounds directory, which is c:\\Program Files\Ninja Trader 7\Sounds.

So you can use "*.wav" in that code where * indicates the actual file name.

If your wav files are somewhere else, you would need to add the whole path.

If you want to play around first, custom sound file triple_klaxon.wav is attached. Copy it to the directory mentioned above and then substitute the filename "triple_klaxon.wav" in your indicator to see how it works.

As you become more comfortable with using custom wav files, Google "ATT Text To Speech" to generate fixed, spoken phrases, and "Audicity" to edit wav files. The second attachment was generated by the ATT app and is a good example of a fixed, spoken phrase. Download them and play them with Windows Media Player to hear what they sound like.

You can also overwrite the defaults to enhance the user experience.

Attached Files
Elite Membership required to download: audrey_data_delay.zip
Elite Membership required to download: triple_klaxon.zip
Reply With Quote
Thanked by:
  #9 (permalink)
 meyer99 
Charlotte NC
 
Experience: Advanced
Platform: Charts:TOS, execution:TOS
Broker: TOS
Trading: SPX, RUT. TQQQ, Stocks, /YM
Posts: 234 since Jul 2009
Thanks Given: 99
Thanks Received: 122

Thank you. I was going to use ATT sounds. I just need to make sure now that I do not ruin the code. So all is needed is to add the wav name. Nothing else to change on code?

Started this thread Reply With Quote
  #10 (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



meyer99 View Post
Thank you. I was going to use ATT sounds. I just need to make sure now that I do not ruin the code. So all is needed is to add the wav name. Nothing else to change on code?

I have installed that file now. Essentially you do not need to do any thing, because you can select the wave file via indicator dialogue. If you apply that indicator to an ES chart, simply type the name of the sound file that you want to use. For 6E just type in the name of another soundfile.

Ninjatrader 7.0 cannot handle all types of .wav files, MPEG format needs to be converted to PCM with an audio recorder. There is no similar problem with NinjaTrader 6.5 .

Reply With Quote




Last Updated on October 26, 2010


© 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