Adding sound files to indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading

Adding sound files to indicator
Updated: Views / Replies:3,378 / 2
Created: by desander Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Adding sound files to indicator

  #1 (permalink)
Just starting out...
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: FXCM - Gain
Favorite Futures: forex
Posts: 4 since Oct 2009
Thanks: 1 given, 0 received

Adding sound files to indicator

Hello Mike,

I downloaded two sound files (long.wav and short.wav) to C:\Program Files\NinjaTrader 6.5\sounds
and included them in my existing indicator.
(see extract hereunder)
Then i clicked on "compile" and closed the edit-window.

Now the sounds are not playing when the conditions are met ?
What did i do wrong ?
Programming fault ?

The indicator is attached.

PS. Please detailed instructions, i am not a programmer !


double val = Low[bar+1] - ( TickSize * ArrowDisplacement );
DrawArrowUp(CurrentBar.ToString(),1, val , barColorUp );
//data[ data.Count - 1] = val * -1;
//setData( data, bar, val * -1 );
if (soundon && FirstTickOfBar){
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\long.wav");
//else if( lastDirection > direction )
else if (Signal[0] == -1 && Signal[1] != -1)
double val = High[bar+1] + ( TickSize * ArrowDisplacement );
DrawArrowDown(CurrentBar.ToString(),1, val, barColorDown );
if (soundon && FirstTickOfBar){
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\short.wav");

Attached Thumbnails
Adding sound files to indicator-sound_files.png  
Attached Files
Register to download File Type: zip (43.6 KB, 32 views)
Reply With Quote
  #2 (permalink)
Elite Member
Arcata, CA
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
Saroj's Avatar
Posts: 482 since Jun 2009
Thanks: 223 given, 390 received

I've never tried hardcoding the sound file; try this approach:

Reply With Quote
  #3 (permalink)
Denver, CO
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: TF, ES, CL
roonius's Avatar
Posts: 132 since Jun 2009
Thanks: 20 given, 277 received

PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\long.wav");



Reply With Quote


futures io > > > > > Adding sound files to indicator

Upcoming Webinars and Events (4:30PM ET unless noted)

September Journal Challenge (sponsored by TopstepTrader)


Battlestations! Win $947 in prizes for showing us your trading desk!


Finding Your Edge & Maximizing Returns w/Richard L Weissman

Oct 16

Similar Threads
Thread Thread Starter Forum Replies Last Post
Better Volume Indicator with Sound Alerts Fat Tails NinjaTrader 177 September 12th, 2018 09:59 AM
[Other]       Sound files Saroj Platforms and Indicators 19 December 23rd, 2015 03:09 AM
line breaking indicator with sound wanted ronan2505 NinjaTrader 6 June 5th, 2013 12:12 PM
help needed adding audio files vipuljparmar NinjaTrader Programming 2 November 12th, 2010 04:43 PM

All times are GMT -4. The time now is 06:22 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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.
no new posts
Page generated 2018-10-16 in 0.11 seconds with 15 queries on phoenix