NexusFi: Find Your Edge


Home Menu

 





Let's Teach NinjaTrader how to talk


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Zondor with 13 posts (22 thanks)
    2. looks_two ZTR with 4 posts (6 thanks)
    3. looks_3 LukeGeniol with 3 posts (0 thanks)
    4. looks_4 samWest with 3 posts (1 thanks)
      Best Posters
    1. looks_one Fat Tails with 3 thanks per post
    2. looks_two sam028 with 2 thanks per post
    3. looks_3 Zondor with 1.7 thanks per post
    4. looks_4 ZTR with 1.5 thanks per post
    1. trending_up 21,681 views
    2. thumb_up 46 thanks given
    3. group 23 followers
    1. forum 45 posts
    2. attach_file 8 attachments




 
Search this Thread

Let's Teach NinjaTrader how to talk

  #31 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

I don't exactly remember what Gomi's suggested fix was, but I tried it and it didn't work. You can use a Sync rather than Async call to the Speaker. THAT will make sure that only one talks at a time, but prevents ANYTHING else from happenng when the indicator is talking... Ninjatrader locks up until the speech ends. That can be very dangerous.

So the best approach is to use Async calls, keep the messages short, not apply speech to a lot of different charts, etc. Very important that talkng indicators don't talk too much, for example not more than once per bar.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #32 (permalink)
 samWest 
Houston, Texas
 
Experience: Advanced
Platform: NinjaTrader
Posts: 25 since Oct 2010
Thanks Given: 2
Thanks Received: 19

Thanks Zondor. I was hoping someone would come up with some sort of global sequential queue.

This could for example be a stand alone exe that each indicator would "talk" to. Each indicator could just send a string and perhaps voice request to the exe which could coordinate a sequential playing of each request. I think I could do this with my indicators and a stand alone C# program, but unfortunately, the stock Ninjatrader audio events can still overtalk (block) my audio events. It would nice if we could somehow "see/access" the Ninjatrader audio events to help synchronize them with our audio events.

Reply With Quote
  #33 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731


Maybe the key to solving the problem of talking at the same time has something to do with static and global variables.

C# Global Variable

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #34 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

I tried again to use Microsoft Speech Synthesis, but I am not convinced by the results.

That voice of Microsoft Sam (not to be confused with @ sam028) is awful.

It possibly uses too much of the CPU to create a voice each time an alert is triggered.

So I decided to stay with the more conventional way of producing alerts. Just create a sound file and store it for access by an indicator or strategy.


For some time I have been enjoying the services of Crystal from AT&T. She was always there when I needed her.

AT&T Natural Voices Text-to-Speech Demo

But she is a professional girl, and some restrictions apply, so I looked around for new fancy Markov models.


I finally installed Madam Mary on my desktop, she also has a number of foreign girls available, speaking some fancy languages other than English.

You can use Telugu (a Dravidian language), if your stop loss is hit, that message sound less offensive than the cruel reality in plain English. And as you do not understand it anyhow, you can also elect to ignore it.

Mary offers here free services under a public license. Here comes her address:

The MARY Text-to-Speech System — MARY Text-to-Speech

I tried some of her girls. Result below. I am not really happy with their behaviour. I feel that they love to make fun of me, as I am not paying enough to keep them happy. Have recorded them, allowing you to have your own second thoughts.

I still look for a date with a pretty and serious Markov model. If anyone has a recommendation, I am waiting.

Attached Files
Elite Membership required to download: Samples.zip
Reply With Quote
  #35 (permalink)
 YellowTrader 
Los Gatos , CA
 
Experience: Advanced
Platform: NT7
Broker: IB/Esignal
Trading: ES
Posts: 3 since May 2010
Thanks Given: 0
Thanks Received: 1

First I like to thank Zondor and the rest of the crew for this great post . Eventhough I joined the party late but an idea just occurred to me regarding how this feature can be used to make life easier for some day traders out there.
If an indicator could be made to announce the last trading price of a security based on a fixed time interval (like every 15 seconds) or announce the closing price of the current bar then some of us don't have to be glued to our monitors to see visually where the price is at. This will provide some freedom so we can step away from the computer even when we have positions and be aware of the current price audibly via say wireless headphones.
Unfortunately I am not a programmer to do this but hope one of you guys out there can tackle this project.

Reply With Quote
  #36 (permalink)
 Mhaus 
Austin, TX
 
Experience: Beginner
Platform: NinjaTrader, TOS
Trading: Stocks
Posts: 9 since Sep 2011
Thanks Given: 2
Thanks Received: 0

I downloaded this indicator and imported it in Ninja. I am using Windows 7 (64 bit) with Microsoft Net 4.0. I can compile the indicator but when I load it I get this error message in the log
"Error on calling 'OnStartUp' method for indicator 'SMACrossOverSpeech': Could not load file or assembly 'System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."
And
"Error on calling 'OnTermination' method for indicator 'SMACrossOverSpeech': Could not load file or assembly 'System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

I added the reference to the System.Speech.dll. See attached picture.

Can someone help me with this error?

Thanks.

Attached Thumbnails
Click image for larger version

Name:	Reference.jpg
Views:	254
Size:	57.6 KB
ID:	79863  
Reply With Quote
  #37 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Mhaus View Post
I downloaded this indicator and imported it in Ninja. I am using Windows 7 (64 bit) with Microsoft Net 4.0. I can compile the indicator but when I load it I get this error message in the log
"Error on calling 'OnStartUp' method for indicator 'SMACrossOverSpeech': Could not load file or assembly 'System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."
And
"Error on calling 'OnTermination' method for indicator 'SMACrossOverSpeech': Could not load file or assembly 'System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

I added the reference to the System.Speech.dll. See attached picture.

Can someone help me with this error?

Thanks.

As far as I know NinjaTrader 7 is not compatible with .Net 4.0. Maybe you should try .Net 3.5. But this is just a guess.

Reply With Quote
Thanked by:
  #38 (permalink)
 Mhaus 
Austin, TX
 
Experience: Beginner
Platform: NinjaTrader, TOS
Trading: Stocks
Posts: 9 since Sep 2011
Thanks Given: 2
Thanks Received: 0


Fat Tails View Post
As far as I know NinjaTrader 7 is not compatible with .Net 4.0. Maybe you should try .Net 3.5. But this is just a guess.

Thanks! I will try it with Net 3.5

Reply With Quote
  #39 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353

Can you select a different voice than the standard one included from Microsoft?

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #40 (permalink)
 Mhaus 
Austin, TX
 
Experience: Beginner
Platform: NinjaTrader, TOS
Trading: Stocks
Posts: 9 since Sep 2011
Thanks Given: 2
Thanks Received: 0



Fat Tails View Post
As far as I know NinjaTrader 7 is not compatible with .Net 4.0. Maybe you should try .Net 3.5. But this is just a guess.

That was exactly the problem. After I got rid off .NET 4, it worked like a charm!

Thanks!!!

Reply With Quote




Last Updated on May 15, 2016


© 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