OPEN-SOURCE SCRIPT

Stockbee Momentum Burst

Updated
This is a script to color code bars based on the bullish- and bearish combination.

Bullish Combination
Percent: Price >= 4% from yesterday and Volume today > Yesterday
Dollar: Price >= 0.9 dollar from open

Base Requirements
- Price > Yesterday's close
- Price > Open
- Price is within 30% of high
- Todays price range >= Yesterdays price range
- Yesterday's move <= 2%
- Volume >= 100 000

Bearish Combination
Percent: Price <= 4% from yesterday and Volume today > Yesterday
Dollar: Price <= 0.9 dollar from open

Base Requirements
- Price < Yesterday's close
- Price < Open
- Price is within 30% of low
- Todays price range >= Yesterdays price range
- Yesterday's move >= -2%
- Minimum volume for each of last 3 days >= 100 000

Momentum Filter
These are based on the 10 and 20 EMA crossover, where the former above would indicate upward momentum and below downward momentum. This can help to narrow down the color code to continuation phases. The linked option will override all other momentum filters, bullish candles will be displayed when EMA 10 > 20 and bearish candles when EMA 10 < 20.
Release Notes
Added the bullish- and bearish reversal combination.

Indicator is customizable via the indicator settings
- Momentum burst with bullish, bearish, percent and/or dollar requirement (candle color).
- Three type of momentum filters.
- Reversal bullish and/or bearish (arrow above or below bar).
- Checkbox to bypass use price and volume requirement.
Release Notes
Breakout Type Selection: Added a direct option to choose the breakout type, eliminating the need for complex combinations.

Customizable Colors: Introduced a color selection box for breakout and neutral bars, making customization easier with clear labels (previously done in the styles tab without labels).

Momentum Filter Update: Replaced the previous momentum filter with the Trend Intensity 65.
Release Notes
Labels update
breakdownbreakoutCandlestick analysisChart patternsexpansionmomentumburstrangeexpansionstockbeestrategyswingtrading

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer