Stochastics coding help needed! - NinjaTrader Programming | futures io social day trading
futures io futures trading


Stochastics coding help needed!
Updated: Views / Replies:6,793 / 33
Created: by RodS Attachments:12

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

Stochastics coding help needed!

  #11 (permalink)
Elite Member
Indy
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: 6E,TF,YM,NQ
 
RodS's Avatar
 
Posts: 88 since Jun 2009
Thanks: 433 given, 65 received

Saroj you are the Man!! Indicator looks good...I have attached my template and a copy of my chart that I am working on with your stoch alert on it.

I couldn't get the alerts to work yet, but I haven't tried much yet.

Here is what my ZN trading plan is:

Thanks to Jeff, sharky, Big Mike, Saroj, wh...for ideas that went into this!

I have three charts, 11 range, 4 range, 1597 volume.
I use my 4 range chart for my entries, 11 range for trend and 1597 fine tuning all three have the same indicators

What I am looking for long entry:
Stochastics above 30 and rising
EMA 50 & 20 trending up
Consolidation
Momentum above 0, Aggressive entry below 0 line but heading up
LinRegSlope above 0, Aggressive entry below 0 line but heading up
Use MML for SR and exit points

Entry for shorts would just be the opposite.


Money management:
2 contracts. First profit target is set @ 5 ticks and the second is runner.
Once first target is hit my stop loss moves to BE. Original stop loss is 5 ticks.
Still doing testing for average maximum profit and use this instead of MML

This is a work in progress but I plan on starting my journal and charts posting in the next week or so.

Attached Thumbnails
Stochastics coding help needed!-es-09-09-8_28_2009-4-range-c.jpg  
Attached Files
Register to download File Type: xml Test_stoch_Saroj.xml (48.3 KB, 29 views)
Reply With Quote
 
  #12 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received

or "woman" in this case... good news Rod... let us know how it goes... thanks for posting your template.. I'll have a look later.

Reply With Quote
 
  #13 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received



Saroj View Post
or "woman" in this case... good news Rod... let us know how it goes... thanks for posting your template.. I'll have a look later.


Hey Rod,

How many guys have flower avatars????



RJay

Reply With Quote
 
  #14 (permalink)
Elite Member
Indy
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: 6E,TF,YM,NQ
 
RodS's Avatar
 
Posts: 88 since Jun 2009
Thanks: 433 given, 65 received

OOPS!!!

So Sorry!!!

Reply With Quote
 
  #15 (permalink)
Elite Member
Indy
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: 6E,TF,YM,NQ
 
RodS's Avatar
 
Posts: 88 since Jun 2009
Thanks: 433 given, 65 received


RJay View Post
Hey Rod,

How many guys have flower avatars????



RJay

Now! Now! We shouldn't be chauvinistic!

Reply With Quote
 
  #16 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received

RJay... too funny! "saroj" = lotus in sanskrit... thus the lotus... the moon is just cause I like that image

Reply With Quote
 
  #17 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

i have it to say once again + not only to think it by myself :
great teams + great works here -- even if its simple stuff
+ some fun together also !
just nice to see ....


max-td
Reply With Quote
 
  #18 (permalink)
Elite Member
Indy
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: 6E,TF,YM,NQ
 
RodS's Avatar
 
Posts: 88 since Jun 2009
Thanks: 433 given, 65 received


max-td View Post
i have it to say once again + not only to think it by myself :
great teams + great works here -- even if its simple stuff
+ some fun together also !
just nice to see ....





Couldn't agree more!!!

Reply With Quote
 
  #19 (permalink)
Elite Member
Indy
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: 6E,TF,YM,NQ
 
RodS's Avatar
 
Posts: 88 since Jun 2009
Thanks: 433 given, 65 received

Saroj,

Indicator works good and I did get the audible alerts to work. The problem is they alert when the K% is rising from below the OBValue line. I need it to give me an alert when it is falling out of the OBValue section, falling below 70.

And the same for when the K% is in the OSValue section I want an alert when it is rising out of OSValue section, above 30.

Where or how can I change this code?

Thanks

rod

Reply With Quote
 
  #20 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received


Rod, on a quick glance it looks like you need to change "CrossAbove" to "CrossBelow" on line 112 and pull lines 112 to 115 out from the nested "if" statement (i.e. copy and paste just above line 110; similarly for lines 123 - 126... then clean up the Alerts as you like. To be honest these were commented out before and I just added the "sound on/off" toggle... I didn't really look at the logic... and, unfortunately I can't really focus on it right now either.. too late... give that a try...

To avoid a lot of aggravation for yourself.. copy and paste one set of them and just comment out the existing code... then press <F5> to compile... correct any errors.. once it compiles clean, do same on the other one.. that avoids long lists of errors.. just taking a nibble of code changing at a time.

Reply With Quote

Reply



futures io > > > > > Stochastics coding help needed!

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
Stochastics min/max Prediction within range bar gain247 NinjaTrader 24 August 7th, 2011 12:51 AM
Stochastics Cross Indicator DennisA NinjaTrader 1 March 30th, 2011 07:30 PM
Stochastics Crossover Alert Indicator -> coding- WORKSHOP engl98 The Elite Circle 40 January 20th, 2011 10:32 PM
Strategy Coding - help needed - ORB & Trailing conditions RodS The Elite Circle 24 December 8th, 2010 09:30 AM
compare stochastics on different charting software traderTX NinjaTrader Programming 18 April 20th, 2010 10:13 PM


All times are GMT -4. The time now is 06:05 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-12 in 0.12 seconds with 20 queries on phoenix via your IP 54.167.44.32