Stochastics min/max Prediction within range bar - NinjaTrader | futures io social day trading
futures io futures trading


Stochastics min/max Prediction within range bar
Updated: Views / Replies:7,829 / 24
Created: by gain247 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
 

Stochastics min/max Prediction within range bar

  #11 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


gain247 View Post
Thanks monpere, this was quick! However, when I try to compile this file on NT 6.5, it generates error "The type or namespace name 'GridCategory' could not be found". Is this some kind of dll-file I would need as well to make this code work?

Thanks!


Edit the indicator and changes lines 130, 140, and 150

from:
[GridCategory("Parameters")]
to:
[Category("Parameters")]

Reply With Quote
The following 3 users say Thank You to vegasfoster for this post:
 
  #12 (permalink)
Survivor
Helsinki, Finland
 
Futures Experience: Advanced
Platform: NT8
Broker/Data: NTB
Favorite Futures: ES, CL
 
gain247's Avatar
 
Posts: 134 since Apr 2010
Thanks: 125 given, 122 received


vegasfoster View Post
Edit the indicator and changes lines 130, 140, and 150

from:
[GridCategory("Parameters")]
to:
[Category("Parameters")]


Absolutely fantastic, monpere! I just installed Ninja7 and the 'new' Stoch indicator seems to work like a charm However, as my trading environment is still Nt 6.5 so I will try & change this code per vegafoster's instructions. Thanks guys, you've been real helpful!!

Reply With Quote
 
  #13 (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,240 since Jun 2009
Thanks: 29,354 given, 83,237 received


https://futures.io/help-tutorials-how-tos/6661-how-use-thanks-button.html

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
The following 2 users say Thank You to Big Mike for this post:
 
  #14 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received

Ok, so I would like to be able to see both possible outcomes in addition to the current plot. I have tried this before using my own code with the problem being that as the bars increment the "whatif" data series do not reset back to the prior stoch values when COBC = False and the future values start calculating based upon the "whatif" values that are being generated. The first pic shows what I would like to see and the second pic shows what happens as time progresses. I tried it again modifying monpere's code but get the same result. Hopefully I have explained it well enough, I can't post the code because it's too long, sorry. I posted the cs file to include you 6.5 guys . I would appreciate any help, thanks.

Attached Thumbnails
Stochastics min/max Prediction within range bar-desiredresult.jpg   Stochastics min/max Prediction within range bar-actualresult.jpg  
Attached Files
Register to download File Type: cs StochRangeCloseV2.cs (16.0 KB, 27 views)
Reply With Quote
 
  #15 (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

hm, it seems no one has used the NT6,5 version so far - i did and i get errors

have a look here, ther is something with the doubles

sayin : doubles does not contain a definition for "Compare"

you see wich lines they point to.

any ideas ?

i havent not converted any NT7 / 6,5 yet, so i am newbie in this section

BTW - of course i changed the lines / code vegas gave us for V1
V2 is tested unchanged as given

max-td
Attached Thumbnails
Stochastics min/max Prediction within range bar-2010-12-17_083934.jpg   Stochastics min/max Prediction within range bar-2010-12-17_084316.jpg  

Last edited by max-td; December 17th, 2010 at 09:02 AM.
Reply With Quote
 
  #16 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


vegasfoster View Post
Ok, so I would like to be able to see both possible outcomes in addition to the current plot. I have tried this before using my own code with the problem being that as the bars increment the "whatif" data series do not reset back to the prior stoch values when COBC = False and the future values start calculating based upon the "whatif" values that are being generated. The first pic shows what I would like to see and the second pic shows what happens as time progresses. I tried it again modifying monpere's code but get the same result. Hopefully I have explained it well enough, I can't post the code because it's too long, sorry. I posted the cs file to include you 6.5 guys . I would appreciate any help, thanks.


I added a couple of lines to reset the previous bar values of the projected High/Low plots to the values of the normal plot. That's quick and dirty to take care of that problem. If you are only looking at the projected high and low close plots to make decisions, then I would suggest only plotting those, and eliminating the middle plot to save memory and processing time for each running instance of the indicator.

Attached Files
Register to download File Type: cs StochRangeCloseV2.cs (8.5 KB, 56 views)
Reply With Quote
The following 6 users say Thank You to monpere for this post:
 
  #17 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


max-td View Post
hm, it seems no one has used the NT6,5 version so far - i did and i get errors

have a look here, ther is something with the doubles

sayin : doubles does not contain a definition for "Compare"

you see wich lines they point to.

any ideas ?

i havent not converted any NT7 / 6,5 yet, so i am newbie in this section

BTW - of course i changed the lines / code vegas gave us for V1
V2 is tested unchanged as given

I put 6.5 back on and will check it later today with monpere's fixes. Thanks monpere!. There are several things I want to use the logic for but haven't been able to figure out and of course NT support has been no help on the matter.

Reply With Quote
 
  #18 (permalink)
Survivor
Helsinki, Finland
 
Futures Experience: Advanced
Platform: NT8
Broker/Data: NTB
Favorite Futures: ES, CL
 
gain247's Avatar
 
Posts: 134 since Apr 2010
Thanks: 125 given, 122 received


monpere View Post
I added a couple of lines to reset the previous bar values of the projected High/Low plots to the values of the normal plot. That's quick and dirty to take care of that problem. If you are only looking at the projected high and low close plots to make decisions, then I would suggest only plotting those, and eliminating the middle plot to save memory and processing time for each running instance of the indicator.

Thanks monpere! Plotting both min & max values is great. However, one bug... it looks the indicator has now somehow lost the oversold/overbought line parameters, so can't set 20/80 lines at all.

Reply With Quote
 
  #19 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


gain247 View Post
Thanks monpere! Plotting both min & max values is great. However, one bug... it looks the indicator has now somehow lost the oversold/overbought line parameters, so can't set 20/80 lines at all.

Hmmm, looks like we may have lost the lines somewhere along the way. Just add them like this

Add(new Line(Color.DarkViolet, 20, "Lower"));
Add(new Line(Color.YellowGreen, 80, "Upper"));

Reply With Quote
The following user says Thank You to monpere for this post:
 
  #20 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


I haven't watched it in real time, but I think all the problems are fixed. I also renamed it because it technically is different than mopere's original and so people don't get confused it they like the original better. Thanks again @monpere for your help.

Attached Files
Register to download File Type: zip StochasticPredictor.zip (9.2 KB, 105 views)
Reply With Quote
The following 4 users say Thank You to vegasfoster for this post:

Reply



futures io > > > > Stochastics min/max Prediction within range bar

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
Range Bar Time zeller4 NinjaTrader Programming 19 July 17th, 2012 10:20 AM
alert works on 1-min, but not on 60-min epictetus EasyLanguage Programming 2 May 9th, 2011 03:06 PM
MIN & MAX for last n bars Stem1 EasyLanguage Programming 2 March 14th, 2011 11:23 PM
Range Bar Problems togier NinjaTrader 7 November 16th, 2010 12:24 PM
Range Bar Charts don10 NinjaTrader 12 October 29th, 2010 01:36 AM


All times are GMT -4. The time now is 05:49 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.14 seconds with 20 queries on phoenix via your IP 54.82.81.154