How does RSqueeze work? - NinjaTrader | futures io social day trading
futures io futures trading


How does RSqueeze work?
Updated: Views / Replies:27,967 / 77
Created: by gcaldridge Attachments:16

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

How does RSqueeze work?

  #41 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


wldman View Post
gone on vacation till sometime in July.

@Fat Tails

I would be thrilled if you could take a look and possibly create that option to apply the HA calc to a regular price bar.

I fixed the time stamp issue and will do so on the new machine when it arrives. Thanks again to everyone for their valuable shared input. Trade well!

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Just let me know via PM, when you are back from holidays, will fix that Heikin Ashi thing for you, as it is quick to implement.

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #42 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary

RSqueeze Revisited - Squeeze Updated

I had a closer look again at the RSqueeze and discovered that the Bollinger Band squeeze is not optimal. Actually it triggers too many signals and I will try to explain what is the problem.


Original Definition of Bollinger Band Squeeze:

The Bollinger Band Squeeze occurs, when the Bollinger Bands are contracting and thereby indicating that directional volatility has decreased. It is possible to study the bandwith of the Bollinger Bands over a longer period, and then calculate some confidence intervals. However, a simpler method is to compare Bollinger Bands to Keltner Channels. Bollinger Bands indicate directional volatility, whereas Keltner Channel show the non-directional volatility (friction). When the Bollinger Band stay inside the Keltner Channel, the volatility has not moved price thus indicating a congestion. The Bollinger Squeeze typically relies on this definition.


The RSqueeze does not correctly compare Bollinger Bands and Keltner Channels

The original Keltner Channels use a SMA calculated from the typical price and add/subtract a multiple of the SMA of the simple range of the bars. The crime committed by the RSqueeze indicator is that the average true range is used. This leads to 3 differences

(a) the range is replaced with the true range
(b) the true range is smoothed with an EMA instead of a SMA
(c) the smoothing period used is too large

(c) is not easy to understand, but I will give an example. If you have a Keltner Channel with a period of 20, then the offset used for the bands is a multiple of SMA(Range(), 20). However, if you use the average true range ATR(20), then the average is calculated by using Wilder's smoothing, the smoothing factor for Wilder's smoothing is 1/20 = 2/(39+1), which is the equivalent of an EMA(TrueRange(),39). Even if there is not much difference between the range and the true range, there is a difference between a lookback period of 20 and a lookback period of 39. The RSqueeze effectively uses a larger lookback period, and typically this results in too large values for the offset, as the recent low volatility period is now underweighted. A larger offset results in too many signal dots, and the indicator becomes unusable.

Sample Chart for 6E: RSqueeze fires too many signals.


Squeeze Exposed as BoolSeries for Access via Strategy or Market Analyzer

The Squeeze version, which is attached does use the original Keltner Channels, except that for the sake of simplicity I have not used the typical price for calculating the center line of the Keltner Channel. Otherwise it is a genuine application of the original idea, and as explained by John Carter in his book "Mastering The Trade".

I have added a BoolSeries to the indicator, which can be accessed via a strategy or the market analyzer of NinjaTrader. This would allow you to display for which instruments the squeeze is on, indicating a favourable condition to enter a trade, as directional volatility has been low.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Edit: I could not access the BoolSeries from the market analyzer. I have now used the SqueezeDots to detect the squeeze. If the Squeeze Dots have a value of 0, then the squeeze is on. If the value is > 0 , then there is no squeeze. You can check the Squeeze Dots for equality with 0 to detect the squeeze. Indicator file replaced. The BoolSeries is still there, as it can be used by a strategy to detect low volatility conditions.

Attached Files
Register to download File Type: zip Squeeze.zip (7.8 KB, 380 views)

Last edited by Fat Tails; August 16th, 2012 at 06:26 PM. Reason: indicator file replaced
Reply With Quote
 
  #43 (permalink)
Elite Member
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,071 since Aug 2011
Thanks: 967 given, 2,628 received

Now my head ..


