OPEN-SOURCE SCRIPT
업데이트됨 Atty Algo Trend Pro

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.
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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.