B3 Squeeze Chart

victor_david

New member
VIP
I wish to modify the Simpler Pro Squeeze code to match a version of the Squeeze chart I saw and heard displayed on described on the Simpler website. The new variant is called the B3 Squeeze.

The Pro Squeeze chart has two components. 1. The chart/graph itself and 2. The histogram.

The B3 Squeeze has 3 components 1. The chart/graph 2. The histogram and 3. Multi Time Frame Labels. It is my understanding that The B3 Squeeze chart was created by modifying the Pro Squeeze code and adding the Multi Time Frame Labels studies. I have already modified the chart lines in my Pro Squeeze (See screenshot of My B3 Squeeze Chart and I will provide a shared chart link) and am now working on the histogram. The first problem I ran into was defining the Squeezes. The B3 Squeeze was described to me as being in the middle between the Low Squeeze and the Medium Squeeze of the Pro Squeeze or as it was put another way: If the Low Pro Squeeze was defined as 1 and the medium a 1.5 and the high a 2 then the B3 Squeeze would be 1.25. (See screenshot of Big 3 Squeeze math). The problem for me is that the Pro Squeeze code I have does not numerically define the Squeeze. It uses inequality symbols, Keltner Channels and Bollinger bands (see lines of code below).

Also looking ahead to the multi–Time Frame studies and labels for the chart (See the attached documents: (Big 3 Squeeze Histogram & Labels & Multi-Time Frame Labels and How to Configure a Multi-Time Frame label study). Simpler claims the MTF study is available on ToS but I can’t find it on ToS or even on their website for sale. I have sent them an email about where to find it.

Big 3 Squeeze Histogram & Labels & Multi-Time Frame Labels | Simpler Trading Help Center
I wish to modify the Simpler Pro Squeeze code to match a version of the Squeeze chart I saw and heard displayed on described on the Simpler website. The new variant is called the B3 Squeeze.

https://tos.mx/!WA2OcnKo


#// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

#// © Beardy_Fred

#indicator('Beardy Squeeze Pro', shorttitle='Squeeze', overlay=false, precision=2)

# Converted by Sam4Cok@Samer800 - 05/2023

declare lower;

input ShowLabel = yes; # "Alert Price Action Squeeze"

input MovAvgType = AverageType.SIMPLE;

input length = 20; # "TTM Squeeze Length"

input BB_mult = 2.0; # "Bollinger Band STD Multiplier"

input KC_mult_high = 1.0; # "Keltner Channel #1"

input KC_mult_mid = 1.5; # "Keltner Channel #2"

input KC_mult_low = 2.0; # "Keltner Channel #3"



def na = Double.NaN;

def last = isNaN(close);



#--- Color

DefineGlobalColor("up1", CreateColor(0,188,212));

DefineGlobalColor("up2", CreateColor(41,98,255));

DefineGlobalColor("dn1", CreateColor(255,82,82));

DefineGlobalColor("dn2", CreateColor(255,235,59));

#------

DefineGlobalColor("sqz1", CreateColor(255,152,0));

DefineGlobalColor("sqz2", CreateColor(255,82,82));

DefineGlobalColor("sqz3", Color.GRAY);#CreateColor(54,58,69));

DefineGlobalColor("sqz4", CreateColor(76,175,80));

#//BOLLINGER BANDS

def BB_basis = MovingAverage(MovAvgType, close, length);

def dev = BB_mult * stdev(close, length);

def BB_upper = BB_basis + dev;

def BB_lower = BB_basis - dev;



#//KELTNER CHANNELS

def tr = TrueRange(high, close, low);

def KC_basis = MovingAverage(MovAvgType, close, length);

def devKC = MovingAverage(MovAvgType, tr, length);

def KC_upper_high = KC_basis + devKC * KC_mult_high;

def KC_lower_high = KC_basis - devKC * KC_mult_high;

def KC_upper_mid = KC_basis + devKC * KC_mult_mid;

def KC_lower_mid = KC_basis - devKC * KC_mult_mid;

#// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

#// © Beardy_Fred

#indicator('Beardy Squeeze Pro', shorttitle='Squeeze', overlay=false, precision=2)

# Converted by Sam4Cok@Samer800 - 05/2023

declare lower;

input ShowLabel = yes; # "Alert Price Action Squeeze"

input MovAvgType = AverageType.SIMPLE;

input length = 20; # "TTM Squeeze Length"

input BB_mult = 2.0; # "Bollinger Band STD Multiplier"

input KC_mult_high = 1.0; # "Keltner Channel #1"

input KC_mult_mid = 1.5; # "Keltner Channel #2"

input KC_mult_low = 2.0; # "Keltner Channel #3"



def na = Double.NaN;

def last = isNaN(close);



#--- Color

DefineGlobalColor("up1", CreateColor(0,188,212));

DefineGlobalColor("up2", CreateColor(41,98,255));

DefineGlobalColor("dn1", CreateColor(255,82,82));

DefineGlobalColor("dn2", CreateColor(255,235,59));

#------

DefineGlobalColor("sqz1", CreateColor(255,152,0));

DefineGlobalColor("sqz2", CreateColor(255,82,82));

DefineGlobalColor("sqz3", Color.GRAY);#CreateColor(54,58,69));

DefineGlobalColor("sqz4", CreateColor(76,175,80));

#//BOLLINGER BANDS

def BB_basis = MovingAverage(MovAvgType, close, length);

def dev = BB_mult * stdev(close, length);

def BB_upper = BB_basis + dev;

def BB_lower = BB_basis - dev;



#//KELTNER CHANNELS

def tr = TrueRange(high, close, low);

def KC_basis = MovingAverage(MovAvgType, close, length);

def devKC = MovingAverage(MovAvgType, tr, length);

def KC_upper_high = KC_basis + devKC * KC_mult_high;

def KC_lower_high = KC_basis - devKC * KC_mult_high;

def KC_upper_mid = KC_basis + devKC * KC_mult_mid;

def KC_lower_mid = KC_basis - devKC * KC_mult_mid;
 

Attachments

  • Big 3 Squeeze Histogram & Labels & Multi-Time Frame Labels _ Simpler Trading Help Center.pdf
    362.4 KB · Views: 31
  • How to Configure a Multi-Time Frame label study on TOS _ Simpler Trading Help Center.pdf
    899.9 KB · Views: 20
Last edited by a moderator:
The first problem I ran into was defining the Squeezes.

The B3 Squeeze was described to me as being in the middle between the Low Squeeze and the Medium Squeeze of the Pro Squeeze or as it was put another way:

If the Low Pro Squeeze was defined as 1 and the medium a 1.5 and the high a 2 then the B3 Squeeze would be 1.25. (See screenshot of Big 3 Squeeze math).

The problem for me is that the Pro Squeeze code I have does not numerically define the Squeeze.

You are correct.
The Forum version of Squeeze does not have a numerical component.

Given there is no numerical definition of the squeeze levels, it is not possible to create the study that you are seeking.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
263 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top