OPEN-SOURCE SCRIPT
GK Trend Ribbon DAY + EMA200

GK Trend Ribbon DAY + EMA200
HOW IT WORKS
At its core, the script uses a lag-corrected EMA (Zero-Lag style source) to form the central trend line. Around this baseline, upper and lower bands are calculated using ATR(14) multiplied by a user-defined factor.
A trend state is only confirmed when price shows acceptance beyond the volatility band for three consecutive closes, aligned with the slope of the baseline:
Bullish State:
Price closes above the upper band for three bars while the baseline is rising.
Bearish State:
Price closes below the lower band for three bars while the baseline is falling.
If neither condition is met, the previous state is maintained to avoid unnecessary flips during consolidation.
This structure helps filter chop and prevents frequent signal changes in ranging markets.
Timeframe Guidance (Creator’s Pick)
For the cleanest results and least noise, this indicator is best used with the following timeframe hierarchy:
1H (Primary timeframe)
The main chart for this indicator. It offers the best balance between structure and responsiveness and is ideal for defining trade bias.
3H (Higher-timeframe confirmation)
Excellent for smoother trend states and holding directional moves with fewer interruptions.
30M (Secondary timing chart)
A good middle ground when the 1H is slow, while still maintaining clarity.
5M and 1M (Execution timeframes)
Best used for entries only when aligned with the 1H or 3H trend state. These lower timeframes provide faster signals but carry more noise if traded without higher-timeframe confirmation.
A simple workflow is to define direction on 3H → 1H, refine timing on 30M, and execute on 5M or 1M in the direction of the confirmed ribbon state.
Signals & Visuals
PREPARE GK BUY / PREPARE GK SELL
Intrabar warnings that appear when conditions are forming but not yet confirmed.
GK BUY / GK SELL
Printed only on a confirmed candle close when the trend state flips (one signal per flip).
Right-side Status HUD
Displays PREPARE warnings, bullish mode, bearish mode, or neutral/wait conditions.
EMA 200
Plotted separately to assist with broader trend alignment.
Notes
PREPARE warnings may appear and disappear before candle close if conditions fail.
This indicator is trend-based and may lag during sharp reversals.
Best results are achieved when combined with market structure, session context, and disciplined risk management.
Disclaimer
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk, and past performance does not guarantee future results.
HOW IT WORKS
At its core, the script uses a lag-corrected EMA (Zero-Lag style source) to form the central trend line. Around this baseline, upper and lower bands are calculated using ATR(14) multiplied by a user-defined factor.
A trend state is only confirmed when price shows acceptance beyond the volatility band for three consecutive closes, aligned with the slope of the baseline:
Bullish State:
Price closes above the upper band for three bars while the baseline is rising.
Bearish State:
Price closes below the lower band for three bars while the baseline is falling.
If neither condition is met, the previous state is maintained to avoid unnecessary flips during consolidation.
This structure helps filter chop and prevents frequent signal changes in ranging markets.
Timeframe Guidance (Creator’s Pick)
For the cleanest results and least noise, this indicator is best used with the following timeframe hierarchy:
1H (Primary timeframe)
The main chart for this indicator. It offers the best balance between structure and responsiveness and is ideal for defining trade bias.
3H (Higher-timeframe confirmation)
Excellent for smoother trend states and holding directional moves with fewer interruptions.
30M (Secondary timing chart)
A good middle ground when the 1H is slow, while still maintaining clarity.
5M and 1M (Execution timeframes)
Best used for entries only when aligned with the 1H or 3H trend state. These lower timeframes provide faster signals but carry more noise if traded without higher-timeframe confirmation.
A simple workflow is to define direction on 3H → 1H, refine timing on 30M, and execute on 5M or 1M in the direction of the confirmed ribbon state.
Signals & Visuals
PREPARE GK BUY / PREPARE GK SELL
Intrabar warnings that appear when conditions are forming but not yet confirmed.
GK BUY / GK SELL
Printed only on a confirmed candle close when the trend state flips (one signal per flip).
Right-side Status HUD
Displays PREPARE warnings, bullish mode, bearish mode, or neutral/wait conditions.
EMA 200
Plotted separately to assist with broader trend alignment.
Notes
PREPARE warnings may appear and disappear before candle close if conditions fail.
This indicator is trend-based and may lag during sharp reversals.
Best results are achieved when combined with market structure, session context, and disciplined risk management.
Disclaimer
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk, and past performance does not guarantee future results.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.