Adaptive trend ribbon with pullback Entry and Conf signals, trend phase colors and optional layered filters.
Overview
This community script draws an adaptive trend average as a ribbon of bands around a center line. The ribbon widens and changes color with trend strength: strong, early or weak, bull or bear.
It prints Entry labels on pullbacks within the trend and Conf labels when price then closes beyond a tracked confirmation level, each with a short level line. Optional extras color the background or candles, or add a trend tracker line.
How it works
The center line has a base length of 40 and adapts its speed using directional efficiency over 14 bars: it reacts faster in clean moves and steadies in noise. Ribbon Spread (0.5) sets the gap between bands.
In Intraday mode an Entry needs at least two counter-trend bars; Scalping mode reacts faster and turns on the phase color engine. After an Entry, price must close beyond the Conf level within 30 bars, or the setup is dropped.
Directional flow is scored from recent bullish and bearish events, including swing breaks. Optional filters can require ribbon direction, ribbon structure, a higher timeframe, or another indicator's value to agree.
How to use it
- Use the ribbon color to see trend direction and strength.
- Some traders treat an Entry as a pullback to watch and a Conf as follow-through.
- Turn on the filter layers to see fewer signals that agree with more conditions.
- Use the phase colors in Scalping mode to spot weakening trends.
These are ways some traders read it, for learning. They are not trade signals.
Settings
| Setting | Default |
|---|---|
| Trend Average | |
| Signal ModeOptions: Intraday, Scalping | Intraday |
| Source | close |
| Trend Length | 40 |
| Ribbon Spread | 0.5 |
| Adaptive Sensitivity | 1.0 |
| Efficiency Length | 14 |
| Signals | |
| Show Entry | On |
| Show Conf | On |
| Confirmation Window | 30 |
| Min Pullback Bars | 2 |
Show all 39 settings
| Setting | Default |
|---|---|
| Event Lookback | 5 |
| Event Threshold | 0.5 |
| Swing Length | 5 |
| Label SizeOptions: Tiny, Small, Normal, Large | Normal |
| Level LineOptions: Dotted, Dashed, Solid | Dotted |
| Trend Phase Engine | |
| Phase Lookback | 10 |
| Phase Smoothing | 3 |
| Strong Phase Threshold | 0.4 |
| Layered Trend Filters | |
| Layer 1: Ribbon Direction | Off |
| Layer 2: Ribbon Structure | Off |
| Layer 3: Higher Timeframe | Off |
| External Chart Filter | |
| Source Filter | Off |
| Source ConditionOptions: Long: Above / Short: Below, Long: Below / Short: Above | Long: Above / Short: Below |
| Level Filter | Off |
| Level | 50.0 |
| Level ConditionOptions: Long: Below / Short: Above, Long: Above / Short: Below | Long: Below / Short: Above |
| Style | |
| Show Ribbon | On |
| Intraday Bull | #22AB94 |
| Bear | #F23645 |
| Strong Bull | #00E676 |
| Early Bull | #26C6A9 |
| Weak Bull | #2196F3 |
| Strong Bear | #FF1744 |
| Early Bear | #FF6E8A |
| Weak Bear | #FF9800 |
| Ribbon Fill Transparency | 85 |
| Trend Visuals | |
| Trend Background Color | Off |
| Trend Candle Coloring | Off |
| Trend Tracker Line | Off |
Alerts
Members can create an alert on its conditions (for example "Long Entry", "Short Entry", "Long Conf", "Short Conf", "Bullish Trend", "Bearish Trend") from the chart's alert dialog; alerts from indicators run while ZoroCharts is open in the browser.
Notes and limits
- Signals follow the script's own rules; filters change which ones you see.
- The higher-timeframe filter needs an extra data request.
Education only. Not financial advice. Indicators mark what happened on the chart; they do not predict what price will do. Trading futures, forex, crypto and other markets carries a high level of risk and may not be suitable for everyone.
