OPEN-SOURCE SCRIPT
Обновлено

Atty Algo Trend Pro

270
A dual-moving-average trend ribbon. Two MAs (default 4/9) ride with price, and the space between them is colored as one continuum, not three fixed buckets:

Green - fast MA above slow MA by more than the neutral zone
Red - fast MA below slow MA by more than the neutral zone
Yellow - the two are inside the neutral zone, indecision / turn bar

Color saturates toward full green or red as the gap widens, so trend strength is visible at a glance. The neutral zone is measured in ATR, not fixed points, so one setting works across futures and stocks. Pullbacks that reach the ribbon and hold are continuation signals.

Visualization tool only, not a signal generator. No backtest has been run and it carries no performance claims - use it to read trend context, not as a standalone entry trigger.
Информация о релизе
Chart preview updated so it shows this indicator on its own, without other scripts on the chart. No functional changes.
Информация о релизе
Atty Algo Trend Pro is a dual moving-average ribbon. The thing you read is the band between the two lines, not the lines themselves — both share one color, and that color is set by how far apart they are.

HOW TO READ IT

GREEN Fast MA is above the slow MA by more than the neutral zone.
RED Fast MA is below the slow MA by more than the neutral zone.
YELLOW The two are inside the neutral zone. Indecision — this is the turn bar, and trend is not readable here.

The color is a continuum rather than three buckets. A ribbon that has only just cleared the neutral zone renders close to yellow and saturates toward full green or red as the gap widens, so trend strength is visible without reading any numbers. A dashboard in the corner reports the current state, how many bars it has held, ribbon width in ATR, the higher-timeframe read, and whether the session window is open.

THE NEUTRAL ZONE

Two MAs cross constantly, and most crosses mean nothing. The neutral zone is the distance they have to separate before the ribbon commits to a direction. It is measured in ATR by default, so one setting behaves the same on GC, NQ, ES, and a $5 stock. Fixed points and percent-of-price are available instead.

Direction also has to survive a confirmation count — the gap must stay clear of the zone for N consecutive closes (default 2) before the ribbon commits. Setting it to 1 commits on the first qualifying close and whipsaws.

SESSION TREND GATE

The opening drive lies about direction. With the gate on (default 10:00-16:00 ET), no flip signals or alerts fire outside that window. The ribbon stays readable the whole session — outside the window it renders dimmed, greyed out, or unchanged, your choice — because a chart you cannot read at 08:30 is useless. Only signals are gated, never the reading.

SIGNALS

- BULL / BEAR flip labels when the ribbon commits to a new direction
- Turn-bar highlight when the ribbon pinches into the neutral zone
- Ribbon-hold triangles: a pullback that reaches the band and closes back with the trend

Optional higher-timeframe confirmation requires the same engine on a higher timeframe to already agree before a flip fires. Alerts exist for all five events.

SETTINGS THAT MATTER

Moving average type and lengths (SMA 4 / 9 is the reference build), neutral-zone mode and size, confirmation bars, the session window, and higher-timeframe confirmation. Ribbon offset pushes the whole band away from price onto the side price should not be trading — below in an uptrend, above in a downtrend. That offset is cosmetic; the engine always reads the un-offset MAs.

NOTES

Everything evaluates on bar close. Nothing repaints after close.

This is a trend-reading tool, not a system. There are no targets, no stops, and no position sizing, and no backtest is published with it — treat the flips and holds as context for your own decisions, not as entries.
Информация о релизе
v1.6 — non-repainting fix.

The higher-timeframe read used lookahead_off, so history was always clean, but it had no [1] offset and no confirmation gate. On the forming higher-timeframe bar the value could still change, which meant a flip label could appear and then vanish before that bar closed. It now takes the last CLOSED higher-timeframe bar. The cost is one HTF bar of lag, which is the honest price for a value that does not move under you.

Every signal, flag and alert is now gated on barstate.isconfirmed as well. Closed bars are unaffected, so nothing in history changes — only the live bar stops flickering.

This only ever affected users who switched higher-timeframe confirmation on, which is off by default. Fixing it anyway, because a script that shows you something in history that was not on screen at the time is the exact problem this tool is supposed to avoid.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.