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,072 / 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 90,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

Reply
 
Thread Tools Search this Thread
 

Adding sound files to indicator

  #1 (permalink)
Just starting out...
Panama
 
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 !

Gilbert.


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 DoubleMAPaint_SharkyPkg.zip (43.6 KB, 31 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, 389 received

I've never tried hardcoding the sound file; try this approach: https://futures.io/programmers-paradise/960-how-code-sound-alert.html#post10739

Reply With Quote
 
  #3 (permalink)
 Vendor: www.tradingstudies.com 
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, 272 received


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

Try:

PlaySound("long.wav");

Reply With Quote

Reply



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

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

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


All times are GMT -4. The time now is 12:54 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-11 in 0.17 seconds with 20 queries on phoenix via your IP 107.20.115.174