Blast Off Indicator for ThinkorSwim

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

You should use this indicator on the daily chart. A pink candle represent a "blast off" candle. Expect a big move the next day. For day traders, you can also use this on the lower timeframes to look for indecision candles.

vg6xDDS.png


thinkScript Code

Code:
# Blast Off Indicator
# Should use on the Daily chart
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/V9Mi6eOO-CM-Blast-Off-V1-Alerts-Ready/

input trig = 20;
input paintbar = yes;

def val = absValue(close - open);
def range = high - low;
def blastOffVal = (val / range) * 100;
def trigger = trig;
def alert1 = blastOffVal < trig;
def col = blastOffVal < trig;

assignPriceColor(if paintbar and blastOffVal<trig then Color.MAGENTA else Color.Current);

# Plot Arrow
plot arrow = col;
arrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
arrow.SetDefaultColor(Color.CYAN);
arrow.SetLineWeight(1);

Shareable Link: https://tos.mx/3DOXHdO

Fancy Version

As suggested by @john3

Code:
# Blast Off Indicator
# Should use on the Daily chart
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/V9Mi6eOO-CM-Blast-Off-V1-Alerts-Ready/

# Modified version: added line to high and low of blast off candle.

input trig = 20;

def val = absValue(close - open);
def range = high - low;
def blastOffVal = (val / range) * 100;
def trigger = trig;
def alert1 = blastOffVal < trig;
def col = blastOffVal < trig;

def blast_candle = blastOffVal < trig;

def b_high = if blast_candle then high else b_high[1];
def b_low = if blast_candle then low  else b_low[1];

plot hh = b_high;
plot ll = b_low;

hh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
ll.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
hh.SetDefaultColor(Color.YELLOW);
ll.SetDefaultColor(Color.YELLOW);

assignPriceColor(if blastOffVal<trig then Color.MAGENTA else Color.WHITE);

How is this study working for people ? I am confused because nearly every SP500 stock I'm looking at on the study watchlist shows a pink candle so how is this identifying anything
 
How is this study working for people ? I am confused because nearly every SP500 stock I'm looking at on the study watchlist shows a pink candle so how is this identifying anything
The market indices have hit the lowest lows since 2020. Pretty sure it will indicate on everything right now.
No indicator can be used in isolation so as to avoid false signals.

Here are some indicators that work well with the Blast Off:
https://usethinkscript.com/threads/daily-watchlist-of-stocks-questions.7585/#post-81013
 
How is this study working for people ? I am confused because nearly every SP500 stock I'm looking at on the study watchlist shows a pink candle so how is this identifying anything
I like this as a scan, was wondering what would be changed in order to scan for two days of tight action, is it not possible to scan that way?
Thank you in advance for any help
 
Is there anyway to scan for a Pink candle at the end of the day ?

Im guessing There is a purchase price for the Pink Candle scan ?

In the drop down menu in the plot I only have hh and ll which one do i choose for the pink candle ? Thanks
 
Last edited by a moderator:
Is there anyway to scan for a Pink candle at the end of the day ?

Im guessing There is a purchase price for the Pink Candle scan ?

In the drop down menu in the plot I only have hh and ll which one do i choose for the pink candle ? Thanks
Here is the Scan Script:

Go ahead and cut & paste this script into your study tab:
reference this one in the Scan Hacker
Code:
# Blast Off Indicator
# Should use on the Daily chart
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/V9Mi6eOO-CM-Blast-Off-V1-Alerts-Ready/

input trig = 20;
input paintbar = yes;

def val = absValue(close - open);
def range = high - low;
def blastOffVal = (val / range) * 100;
def trigger = trig;
def alert1 = blastOffVal < trig;
def col = blastOffVal < trig;

assignPriceColor(if paintbar and blastOffVal<trig then Color.MAGENTA else Color.Current);

# Plot Arrow
plot arrow = col;
arrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
arrow.SetDefaultColor(Color.CYAN);
arrow.SetLineWeight(1);

Shareable Link: https://tos.mx/3DOXHdO Click here for --> Easiest way to load shared links

Then open up your Scan Hacker
Set your filter to: Arrow is true.

If you're still having trouble, have you checked out the Scan Hacker Tutorial we have available? It might offer some helpful tips and solutions: https://usethinkscript.com/threads/how-to-use-thinkorswim-stock-hacker-scans.284/
 
Last edited:
In the standard blast off indicator, It seems the arrow simply indicates where the pink bar is. Is there a way to show the up arrow when it is expected to go up the next day and down arrow when it is expected to do the next day? I mean, is there a way to identify whether the break is to the upside or downside?
 
In the standard blast off indicator, It seems the arrow simply indicates where the pink bar is. Is there a way to show the up arrow when it is expected to go up the next day and down arrow when it is expected to do the next day? I mean, is there a way to identify whether the break is to the upside or downside?
No, direction is not found within this script.
You need to add your favorite trend/momentum studies to your chart setup to assist in your determination of direction.
Here are a few to get you started:
https://usethinkscript.com/threads/a-serving-of-trend-and-momentum-indicators-for-thinkorswim.4880/
 
You should use this indicator on the daily chart. A pink candle represent a "blast off" candle. Expect a big move the next day. For day traders, you can also use this on the lower timeframes to look for indecision candles.

View attachment 5385

thinkScript Code

