Adding sound files to indicator - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Adding sound files to indicator
Started:November 10th, 2009 (12:59 AM) by desander Views / Replies:2,653 / 2
Last Reply:November 16th, 2009 (12:17 PM) Attachments:2

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Adding sound files to indicator

Old November 10th, 2009, 12:59 AM   #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, 30 views)
Reply With Quote

Old November 16th, 2009, 12:17 PM   #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, 265 received

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



Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Adding sound files to indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other]       Sound files Saroj Platforms and Indicators 19 December 23rd, 2015 03:09 AM
Better Volume Indicator with Sound Alerts Fat Tails NinjaTrader 152 October 17th, 2015 01:32 PM
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 01:36 AM.

Copyright © 2016 by 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 2016-10-22 in 0.08 seconds with 20 queries on phoenix via your IP