Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
STRSQZ -- Stretch and Squeeze Details »»
STRSQZ -- Stretch and Squeeze
Platform: EasyLanguage, by Tams Tams is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: MultiCharts Rating: (1 votes - 5.00 average)
Released: 05-01-2009 Last Update: Never Installs: 8
 
No support by the author.

STRSQZ -- Stretch and Squeeze (w auto calibrate)

This indicator displays the premium/discount between a future contract and its cash index
A popular display pair is YM and INDU

Basic Concept:
When the market is going up, the future leads the cash with premium.
When the market is going down, the future leads the cash with discount*.
(* or less premium)

The key is to look for excessive premium/discount at points of change.
(eg. at channel boundaries, price extremes, etc.,)

Note that this is not a Buy/Sell type of indicator
You will need to understand the workings of the market to exploit these signals.

Instructions:
set up 3 symbols in the chart:
data1: INDU index (1 minute)
data2: YM current month future contract (1 minute)
data3: YM current month future contract (5 minutes)

Set the first 2 symbols to invisible...
the 3rd symbol is your trading chart
(you can substitute the 3rd symbol with other instruments, eg. ES, NQ)

Note:
1. The indicator uses a moving average to surpress the noise. The first few bars of the day is not displayed
2. The indicator will stop plotting when the cash is closed
3. The histogram color threshold is user adjustable





Download Now

File Type: txt STRSQZ_Stretch_and_Squeeze.txt (2.1 KB, 118 views)

Screenshots

STRSQZ -- Stretch and Squeeze-strsqz.gif   STRSQZ -- Stretch and Squeeze-strsqz_setup.gif  

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.
The Following 6 Users Say Thank You to Tams For This Useful Post:
aaa (05-02-2009), daedalus (05-06-2009), swansjr (05-02-2009), TIKITRADER (08-08-2009), Trader333 (05-08-2009)

Comments
Old 05-01-2009, 06:06 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: STRSQZ -- Stretch and Squeeze

Here are some of the chart examples.

Screen time is your best friend; you will need to learn which is signal and which is noise.

You are invited to post your charts and your interpretations.

enjoy


.
Attached Thumbnails
STRSQZ -- Stretch and Squeeze-early.gif   STRSQZ -- Stretch and Squeeze-choppy.gif   STRSQZ -- Stretch and Squeeze-done_deal.gif  
Tams is offline  
Reply With Quote
The Following 2 Users Say Thank You to Tams For This Useful Post:
daedalus (05-06-2009)
Old 05-02-2009, 11:04 AM   #3
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: STRSQZ -- Stretch and Squeeze

I always trade with the DJI cash 1 mn on my left screen and the EuroStoxx Future 1 mn on the right screen.

(Europe market follows US markets as a sticker)

The interpretation takes a long time and this indicator looks to be very interesting

I will try it next week

ThanX Tams
aaa is offline  
Reply With Quote
Old 05-05-2009, 01:39 PM   #4
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: STRSQZ -- Stretch and Squeeze

ATTENTION

This is A GREAT indicator, one the best one on my modest point of view.

I will post charts and interpretations this weekend

I added minor changes, if Tams agree

// version 5.6b
// Author: aa
// Date: 20090505

// 1) The Threshold.Upper and Threshold.Lower are linked

// 2) Choose between inserting the...
// ... Insert.Cash.1rst = 1
// ... Future first = 0

// 3) Set a noPlot color for good color synchronisation
Attached Files
File Type: txt STRSQZ_Stretch_and_Squeeze v5.6b.txt (3.2 KB, 62 views)
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (05-05-2009)
Old 05-05-2009, 02:09 PM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: STRSQZ -- Stretch and Squeeze

Quote:
Originally Posted by aaa »
ATTENTION

This is A GREAT indicator, one the best one on my modest point of view.

I will post charts and interpretations this weekend

I added minor changes, if Tams agree

of course... the idea of open source is for people to collaborate and improve/refine.


Quote:
// version 5.6b
// Author: aa
// Date: 20090505

// 1) The Threshold.Upper and Threshold.Lower are linked

