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. 


## Simpler Trading Squeeze watchlist column - Eric Purdy 2017 
# Shared Link -
# Shared Link -
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;



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:  

Watchlist - How to create a custom watchlist column in TOS

Watchlist - What does the number and the colors in the Squeeze column mean?

Watchlist - Raghee Watchlist Column code and shared links

Watchlist - Phoenix Trend Strength watchlist code and shared links

Watchlist - My custom squeeze column in TOS shows bad results


Did this answer your question?