Volatility Expansion Paintbar v0.1

Posted on August 12th, 2007
Written by Richard
Posted in: N/A (old archives)

The paintbar is like a second-cousin to the variants of ttmsqueeze that you can find all over the net. The two main things the paintbar tries to identify are:

  1. Signs that we are coming out of a contraction phase. Bollinger Bands must be narrow but widening. The Choppiness Index (an estimation of the fractal dimension of the price action) should indicate choppiness. Price should be near a smooth average.
  2. Signs of a controlled, directional move out of the consolidation area. Price is near a smooth MA, but is crossing the Keltner bands. RSI and On-Balance Volume should point in direction of the cross of the keltner bands.

I made a video about it in my typical rambling style:

The main points are:

In the video I describe this example trade. See how there’s a PnF chart practically screaming to get short the stock as it continues a downtrend?

Example pnf trade on continuation of downtrend.

… and then the 3-minute chart starts posting confirming paintbars?

utek-candle-2h9m_3m-2007-08-12-213823.PNG

This screenshot shows how nicely it would have worked out:

how nicely it worked out

Perfect! If you watch my videos, you know that I don’t leave all those indicators visible on my chart. They are just on this picture to help explain how the paintbar works.

The Rules

Here are the rules. When you add the needed indicators use the (H+L)/2 variant whenever it is available. This helps keep the indicators from getting confused by price spikes, and also keeps the indicator value from changing quite as often in real-time.

Rule 1:

if (Choppiness Index(14)>=50) AND (Bollinger Bandwidth(20,3) <= 0.018) AND (Bollinger Bandwidth(20,3)[1] < Bollinger Bandwidth(20,3)) AND (Bar Close <= Keltner Bands(20).Lower) AND (Bar High < Keltner Bands(20).Upper) AND (RSI(14,1) <= 50) AND ((T-3(14,0.5) <= T-3(14,0.5)[2]) OR (HMA(14)[2] > HMA(14) AND HMA(14) <= T-3(14,0.5))) AND (Bar Close < HMA(14)) and (On Balance Volume(5).Main <= On Balance Volume(5).Signal) AND (On Balance Volume(5).Signal[1] >= On Balance Volume(5).Signal) AND (((T-3(14,0.5) – Bar Low) / Bar Close) < 0.005) set color to Red and stop

Rule 2:

if (Choppiness Index(14)>=40) AND (Bollinger Bandwidth(20,3) <= 0.018) AND (Bollinger Bandwidth(20,3)[1] < Bollinger Bandwidth(20,3)) AND (Bar Low <= Keltner Bands(20).Lower) AND (Bar High < Keltner Bands(20).Upper) AND (RSI(14,1) <= 50) AND ((T-3(14,0.5) <= T-3(14,0.5)[2]) OR (HMA(14)[2] > HMA(14) AND HMA(14) <= (T-3(14,0.5) + Bar Close * 0.004))) AND (Bar Close < HMA(14)) and (On Balance Volume(5).Main <= On Balance Volume(5).Signal) AND (On Balance Volume(5).Signal[1] >= On Balance Volume(5).Signal) AND (((T-3(14,0.5) – Bar Low) / Bar Close) < 0.01) set color to Maroon and stop

Rule 3:

if (Choppiness Index(14)>=40) AND (Bollinger Bandwidth(20,3) <= 0.023) AND (Bollinger Bandwidth(20,3)[1] < Bollinger Bandwidth(20,3)) AND (Bar Low <= Keltner Bands(20).Lower) AND (Bar High < Keltner Bands(20).Upper) AND (RSI(14,1) <= 50) AND ((T-3(14,0.5) <= T-3(14,0.5)[2]) OR (HMA(14)[2] > HMA(14) AND HMA(14) <= (T-3(14,0.5) + Bar Close * 0.004))) AND (Bar Close < HMA(14)) AND (((T-3(14,0.5) – Bar Low) / Bar Close) < 0.01) set color to $0080FF and stop

Rule 4:

if (Choppiness Index(14)>=50) AND (Bollinger Bandwidth(20,3) <= 0.018) AND (Bollinger Bandwidth(20,3)[1] < Bollinger Bandwidth(20,3)) AND (Bar Close >= Keltner Bands(20).Upper) AND (Bar Low > Keltner Bands(20).Lower) AND (RSI(14,1) >= 50) AND ((T-3(14,0.5) >= T-3(14,0.5)[2]) OR (HMA(14)[2] <= T-3(14,0.5)[2] AND HMA(14) >= T-3(14,0.5))) AND (Bar Close > HMA(14)) and (On Balance Volume(5).Main >= On Balance Volume(5).Signal) AND (On Balance Volume(5).Signal[1] <= On Balance Volume(5).Signal) AND (((Bar High – T-3(14,0.5)) / Bar Close) < 0.005) set color to Lime and stop

Rule 5:

if (Choppiness Index(14)>=40) AND (Bollinger Bandwidth(20,3) <= 0.018) AND (Bollinger Bandwidth(20,3)[1] < Bollinger Bandwidth(20,3)) AND (Bar High >= Keltner Bands(20).Upper) AND (Bar Low > Keltner Bands(20).Lower) AND (RSI(14,1) >= 50) AND ((T-3(14,0.5) >= T-3(14,0.5)[2]) OR (HMA(14)[2] < HMA(14) AND HMA(14) >= (T-3(14,0.5) – Bar Close * 0.004))) AND (Bar Close > HMA(14)) and (On Balance Volume(5).Main >= On Balance Volume(5).Signal) AND (On Balance Volume(5).Signal[1] <= On Balance Volume(5).Signal) AND (((Bar High – T-3(14,0.5)) / Bar Close) < 0.01) set color to Green and stop

Rule 6:

if (Choppiness Index(14)>=40) AND (Bollinger Bandwidth(20,3) <= 0.023) AND (Bollinger Bandwidth(20,3)[1] < Bollinger Bandwidth(20,3)) AND (Bar High >= Keltner Bands(20).Upper) AND (Bar Low > Keltner Bands(20).Lower) AND (RSI(14,1) >= 50) AND ((T-3(14,0.5) >= T-3(14,0.5)[2]) OR (HMA(14)[2] < HMA(14) AND HMA(14) >= (T-3(14,0.5) – Bar Close * 0.004))) AND (Bar Close > HMA(14)) AND (((Bar High – T-3(14,0.5)) / Bar Close) < 0.01) set color to $FFFF80 and stop

Comments

blog comments powered by Disqus