All Collections
Trading Platforms
How-To_Trading Platform
Watchlist - Squeeze Watchlist Column code and shared links
Watchlist - Squeeze Watchlist Column code and shared links

Similar to Squeeze for Radar Screen, this script tracks the squeeze using multiple time frames with custom symbols in the TOS Watchlist.

Duncan Boggs avatar
Written by Duncan Boggs
Updated over a week ago

  

For instructions on adding a custom column to a TOS watchlist, search for watchlist, or click on the button below. 

 
​ 
​ 

The Squeeze is an extremely powerful indicator for timing trades as well as understanding price movement.
​ 
Add a Custom column(s) to the mix which will give you a quick view of the Squeeze.
Watching this column, you can easily see if an underlying has a Squeeze setting up or recently fired which is pivotal to timing your trades around this set up.
​ 

 
You can set up your Custom Squeeze Column 2 ways. 

First by copying the below code into a Custom Script in TOS. Once you have the code pasted into a Custom Script you will be able to apply the column to any of your watchlists.
​ 

Second by using the shared links provided. 



SCRIPT TO CREATE A SQUEEZE WATCHLIST COLUMN


## Simpler Trading Squeeze watchlist column - Eric Purdy 2017 
# Shared Link - http://tos.mx/5cpgKa
# Shared Link - http://tos.mx/Ruon09
def sqz = !TTM_Squeeze().SqueezeAlert;
def direction = TTM_Squeeze()>TTM_Squeeze()[1];
def count = if sqz and !sqz[1] then 1 else count[1]+1;
def fired = if !sqz and sqz[1] then 1 else 0;
def firedCount = if fired then 1 else firedCount[1]+1;
def firedDirection = if fired then direction else firedDirection[1];
addLabel(yes, if sqz then "Squeeze:" + count else if sum(fired,5) then "Fired:" + firedCOunt + if firedDirection then " Long" else " Short" else "-", if sqz then color.WHITE else if sum(fired,5) and firedDirection then color.BLACK else color.BLACK);

 


If you want the labels to have a filled in color background, add the following lines to the end of the above script. 

AssignBackgroundColor(if sqz then Color.RED else if fired then color.ORANGE else if sum(fired,5) and firedDirection then color.GREEN else color.black);

 

 
​ 
​ 

If you don't want to copy and paste the above code, just use one of the following SHARED LINKS to add custom squeeze columns to the TOS watchlist:  

http://tos.mx/Ruon09
​ 
​ 
​ 

Watchlist - How to create a custom watchlist column in TOS
https://intercom.help/simpler-trading/en/articles/3284541

Watchlist - What does the number and the colors in the Squeeze column mean?
https://intercom.help/simpler-trading/en/articles/3284758

Watchlist - Raghee Watchlist Column code and shared links
https://intercom.help/simpler-trading/en/articles/3769494

Watchlist - Phoenix Trend Strength watchlist code and shared links
https://intercom.help/simpler-trading/en/articles/3155315

Watchlist - My custom squeeze column in TOS shows bad results
https://intercom.help/simpler-trading/en/articles/3284854

 
​ 
​ 
​ 

Did this answer your question?