Let's Teach NinjaTrader how to talk - NinjaTrader Programming | futures io social day trading
futures io futures trading


Let's Teach NinjaTrader how to talk
Updated: Views / Replies:11,884 / 45
Created: by Zondor Attachments:8

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
 8  
 
Thread Tools Search this Thread
 

Let's Teach NinjaTrader how to talk

  #1 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Let's Teach NinjaTrader how to talk

Windows has text to speech capability that can be used by NinjaTrader. That means that instead of having a bunch of indicators that play back humorous but meaningless and confusing .wav files, your indicators can recite text that can be controlled programatically and/or entered by the user.

As an example, when a trendline gets violated, instead of a doorbell, you could have a synthetic voice saying something like " Rising trendline for CL hyphen zero eight hyphen ten contract crossed at price of seventy six point seven five at nine zero five A M".

For an introduction to this topic see the following NinjaTrader forum thread which is being helpfully updated by Roonius. Suggestion: SAY - speaks provided text - NinjaTrader Support Forum

I will post some more code showing how to use this and hopefully we can get a discusssion going here about how to enable the functionality and how to use it. I see this as an extremely valuable feature.

Reply With Quote
The following 12 users say Thank You to Zondor for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary Post:

This is the an example of how we like to use the Quick Summary (the second post in every thread) in the future!

All attachements are collected here as "permalinks" to the post they are putted in.
so if a new indicator or template is added in the thread - please try to add a link in the Quick Summary-section.

This way everyone should be able to find the needed / related indicators + files superfast.
This should be a big help for all users. Thanks for helping - max-td

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.

Indicators:
EMA Crossover with Voice

Templates:
To be added later

Links: Teaching Ninja Trader to talk. Links to NT support Forum with most of the work done by Roonius:speaks provided text - NinjaTrader Support Forum


Last edited by ZTR; June 17th, 2010 at 08:02 AM. Reason: Used Max-td's template; Added Indy Link
 
  #3 (permalink)
 R.I.P. 1960-2010 
 
Futures Experience: Advanced
Platform: NinjaTrader7
Broker/Data: Mirus RCG/Zen-Fire
Favorite Futures: CL & 6e, looking at ES, ZB and AU again.
 
ZTR's Avatar
 
Posts: 2,099 since Nov 2009
Thanks: 1,104 given, 1,390 received


This uses a mixture of fixed string and variables. It can tell you the name of the instrument and the parameters of the condition. More to come!

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Reply With Quote
The following 3 users say Thank You to ZTR for this post:
 
  #4 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Request for Requests to add Text to Speech Alerts

If you have a favorite indicator that gives signals based on programmatic conditions such as crossovers, and you want it to give SPOKEN alerts that can include things like the instrument name and a recitation of the condition that was met, let me know and I will consider adding voice alerts to it. Especially if I can see that it's a popular indicator.

I also request that anyone who has any thoughts on this topic post them here. I think this has HUGE potential !!!

Reply With Quote
The following 3 users say Thank You to Zondor for this post:
 
  #5 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Sample indicator with text to speech spoken alerts

On the NT Forums, Roonius posted a sample indicator that gives spoken alerts when two ma's cross over or under each other. I made a few changes to highlight the text to speech capability a little more. Here is the cs file.

Before installing it you must do the following to enable the text to speech capability within Ninjatrader.

  1. Find the file, System.Speech.dll. It is located in C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0. Just note where it is.
  2. Open ANY indicator for editing in the Ninjascript editor. Right click anywhere in the intellisense editor window and select References from the context menu.
  3. Click the add button. A file chooser dialog box will open. Navigate to, and select, the System.Speech.dll file.

Now install the attached cs file. If you set the EMA's to very fast values you will get a lot of crossovers that will trigger the speech alerts.

TimmyB suggested two indicators that are great candidates for voice alerts: The Tick Molester and jtEconNews. I mentioned this to the creators of both of those fine indicators.

Attached Files
Register to download File Type: cs EMACrossOverVoiceAlert.cs (7.9 KB, 273 views)

Last edited by Zondor; June 16th, 2010 at 07:58 PM.
Reply With Quote
The following 2 users say Thank You to Zondor for this post:
 
  #6 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,860 since Jun 2009
Thanks: 480 given, 3,255 received

If you like inside and outside bars you may want to read about these combinations of inside and outside bar patterns.

Reply With Quote
 
  #7 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
 
Posts: 456 since Jun 2009
Thanks: 1,359 given, 383 received

Hey Zondor,

Thanks for the speech code - so far I can't get it to work with 6.5 - changed GridCategory to just Category.

The error message I get now is:

 
Code
                            
'NinjaTrader.Indicator.MACrossOverVoiceAlert.OnStartUp()'no suitable method found to override
 
lines 43 and 48 
 
Code
protected override void OnStartUp()//line 43
        {
            _speaker = new SpeechSynthesizer();
        }
        protected override void OnTermination()//line48
        {
            _speaker.Dispose();
        }
Will I be able to get this to work with v6.5?

thanks,
Kirk

Reply With Quote
 
  #8 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,574 given, 3,982 received


zeller4 View Post
Hey Zondor,

