Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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?
Can you help answer these questions from other members on NexusFi?
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.
Windows has text to speech capability that can be used by NinjaTrader. That means that instead of having a bunch of indicators that play back humorous but meaningless and confusing .wav files, your indicators can recite text that can be controlled programatically …
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.
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 .