This is the new script, I updated the code but also the concept behind.
I called this setup "Volatility Expansion Level" because this is what happens (bullish example):
1 - Bears create a decent bear trend bar (body is at least 90% of last 10 bars ATR)
2 - Bulls overwhelm the bears creating a bull trend bar twice as big immediately afterwards
3 - The open/high of the original Bear bar is a breakeven exit for all the bears who are still in a losing short, making this a bullish rejection level for a while.
It's the same for shorts, but in reverse.
The name comes from the shape of the pattern: it's a considerable market move suddently followed by an opposite, twice as big move. In short, a volatility expansion. We're just defining it with OHLC bars and highlighting the level at which losing traders will probably leave their positions fueling a move we anticipated.
I have noted that often times the market makes expanding triangles breaking both highs and lows before switching from a low volatility to a high volatility environment. Often times it also tests the middle of the range before starting a trend.
This script is a simplification of this observation I made and, I hope, a more logical explanation to what is sometimes called an order block.
Nothing in my content is financial advice.
I wish you good luck, and good trading.