Voice Commands for NinjaTrader -- ENABLED! - NinjaTrader Programming | futures io social day trading
futures io futures trading


Voice Commands for NinjaTrader -- ENABLED!
Updated: Views / Replies:615 / 4
Created: by vantojo Attachments:0

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 NinjaTrader -- ENABLED!

  #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 NinjaTrader -- ENABLED!

I was really surprised to find that Ninatrader 64bit on Windows 8 will recognize voice commands (through a microphone).

I have been able to push the buttons on Chart Trader (by speaking " Buy Market" , " Sell Bid", "push F3", et cetera), "Switch (to) Control Panel", and all sorts of cool things. It is not perfect, and not everything can be clicked or selected, but it is a great start!

However it it not quite good enough for production trading (in my opinion). I want to have tighter control over the commands (very specific commands not to be confused with other NT controls / buttons) and then potentially train Windows Voice Recognition for only a small set of these types of commands.

I found some code that might possibly work if it was able to be integrated into an indicator. The Ninja C# is not a problem for me (finally), but I"m not a deep C# coder, so perhaps there is a C# whiz who could get the voice recognition code into the Ninja indicator framework.

I found this code...by paqogomez

c# - Smart Way to Handle Voice Commands in Code to Action a Command - Stack Overflow

this particular code looks elegant...(from that web page), though I don't understand it...any way to get this in a Ninja Indicator? Thanks!

using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using MyApp.SpeechMethods;

namespace MyApp
{
class Program
{
static void Main(string[] args)
{
var methods = new MySpeechMethods();
MethodInfo myMethod;
myMethod = SpeechFactory.GetSpeechMethod("Time Please");
myMethod.Invoke(methods, null);
myMethod = SpeechFactory.GetSpeechMethod("Volume Down");
myMethod.Invoke(methods, null);
myMethod = SpeechFactory.GetSpeechMethod("Volume Up");
myMethod.Invoke(methods, null);
}
}

public static class SpeechFactory
{
private static Dictionary<string, MethodInfo> speechMethods = new Dictionary<string, MethodInfo>();
public static MethodInfo GetSpeechMethod(string speechText)
{
MethodInfo methodInfo;
var mySpeechMethods = new MySpeechMethods();
if (speechMethods.Count == 0)
{
var methodNames =
typeof (MySpeechMethods).GetMethods(BindingFlags.Public | BindingFlags.DeclaredOnly | BindingFlags.Instance);
var speechAttributeMethods = methodNames.Where(y => y.GetCustomAttributes().OfType<SpeechAttribute>().Any());
foreach (var speechAttributeMethod in speechAttributeMethods)
{
foreach (var attribute in speechAttributeMethod.GetCustomAttributes(true))
{
speechMethods.Add(((SpeechAttribute)attribute).SpeechValue, speechAttributeMethod);
}
}
methodInfo = speechMethods[speechText];
}
else
{
methodInfo = speechMethods[speechText];
}

return methodInfo;
}
}
}

namespace MyApp.SpeechMethods
{
public class MySpeechMethods
{
[Speech("Time Please")]
[Speech("Whats the Time")]
[Speech("What Time is it")]
public void GetTime()
{
Console.WriteLine(DateTime.Now.ToLocalTime());
}

[Speech("Volume Down")]
public void VolumeDown()
{
Console.WriteLine("Volume Down 1");
}

[Speech("Volume Up")]
public void VolumeUp()
{
Console.WriteLine("Volume Up 1");
}
}

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple = true)]
public class SpeechAttribute : System.Attribute
{
public string SpeechValue { get; set; }

public SpeechAttribute(string textValue)
{
this.SpeechValue = textValue;
}
}

Reply With Quote
The following user says Thank You to vantojo for this post:
 
  #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)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,221 received


I don't believe that has anything to do with NinjaTrader.

It's just using WinForms, and that API has the support you describe (voice recognition and ability to push buttons).

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

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

si señor

Yes, it seems to be a global ability. I used the wrong word "Enabled".... it has nothing to do with Ninja. (However it seems Ninja could clean up the internal labels to give more accuracy for voice commands).

But I would like to create my own custom vice commands for Ninja.

For example to speak "Go Short at 102.5" This would use the selected ATM and place the order at that price.

When you speak "Close" there are two Closes, one for the window and one on Chart Trader to close a position. So, then you cannot simply say Close, you have to say Close and then tell speech recognition which Close to press.

If you have a multi instrument chart with TF on it, and also another single instrument chart with TF. You cannot just say "Switch TF", you have to say "Switch TF" and then tell it which chart to go to.

Or, to select a certain ATM: "Select ATM MyATM"

So, for me while the voice recognition is cool, it is not good enough for live trading. It could be made Ninja specific and smarter with an indicator that processed specific non-window commands.

....the code above seems elegant and concise, but I don't know how to get it into an indicator.

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

another examples

If you speak "Buy Ask" then it presses the "Buy Ask" button and leaves the mouse pointer on the Chart Trader panel instead of on the Chart panel.

It would be better to be able to say "Go Long Ask" and not have the mouse pointer move at all.

It may seem subtle, but the fewer the mouse actions (automated or manual) the better.

The idea is to not use the mouse much for chart trading.

Reply With Quote

Reply



futures io > > > > > Voice Commands for NinjaTrader -- ENABLED!

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
Looking for a broker... (Index CFDs and MT4 enabled) Tingles1 Reviews of Brokers and Data Feeds 2 August 21st, 2014 01:48 AM
Programming by voice commands, trading next? shodson Off-Topic 0 August 19th, 2013 01:21 PM
AOS strategy enabled on start up Merlin997 NinjaTrader Programming 1 December 5th, 2011 05:51 AM
The key is geometric growth enabled by low draw downs liquidcci Psychology and Money Management 13 July 2nd, 2011 01:12 PM
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 03:28 AM.

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-13 in 0.11 seconds with 19 queries on phoenix via your IP 54.226.132.197