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




 
Search this Thread

Accessing The Sounds Folder From Indicator

  #1 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787

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?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


ninja says use enum? Play Sound Variable - [AUTOLINK]NinjaTrader[/AUTOLINK] 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
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787

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
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts