NexusFi: Find Your Edge


Home Menu

 





Accessing The Sounds Folder From Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one RJay with 3 posts (1 thanks)
    2. looks_two TimeTrade with 3 posts (0 thanks)
    3. looks_3 cory with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 6,574 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 8 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 Vendor: www.innovative-trading-solutions-online.com 
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: ES
Posts: 687 since Jun 2009
Thanks Given: 765
Thanks Received: 789

Hi All,

Does anyone have a working code snippet or indicator that shows how to access the sounds folder listing of wav files as a dropdown in the Indicator options menu?

Thanks,

RJay


Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Ceasefire in Name Only: Three Numbers That Define the Ir …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Prop Firms Are Banning Gold Trading as Record Prices Mak …
Funded Trading Evaluation Firms
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


ninja says use enum? Play Sound Variable - NinjaTrader Support Forum


Reply With Quote
  #4 (permalink)
 TimeTrade 
Erfurt Germany
 
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks Given: 54
Thanks Received: 461


RJay View Post
Hi All,

Does anyone have a working code snippet or indicator that shows how to access the sounds folder listing of wav files as a dropdown in the Indicator options menu?

Thanks,

RJay

The sound file list self is simple, the dynamic runtime filled property is a little bit tricky
- use any way to find the ninja install directory
- search in the sounds path all *.wav to a string list, array, collection,...
- now create a dynamic property with a own C# TypeConverter...
- use gomi's recorder and DataManagerNinjaBridge as sample for your own SoundManagerNinjaBridge
- in your indicator add the new converter as [...] statement over your string property and test it
- the indicator dialog shows now a readonly string field with a drop down arrow for open a droplist filled with all sound files and the user can very simple select one file


Reply With Quote
  #5 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 Vendor: www.innovative-trading-solutions-online.com 
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: ES
Posts: 687 since Jun 2009
Thanks Given: 765
Thanks Received: 789

Thanks for the responses.

I need the NT internal call coding that they use in Strategy Analyser. the coding already there inside NT. I just want access to it to call it as an option in an indicator.

I am contacting NT to see if they will share.

RJay


Started this thread Reply With Quote
  #6 (permalink)
 dmh24 
Denver, CO
 
Experience: Advanced
Platform: SierraChart
Broker: Optimus, Rithmic
Trading: ES
Posts: 67 since Sep 2011
Thanks Given: 6
Thanks Received: 34

Just use an enum property in your indicator as mentioned then do
if (Sound == MySounds.Alert1)
new System.Media.SoundPlayer(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert1.wav").Play();

or such for handling each one


Reply With Quote
  #7 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 Vendor: www.innovative-trading-solutions-online.com 
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: ES
Posts: 687 since Jun 2009
Thanks Given: 765
Thanks Received: 789


dmh24 View Post
Just use an enum property in your indicator as mentioned then do
if (Sound == MySounds.Alert1)
new System.Media.SoundPlayer(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert1.wav").Play();

or such for handling each one

Hi dmh24,

Thanks for your response. The idea that I was hoping for would be that any wav files in the proper folder would become available. Including any custom wav files created or from other custom indicators.

RJay


Started this thread Reply With Quote
  #8 (permalink)
 TimeTrade 
Erfurt Germany
 
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks Given: 54
Thanks Received: 461


RJay View Post
Hi dmh24,

Thanks for your response. The idea that I was hoping for would be that any wav files in the proper folder would become available. Including any custom wav files created or from other custom indicators.

RJay

In remember... use the way of gomi's dynamic filled InterfaceList or my own solution as simple SymbolSelection per DropDownListProperty runtime filled with all ninja symbols.

You must only fill a string collection with all (sound) file names from the NT7 sound directory. The content of this list you can dynamic add to your property version... this is all and no very magic work ...


Reply With Quote
  #9 (permalink)
 TimeTrade 
Erfurt Germany
 
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks Given: 54
Thanks Received: 461


RJay View Post
Hi dmh24,

Thanks for your response. The idea that I was hoping for would be that any wav files in the proper folder would become available. Including any custom wav files created or from other custom indicators.

RJay

@RJay


->Under this link you find my with Fat Tails indicators tested simple version to grab any NT7 soundfiles to a list and use this as property for indicators/strategies.

Its source code, no free code! If you use this as vendor in your commercial tools, you must add a web link to my site in your tool and any doc for using this feature!


Attached Files
Elite Membership required to download: t4tSoundManager_NT7.zip
Reply With Quote




Last Updated on April 19, 2012


© 2026 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 - Downloads - Top
no new posts