reference this one in the Scan Hacker
Code:
# Blast Off Indicator
# Should use on the Daily chart
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/V9Mi6eOO-CM-Blast-Off-V1-Alerts-Ready/

input trig = 20;
input paintbar = yes;

def val = absValue(close - open);
def range = high - low;
def blastOffVal = (val / range) * 100;
def trigger = trig;
def alert1 = blastOffVal < trig;
def col = blastOffVal < trig;

assignPriceColor(if paintbar and blastOffVal<trig then Color.MAGENTA else Color.Current);

# Plot Arrow
plot arrow = col;
arrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
arrow.SetDefaultColor(Color.CYAN);
arrow.SetLineWeight(1);

Shareable Link: https://tos.mx/3DOXHdO

Fancy Version

As suggested by @john3

Code:
# Blast Off Indicator
# Should use on the Daily chart
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/V9Mi6eOO-CM-Blast-Off-V1-Alerts-Ready/

# Modified version: added line to high and low of blast off candle.

input trig = 20;

def val = absValue(close - open);
def range = high - low;
def blastOffVal = (val / range) * 100;
def trigger = trig;
def alert1 = blastOffVal < trig;
def col = blastOffVal < trig;

def blast_candle = blastOffVal < trig;

def b_high = if blast_candle then high else b_high[1];
def b_low = if blast_candle then low  else b_low[1];

plot hh = b_high;
plot ll = b_low;

hh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
ll.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
hh.SetDefaultColor(Color.YELLOW);
ll.SetDefaultColor(Color.YELLOW);

assignPriceColor(if blastOffVal<trig then Color.MAGENTA else Color.WHITE);

Dear Ben.
I found this indicator worked wonder, especially with higher high and lower low in fancy version.
Can you help me with the regular green and red color instead of just white? Keep the trigger magenta.
Very appreciated always Ben.
 
Last edited by a moderator:
Dear Ben.
I found this indicator worked wonder, especially with higher high and lower low in fancy version.
Can you help me with the regular green and red color instead of just white? Keep the trigger magenta.
Very appreciated always Ben.

Glad to hear. Sure..

Replace the last line with the following:

Code:
assignPriceColor(if blastOffVal<trig then Color.MAGENTA else Color.Current);
 
Dear Ben.
I found this indicator worked wonder, especially with higher high and lower low in fancy version.
Can you help me with the regular green and red color instead of just white? Keep the trigger magenta.
Very appreciated always Ben.
you may add lower study below as well.

CSS:
#study(title="Blast Off Momentum [DW]", shorttitle="BOM [DW]", overlay=false)
#//by Donovan Wall
#//This study is an alternative experimental interpretation of the Blast Off Indicator by Larry Williams.
#//This formula takes positive and negative magnitudes rather than the absolute value. The result is then smoothed with an ema, and twice smoothed to provide a signal line.
# Converted by Sam4Cok@Samer800    - 05/2023
declare lower;
input ColorBars = yes;
input ShowTriggerCandle = no;
input Period = 34;         # "Period"
input SignalPeriod = 9;    # "Signal Period"
input Threshold = 10;      # "Threshold Distance"

def na = Double.NaN;
def last = isNaN(close);
#//Definitions

#//Blast Off Momentum
    def ocrng = close - open;
    def hlrng = high - low;
    def bo    = ocrng/hlrng*100;
    def BOM   = ExpAverage(bo, Period);
    def SIG   = ExpAverage(BOM, SignalPeriod);

#//Thresholds
def uth = Threshold;
def lth = -Threshold;

#//Color
def col = if (bom > 0) and (bom < uth) then 1 else
          if (bom < 0) and (bom > lth) then -1 else
          if (bom > uth) then 2 else if (bom < lth) then -2 else 0;

#//Plots
#//Signal Line
plot sigLine = sig;    # "Signal Line"
sigLine.SetDefaultColor(Color.YELLOW);

#//BOM
plot bomplot = bom;    # "BOM"
bomplot.SetPaintingStrategy(PaintingStrategy.SQUARED_HISTOGRAM);
bomplot.AssignValueColor(if col==2 then Color.GREEN else
                         if col==1 then Color.DARK_GREEN else
                         if col==-1 then Color.DARK_RED else
                         if col==-2 then Color.RED else Color.GRAY);
#//Thresholds
plot uthplot  = if last then na else uth;    # "Upper Threshold"
plot centplot = if last then na else 0;      # "Center Line"
plot lthplot  = if last then na else lth;    # "Lower Threshold"
uthplot.SetDefaultColor(Color.GREEN);
centplot.SetDefaultColor(Color.DARK_GRAY);
lthplot.SetDefaultColor(Color.RED);
uthplot.SetStyle(Curve.SHORT_DASH);
lthplot.SetStyle(Curve.SHORT_DASH);

#-- Trigger Candle
def up = ShowTriggerCandle and col==2 and col[1]!=2;
def dn = ShowTriggerCandle and col==-2 and col[1]!=-2;
AssignPriceColor(if up then Color.CYAN else
                 if dn then Color.MAGENTA else Color.CURRENT);

#//Bar Color
AssignPriceColor(if !ColorBars then Color.CURRENT else
                 if up then Color.CYAN else
                 if col==2 then Color.GREEN else
                 if col==1 then Color.DARK_GREEN else
                 if col==-1 then Color.DARK_RED else
                 if dn then Color.MAGENTA else
                 if col==-2 then Color.RED else Color.GRAY);

#-- END of CODE
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
425 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