is gonna explode. I want to review this as well. I use the "PBFSqueeze" as an element in a primary method...it is quite different from the typical John Carter Squeeze. Love the roll you are on Fat Tails

Reply With Quote
 
  #44 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


wldman View Post
is gonna explode. I want to review this as well. I use the "PBFSqueeze" as an element in a primary method...it is quite different from the typical John Carter Squeeze. Love the roll you are on Fat Tails

The PBF squeeze has nothing to do with the Bollinger Squeeze, it is just a MACD type indicator based on Gaussian filters. My comment above ONLY applies to the Bollinger Band Squeeze, which is in fact one of the simplest indicators.

Reply With Quote
 
  #45 (permalink)
Elite Member
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,071 since Aug 2011
Thanks: 967 given, 2,628 received

Yes..

What I would really enjoy is a discussion with you about the Gaussian filter and the PBFSqueeze, how it is derived and how it works. On many things, I've learned that I'd benefit from sitting at the feet of a master. Some of the talents you share here are right into my biggest weaknesses. I really appreciate the contribution. DB

Reply With Quote
 
  #46 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


wldman View Post
What I would really enjoy is a discussion with you about the Gaussian filter and the PBFSqueeze, how it is derived and how it works. On many things, I've learned that I'd benefit from sitting at the feet of a master. Some of the talents you share here are right into my biggest weaknesses. I really appreciate the contribution. DB

I have not even looked closely at the PBF, and I do not know the intentions of the guy who has created it.

For the BB Squeeze this is easier, because it is a widely known simple indicator.

Reply With Quote
 
  #47 (permalink)
Elite Member
Toronto, ON, Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Global futures (Continum), IB, FXCM
Favorite Futures: ES 6E Forex ETF
 
Anatta's Avatar
 
Posts: 41 since Sep 2012
Thanks: 201 given, 28 received

RS Squeeze


ThatManFromTexas View Post
@gcaldridge

The dots shows the Bollinger/Keltner "squeeze".

The bars are a momentum indicator .

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


I recently 'found' this RSqueeze indiator. I am ok with the "squeeze" part. My problem is that I don't UNDERSTAND how the momentum bar is calculated. Can someone either point me to a description about how this momentum indicator works.

Thanks

Reply With Quote
 
  #48 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


wipca201 View Post
I recently 'found' this RSqueeze indiator. I am ok with the "squeeze" part. My problem is that I don't UNDERSTAND how the momentum bar is calculated. Can someone either point me to a description about how this momentum indicator works.

Thanks

As explained above the Squeeze part is flawed.

The histogram is calculated as follows, where period = 20 refers to the momentum period shown in the indicator dialogue box

(1) calculate the midline of a Donchian Channel (20)
(2) calculate an EMA(20)
(3) calculate the arithmetic mean of (1) and (2)
(4) subtract the arithmetic mean (3) from price
(5) calculate the linear regression(20) from the result (4)

To summarize: It is a modified raw MACD(1,20), which is then smoothed with a linear regression indicator.

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #49 (permalink)
Elite Member
Minneapolis MN USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL
 
Posts: 4 since May 2012
Thanks: 1 given, 6 received

Thanks Zondor for the Oscillator Squeeze Indicator


Zondor View Post
Let me know if you can import this. I got rid of the RSqueezeUtility Namespace that may have been causing the problems. I don't know why that was in there at all.

I also got rid of a lot of ridiculous plot switcheroo code that was being used to change the colors of plots la Ninjatrader 6.5 because somebody did not know how to use the PlotColors method.

I further optimized it by eliminating any usage of external instances of several indicators that are now calculated inside the OnBarUpdate() method.

If you can manage to import this, you may be shocked at how quickly it loads.

I do, indeed, appreciate your generosity for providing such excellent code. I have added this indicator to my charts.

Thanks Again,

David

Reply With Quote
 
  #50 (permalink)
Elite Member
Chicago, IL
 
Futures Experience: Intermediate
Platform: Ninjatrader, TOS
Broker/Data: Amp Futures/CQG/IB
Favorite Futures: ES, ZB, ZN, Forex
 
john2000's Avatar
 