// 2) Choose between inserting the...
// ... Insert.Cash.1rst = 1
// ... Future first = 0

// 3) Set a noPlot color for good color synchronisation

Well done!
Thanks for the refinements.


my notes:

1. the original code was designed for INDU:YM pair.
there is a market hour difference between the 2 symbols
INDU closes at 1600ET, while YM closes at 1615ET.

The code checks for the first symbol's trading session,
and stops plotting when that session ends.
This is done to avoid the chart going haywire when only one data stream is present.

Therefore is it ok to put the cash (or any symbol) as data2, so long as the sessions end at the same time.


2. on the threshold:
one way to simplify it is to put a minus sign in front of the threshold:

If STRSQZ > Threshold then
setplotcolor (1, upcol)
else If STRSQZ <
-Threshold then
setplotcolor (1, dncol)
...





ps. nice comments and section separations in the code

ps. thanks for adding the neutral color in the histogram.
I noticed the error yesterday, and was going to post the corrected code today. You beat me to it.

;-)

Last edited by Tams; 05-05-2009 at 02:53 PM.
Tams is offline  
Reply With Quote
Old 05-05-2009, 02:25 PM   #6
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: STRSQZ -- Stretch and Squeeze

I'm Glad to collaborate with my few knoledge

Quote:
Therefore is it ok to put the cash (or any symbol) as data2, so long as the sessions end at the same time.
I 've traded from 9:00 to 15:30 (Zurich Time) with the pair EuroStoxx cash/EuroStoxx Future

And at 15:30 I've swapped to the pair DJI cash/EuroStoxx without any problem

I added this because it was quicker to add a symbol on an existed graph rather that starting from 0.

It is very processing hard charge with 8 graphs for a quadriProcessor

My compliments for this great indicator ; I really improve my trading
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (05-05-2009)
Old 05-05-2009, 04:15 PM   #7

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: STRSQZ -- Stretch and Squeeze

Quote:
Originally Posted by aaa »
I'm Glad to collaborate with my few knoledge
I 've traded from 9:00 to 15:30 (Zurich Time) with the pair EuroStoxx cash/EuroStoxx Future
And at 15:30 I've swapped to the pair DJI cash/EuroStoxx without any problem
I added this because it was quicker to add a symbol on an existed graph rather that starting from 0.

It is very processing hard charge with 8 graphs for a quadriProcessor

My compliments for this great indicator ; I really improve my trading


I regularly open 8 chart windows and 20+ charts.
My CPU (quad) barely moves.
Maybe you have a lot of days in your chart.


p.s. tick charts uses more resources. It is best to keep the days to a minimum on tick charts.
Tams is offline  
Reply With Quote
Old 05-05-2009, 04:46 PM   #8
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: STRSQZ -- Stretch and Squeeze

I use

3 workspaces

1 = 1 chart dayly 700 bars back + 1 chart 168 mn 700 bars back detached on a 2nd screen

2 = 1 chart 60 mn 700 bars barck + 1 chart 15 mn 700 bars back detached on a 2nd screen

The one I trade with
3 = ( 1 chart 5 mn 700 bars barck + 1 chart 1 mn 9 days back ) + 1 chart 1 mn 9 days back with 2 datas detached on a 2nd screen

Total = 8 datas in RT

And my CPU is over 50 oftenly 80%

I think that it could be indicator(s) which is bad writen...

PS I have a HMM with a 610 period this is why I use 700 bars back
aaa is offline  
Reply With Quote

Reply

Tags
discount, easylanguage, multicharts, premium, spread

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone have the squeeze indicator pajusa Beginners Forum 32 05-06-2011 10:24 PM
BB Squeeze indicator januson Technical Analysis 28 10-25-2009 02:11 AM
Squeeze for NinjaTrader scattergun Coding Forum 5 03-18-2009 03:30 PM
Squeeze for Investor/RT bfrank Technical Analysis 2 03-13-2009 08:20 AM
BB Squeeze (Version of TTM Squeeze) ashokkuttan Market Analysis 26 08-14-2008 01:34 PM

All times are GMT -4. The time now is 08:28 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.