Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Execute a script instead of a sound file
Collapse
X
-
Execute a script instead of a sound file
I have a closed-source-code indicator which can play sound files when triggered. Is there a way to make NT7 run another indicator ( which I have the source-code to and which can run text-to-speech ) instead of the static sound-file? Or any other trick I can try to make this work? Maybe alter the mime-type of .wav files? -
Yes, but not what I'm after. I'll explain the problem, but I suspect this isn't really going to be possible. The closed-source indicator, plays a .wav file, but I have that indicator on several charts and in the Market Analyser several times. So when it says "Trade Setup Found" , it takes a while to figure-out where. So, I was hoping that instead of pointing it to a static .wav file, I could point it to a script that looks like a .wav, but actually generates the sound dynamically so it would say " Trade Setup found on 5 minute chart" .
Say(" Trade setup found on "+ BarsPeriod.Value.ToString("0") + " " + BarsPeriod.Id + "chart.");
As it is, I would need to create a .wav file specifically for each instance of the indicator, and if I happen to change the timeframe of the chart, the .wav file would be incorrect again.
Comment
-
Hello vlc,
I do not believe there is an easy trick to make this work. The only possibility I see would be for you to run your other indicator before applying the closed-source indicator to the chart. You would have to adjust your indicator's code so that on startup it checks the sounds folder that the closed-source indicator uses (preferably not the NinjaTrader sounds folder if you have the ability to change the location) for a txt file which contains information on what kind of chart the current sounds are configured for. If the file does not exist or lets the indicator know that the sounds are configured for a different chart, it would need to generate new .wav files and replace them as well as generate or update the txt file. Then when the closed-source indicator requested a sound file, it would retrieve the correctly-generated .wav file for the current chart.
It is possible I am misunderstanding the situation however. If you believe this is the case, please provide additional information so I can investigate further.
Thank you in advance.Michael M.NinjaTrader Quality Assurance
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
6 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
41 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
Comment