Accessing The Sounds Folder From Indicator - futures io
futures io



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 4,970 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 8 posts
    2. attach_file 3 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

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

 
Search this Thread
 

Accessing The Sounds Folder From Indicator

(login for full post details)
  #1 (permalink)
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
 
RJay's Avatar
 
Posts: 688 since Jun 2009
Thanks: 748 given, 781 received

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
The following user says Thank You to RJay for this post:

Can you help answer these questions
from other members on futures io?
Is there inherently more opportunity in smaller markets?
Traders Hideout
TradingView help in improving Anchored Vwap
Platforms and Indicators
MacdBB V402 NT804 + gradient + pullback not working on N …
NinjaTrader
Eurex Denali vs dxFeed
Sierra Chart
1 min chart v-shape scan help please
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
 cory 
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,059 since Jun 2009
Thanks: 858 given, 7,943 received


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

Reply With Quote
 
(login for full post details)
  #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: 54 given, 461 received


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
 
(login for full post details)
  #5 (permalink)
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
 
RJay's Avatar
 
Posts: 688 since Jun 2009
Thanks: 748 given, 781 received

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
 
(login for full post details)
  #6 (permalink)
 dmh24 
Denver, CO
 
Experience: Advanced
Platform: SierraChart
Broker: Optimus, Rithmic
Trading: ES
 
Posts: 67 since Sep 2011
Thanks: 6 given, 34 received

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
 
(login for full post details)
  #7 (permalink)
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
 
RJay's Avatar
 
Posts: 688 since Jun 2009
Thanks: 748 given, 781 received


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
 
(login for full post details)
  #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: 54 given, 461 received


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
 
(login for full post details)
  #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: 54 given, 461 received


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
Register to download File Type: zip t4tSoundManager_NT7.zip (990 Bytes, 117 views)
Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Accessing The Sounds Folder From Indicator


Last Updated on April 19, 2012


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

August
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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