Posts: 162 since Jan 2010
Thanks: 243 given, 59 received

Squeeze indicator histogram



Fat Tails View Post
I had a closer look again at the RSqueeze and discovered that the Bollinger Band squeeze is not optimal. Actually it triggers too many signals and I will try to explain what is the problem.


Original Definition of Bollinger Band Squeeze:

The Bollinger Band Squeeze occurs, when the Bollinger Bands are contracting and thereby indicating that directional volatility has decreased. It is possible to study the bandwith of the Bollinger Bands over a longer period, and then calculate some confidence intervals. However, a simpler method is to compare Bollinger Bands to Keltner Channels. Bollinger Bands indicate directional volatility, whereas Keltner Channel show the non-directional volatility (friction). When the Bollinger Band stay inside the Keltner Channel, the volatility has not moved price thus indicating a congestion. The Bollinger Squeeze typically relies on this definition.


The RSqueeze does not correctly compare Bollinger Bands and Keltner Channels

The original Keltner Channels use a SMA calculated from the typical price and add/subtract a multiple of the SMA of the simple range of the bars. The crime committed by the RSqueeze indicator is that the average true range is used. This leads to 3 differences

(a) the range is replaced with the true range
(b) the true range is smoothed with an EMA instead of a SMA
(c) the smoothing period used is too large

(c) is not easy to understand, but I will give an example. If you have a Keltner Channel with a period of 20, then the offset used for the bands is a multiple of SMA(Range(), 20). However, if you use the average true range ATR(20), then the average is calculated by using Wilder's smoothing, the smoothing factor for Wilder's smoothing is 1/20 = 2/(39+1), which is the equivalent of an EMA(TrueRange(),39). Even if there is not much difference between the range and the true range, there is a difference between a lookback period of 20 and a lookback period of 39. The RSqueeze effectively uses a larger lookback period, and typically this results in too large values for the offset, as the recent low volatility period is now underweighted. A larger offset results in too many signal dots, and the indicator becomes unusable.

Sample Chart for 6E: RSqueeze fires too many signals.


Squeeze Exposed as BoolSeries for Access via Strategy or Market Analyzer

The Squeeze version, which is attached does use the original Keltner Channels, except that for the sake of simplicity I have not used the typical price for calculating the center line of the Keltner Channel. Otherwise it is a genuine application of the original idea, and as explained by John Carter in his book "Mastering The Trade".

I have added a BoolSeries to the indicator, which can be accessed via a strategy or the market analyzer of NinjaTrader. This would allow you to display for which instruments the squeeze is on, indicating a favourable condition to enter a trade, as directional volatility has been low.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Edit: I could not access the BoolSeries from the market analyzer. I have now used the SqueezeDots to detect the squeeze. If the Squeeze Dots have a value of 0, then the squeeze is on. If the value is > 0 , then there is no squeeze. You can check the Squeeze Dots for equality with 0 to detect the squeeze. Indicator file replaced. The BoolSeries is still there, as it can be used by a strategy to detect low volatility conditions.

@Fat Tails

Thanks for this Squeeze indicator. The Squeeze Dots work great. I'm trying to understand how to read the momentum histogram. Is seems to me it sometimes goes against the price action. This seems to happen more with downtrends as oppose to uptrends.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Last edited by john2000; February 23rd, 2013 at 08:23 PM.
Reply With Quote

Reply



futures io > > > > How does RSqueeze work?

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
rSqueeze for strategy dsraider NinjaTrader Programming 15 September 4th, 2013 02:13 PM
Body Work lsubeano Psychology and Money Management 4 May 8th, 2011 08:15 AM
The best work-out Ryanb Jokes 3 April 5th, 2011 04:54 PM
Why will link not work? gracepips Feedback and Announcements 3 January 11th, 2011 04:14 AM
RSqueeze Strategy for stocks? prisonbreaker82 Elite Automated Trading 1 August 6th, 2010 11:02 PM


All times are GMT -4. The time now is 01:28 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-14 in 0.18 seconds with 40 queries on phoenix via your IP 54.234.255.29