Voice commands for Ninja revisited - NinjaTrader Programming | futures io social day trading
futures io futures trading


Voice commands for Ninja revisited
Updated: Views / Replies:367 / 4
Created: by vantojo Attachments:2

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Voice commands for Ninja revisited

  #1 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

Voice commands for Ninja revisited

Ok, guys, I have been able to get an indicator to process voice commands. I've attached the cs file because I have a lot of references for other stuff on my system that probably would stop a zip import on your system.

possibly you might need to install the .NET speech recognition references on your system. At the moment, I don't remember how I did that...

It seems there are just two problems remaining. there are print commands to trace what is happening.

1) the indicator will process the voice command only once. then I have to reload the indicator before it will listen again

2) the indicator is actively listening even if the chart it is on is not in focus....it needs to only listen when the panel/chart it is on is in focus so that it does not process commands when the user is not looking at the chart

Well, if anyone knows how to solve these two items, it seems those of us who want to talk to Ninja instead of having our hand on the mouse, this is one step closer.

A00VoiceCommand.cs

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

progress :-)


I found one solution....this is working to keep it listening

private void RecognizeCompleted(object sender, RecognizeCompletedEventArgs e)
{
listener.RecognizeAsync();
Print (" Completed");
}

now I need to find a way to know when the chart is active .... then I will try to start and stop the listener thread. I'll start the thread when the chart has focus and stop it when the chart looses focus...but so far I'm not having luck with the GOTFOCUS and LOSTFOCUS events for ChartControl.

Reply With Quote
 
  #4 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

focus

ok, this is giving me the change in focus

ChartControl.ChartPanel.GotFocus += new EventHandler (ThisGotFocus);
ChartControl.ChartPanel.LostFocus += new EventHandler (ThisLostFocus);

but, now I'm not sure about starting a Thread (for the voice recognition) inside Ninja, if it is going to cause problems.

Because it seems when I press F5 (to reload the indicator) the existing thread is not terminated and a duplicate is started...not sure but it seems to be this way, and if so this is going to cause problems.

perhaps a C# guru will know.

Thank you.

Reply With Quote
 
  #5 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

success....

Ok, it is now working the way I want...

(.cs attached)

this is skeleton code for command processing...not a finished product...for other coders to play with


the indicator will only process commands when the Chart Panel it is on has focus. This means the indicator can be on many charts and the voice commands will only be processed on the Chart that has focus.

Debug code inside...with Print statments.

Let me know if you find any bugs.

Attached Files
Register to download File Type: cs A000VoiceCommand.cs (4.4 KB, 7 views)
Reply With Quote
The following 2 users say Thank You to vantojo for this post:

Reply



futures io > > > > > Voice commands for Ninja revisited

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Voice Activated Alerts harry737 Platforms and Indicators 15 November 3rd, 2015 09:15 AM
Voice Commands for NinjaTrader -- ENABLED! vantojo NinjaTrader Programming 4 September 11th, 2014 10:10 AM
Programming by voice commands, trading next? shodson Off-Topic 0 August 19th, 2013 01:21 PM
Best Voice Feature to use when talking to someone over internet tracy Tech Support 10 April 3rd, 2013 02:58 AM
Developing Basics of a Strategy - Order Management Commands zeller4 NinjaTrader Programming 0 July 18th, 2009 08:40 AM


All times are GMT -4. The time now is 11:04 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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
Page generated 2017-12-11 in 0.09 seconds with 20 queries on phoenix via your IP 54.145.16.43