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,823 / 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

  #21 (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
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.

Hi vegasfoster, I have now watched this a few days in real time and it looks the opening bar stochastics range plots are not quite right... actually it seems to be only the 'reversing' direction stoch range plot that is too 'wide' and it doesn't correct even when the price bar developes. When I push F5 (Reload Ninjascript) it does correct, however. Not a big deal, I can always use F5 when a new bar opens, but just wanted to report this bug if it's easy to correct.

Thanks again for a great indicator!

Reply With Quote
 
  #22 (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
Hi vegasfoster, I have now watched this a few days in real time and it looks the opening bar stochastics range plots are not quite right... actually it seems to be only the 'reversing' direction stoch range plot that is too 'wide' and it doesn't correct even when the price bar developes. When I push F5 (Reload Ninjascript) it does correct, however. Not a big deal, I can always use F5 when a new bar opens, but just wanted to report this bug if it's easy to correct.

Thanks again for a great indicator!

Yeah, thanks for the heads up. Max pointed that out to me yesterday, I just haven't had a chance to look at it. Will try to fix it later today unless someone beats me to it. I am using the JtRangeMarker code and my skills are limited so I may need help to fix it, not sure yet.

Reply With Quote
 
  #23 (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


So, the plot is being reset each bar to the prior K value, but the input to the plot is not being reset in the same fashion to the prior Close value so we are essentially having the same problem as before. Monpere's fix to reset the K value works on a data series, but the input was not a data series. So I went back to using a dataseries for the input but what I am doing is not working.

I need the prior hinput value to be "Close[1]" and the current value to be "Low[0] + (Bars.Period.Value+1)*TickSize" so that I can feed it into the rest of the calculations. I don't know how to do it, so any help would be appreciated, thank you.

This is what I am trying.

 
Code
 
if ( FirstTickOfBar && CurrentBar > 0 ) 
{
hinput.Set(1, Close[1]);
linput.Set(1, Close[1]);
} 
 
elseif ( onRangeClose && CurrentBar == Bars.Count-1 ) 
 
{
//### Draw Next Range Bar price markers

if ( Bars.Period.Id == PeriodType.Range || Bars.ToString().Contains("Kase") ) 
{
hinput.Set(Low[0] + (Bars.Period.Value+1)*TickSize); //### Bar Extreme
linput.Set(High[0] - (Bars.Period.Value+1)*TickSize); //### Bar Extreme
}
 
else
if ( Bars.ToString().Contains("RangeNoGap") ) 
{
hinput.Set(Low[0] + (Bars.Period.Value+1)*TickSize); //### Bar Extreme
linput.Set(High[0] - (Bars.Period.Value+1)*TickSize); //### Bar Extreme
}
 
} 

Reply With Quote
 
  #24 (permalink)
Elite Member
Boston
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Crude
 
PHXtrader's Avatar
 
Posts: 84 since Apr 2011
Thanks: 48 given, 76 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.

monpere

Do you still use this indicator? If so how has it been working for you? Do you know if all the bugs ever got worked out?

Reply With Quote
 
  #25 (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


PHXtrader View Post
monpere

Do you still use this indicator? If so how has it been working for you? Do you know if all the bugs ever got worked out?

I don;t use this particular indicator. I just provided a workaround for the issue he was having with the normal plotting. Later he was trying to do something else, but I did not understand what he was trying to do.

Reply With Quote

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 12:12 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-15 in 0.11 seconds with 20 queries on phoenix via your IP 54.226.34.209