Thanks for the speech code - so far I can't get it to work with 6.5 - changed GridCategory to just Category.

The error message I get now is:

 
Code
                            
'NinjaTrader.Indicator.MACrossOverVoiceAlert.OnStartUp()'no suitable method found to override
 
lines 43 and 48 
 
Code
protected override void OnStartUp()//line 43
        {
            _speaker = new SpeechSynthesizer();
        }
        protected override void OnTermination()//line48
        {
            _speaker.Dispose();
        }
Will I be able to get this to work with v6.5?

thanks,
Kirk


Check this one for 6.5:
EMACrossOverVoiceAlert6.5.cs

Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following 2 users say Thank You to sam028 for this post:
 
  #9 (permalink)
 R.I.P. 1960-2010 
 
Futures Experience: Advanced
Platform: NinjaTrader7
Broker/Data: Mirus RCG/Zen-Fire
Favorite Futures: CL & 6e, looking at ES, ZB and AU again.
 
ZTR's Avatar
 
Posts: 2,099 since Nov 2009
Thanks: 1,104 given, 1,390 received

Zondor and I only use NT7 and will not be developing anything for 6.5. Some are back compatible and will work 6.5. However, we encourage others still using 6.5 to post speaking modifications here.

Thank you Sam for posting this 6.5 version.

Once the new downloads module is functional I will start collection indicators and posting them.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Reply With Quote
 
  #10 (permalink)
 R.I.P. 1960-2010 
 
Futures Experience: Advanced
Platform: NinjaTrader7
Broker/Data: Mirus RCG/Zen-Fire
Favorite Futures: CL & 6e, looking at ES, ZB and AU again.
 
ZTR's Avatar
 
Posts: 2,099 since Nov 2009
Thanks: 1,104 given, 1,390 received


Latest Speaking MACrossover, with text to output window. Which is my preference.

It is also possible to output to the Alerts Window using:

 
Code
                            
Alert("Alert"Priority.HighInstrumentName+": $"+Close[0]+", Rising Above Trendline "+LineNamesoundFileR1Color.BlackColor.Lime); 

 
Code
                            
//====================================================================================
     
void SetSounds()
  {
 
  if (
soundF  ==  soundEnumF.Checkout)   soundFileF="Alert2.Wav";
  if (
soundF  == soundEnumF.Doorbell)   soundFileF="Alert4.Wav";
  if (
soundF  == soundEnumF.Klaxon)    soundFileF="Alert1.Wav";
  if (
soundF  == soundEnumF.Revolver)  soundFileF="Alert3.Wav";
  if (
soundF  == soundEnumF.AustinPowerssoundFileF="austin_mail.Wav";
  if (
soundF  == soundEnumF.GoodBadUgly)  soundFileF="gbu.Wav";
 
  if (
soundR  == soundEnumR.Checkout)  soundFileR="Alert2.Wav";
  if (
soundR  == soundEnumR.Doorbell)  soundFileR="Alert4.Wav";
  if (
soundR  == soundEnumR.Klaxon)   soundFileR="Alert1.Wav";
  if (
soundR  == soundEnumR.RevolversoundFileR="Alert3.Wav";
  if (
soundR  == soundEnumR.AustinPowerssoundFileR="austin_mail.Wav";
  if (
soundR  == soundEnumR.GoodBadUgly)  soundFileR="gbu.Wav";
 
 
 
  }
/// ================================================================================= 

 
Code
                            
//==================================================================================
        #region Properties
 
   
[Description("Sound when price falls below Trendline")]
  [
Category("Settings")]
  [
Gui.Design.DisplayName("Falling Alert Sound")]
 
   public 
soundEnumF SoundF
  
{
   
get { return soundF; }
   
set {  soundF=value;}
  }     
  [
Description("Sound when price rises above Trendline")]
  [
Category("Settings")]
  [
Gui.Design.DisplayName("Rising Alert Sound")]
 
   public 
soundEnumR SoundR
  
{
   
get { return soundR; }
   
set {  soundR=value;}
  }     
 
 
        
#endregion
 
public enum soundEnumR
   
Revolver,Klaxon,Checkout,Doorbell,AustinPowersGoodBadUgly }
 
 public 
enum soundEnumF
   
Revolver,Klaxon,Checkout,Doorbell,AustinPowersGoodBadUgly }
    }


R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Attached Thumbnails
Let's Teach NinjaTrader how to talk-alert.png  
Attached Files
Register to download File Type: cs MACrossOverVoiceAlert.cs (8.1 KB, 64 views)
Reply With Quote
The following 3 users say Thank You to ZTR for this post:

Reply



futures io > > > > > Let's Teach NinjaTrader how to talk

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jim Simons talk dutchbookmaker Traders Hideout 1 January 26th, 2011 02:36 PM
Teach'm How to Fish aligator NinjaTrader Programming 3 January 20th, 2011 02:47 AM
For US, Yuan Talk is Good, but Action is Better Quick Summary News and Current Events 0 June 19th, 2010 06:50 PM


All times are GMT -4. The time now is 08:18 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-17 in 0.16 seconds with 20 queries on phoenix via your IP 54.145.16.43