OPEN-SOURCE SCRIPT
1D & 1W Institutional Trend

The 1D & 1W Institutional Trend is a multi-timeframe (MTF) trend-following system designed to align traders with major "macro" market moves. Instead of relying on noisy intraday data, this indicator pulls data from the Daily (1D) and Weekly (1W) timeframes to construct a robust trend baseline, regardless of the chart timeframe you are currently viewing.
The core logic is based on the interaction between a Fast Institutional EMA (Daily) and a Slow Institutional EMA (Weekly). When the Daily trend crosses above the Weekly trend, it signals a significant shift in market structure. To ensure signal quality, the script incorporates a "Smart Filter" engine that checks for Momentum (RSI) and Volatility (ATR) before generating entry signals, preventing trades during exhausted or dead markets.
Key Features
Multi-Timeframe Engine: Projects Daily and Weekly moving averages onto lower timeframe charts (e.g., 1H or 4H) to show the "Big Picture."
Non-Repainting Logic: Utilizes closed-bar data to ensure that historical signals match live trading conditions strictly.
Algorithmic Filtering:
Momentum Filter: Rejects Buy signals if RSI is overbought and Sell signals if RSI is oversold.
Volatility Filter: Rejects signals during low-volatility "compression" zones using ATR.
Institutional Dashboard: A data panel tracking the macro trend status, trend strength (Spread %), and filter conditions.
How to Use
1. The Trend Cloud The visual core of the indicator is the "Cloud" formed between the two Moving Averages.
Green Cloud: The Daily Average is above the Weekly Average. The macro trend is Bullish. Look for long positions.
Red Cloud: The Daily Average is below the Weekly Average. The macro trend is Bearish. Look for short positions.
The Midline: The gray line represents the "Fair Value" price between the two timeframes. It often acts as dynamic support or resistance during a trend.
2. Signal Triangles Discrete shapes appear only when a crossover is confirmed AND all filters are met.
Up Triangle: Confirmed Bullish Crossover (Daily crosses over Weekly) + RSI is not overbought + Volatility is active.
Down Triangle: Confirmed Bearish Crossover (Daily crosses under Weekly) + RSI is not oversold + Volatility is active.
3. The Dashboard Located in the bottom right, this table provides a health check of the current trend:
Macro Trend: Displays BULLISH or BEARISH based on the cloud direction.
Trend Spread %: Measures the distance between the two EMAs. A widening percentage indicates a strengthening trend, while a narrowing percentage suggests momentum loss.
RSI Condition: Displays "SAFE" (good to trade) or "EXTENDED" (too risky).
Volatility: Displays "EXPANSION" (good movement) or "COMPRESSION" (flat market).
4. Timeframe Rules Because this indicator uses Daily and Weekly data, your chart timeframe must be lower than the Fast Trend Timeframe.
Correct: Viewing a 1-Hour chart with 1D/1W settings.
Incorrect: Viewing a Weekly chart with 1D/1W settings (this will trigger an error message on the screen).
Disclaimer: This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a guarantee of future results.
The core logic is based on the interaction between a Fast Institutional EMA (Daily) and a Slow Institutional EMA (Weekly). When the Daily trend crosses above the Weekly trend, it signals a significant shift in market structure. To ensure signal quality, the script incorporates a "Smart Filter" engine that checks for Momentum (RSI) and Volatility (ATR) before generating entry signals, preventing trades during exhausted or dead markets.
Key Features
Multi-Timeframe Engine: Projects Daily and Weekly moving averages onto lower timeframe charts (e.g., 1H or 4H) to show the "Big Picture."
Non-Repainting Logic: Utilizes closed-bar data to ensure that historical signals match live trading conditions strictly.
Algorithmic Filtering:
Momentum Filter: Rejects Buy signals if RSI is overbought and Sell signals if RSI is oversold.
Volatility Filter: Rejects signals during low-volatility "compression" zones using ATR.
Institutional Dashboard: A data panel tracking the macro trend status, trend strength (Spread %), and filter conditions.
How to Use
1. The Trend Cloud The visual core of the indicator is the "Cloud" formed between the two Moving Averages.
Green Cloud: The Daily Average is above the Weekly Average. The macro trend is Bullish. Look for long positions.
Red Cloud: The Daily Average is below the Weekly Average. The macro trend is Bearish. Look for short positions.
The Midline: The gray line represents the "Fair Value" price between the two timeframes. It often acts as dynamic support or resistance during a trend.
2. Signal Triangles Discrete shapes appear only when a crossover is confirmed AND all filters are met.
Up Triangle: Confirmed Bullish Crossover (Daily crosses over Weekly) + RSI is not overbought + Volatility is active.
Down Triangle: Confirmed Bearish Crossover (Daily crosses under Weekly) + RSI is not oversold + Volatility is active.
3. The Dashboard Located in the bottom right, this table provides a health check of the current trend:
Macro Trend: Displays BULLISH or BEARISH based on the cloud direction.
Trend Spread %: Measures the distance between the two EMAs. A widening percentage indicates a strengthening trend, while a narrowing percentage suggests momentum loss.
RSI Condition: Displays "SAFE" (good to trade) or "EXTENDED" (too risky).
Volatility: Displays "EXPANSION" (good movement) or "COMPRESSION" (flat market).
4. Timeframe Rules Because this indicator uses Daily and Weekly data, your chart timeframe must be lower than the Fast Trend Timeframe.
Correct: Viewing a 1-Hour chart with 1D/1W settings.
Incorrect: Viewing a Weekly chart with 1D/1W settings (this will trigger an error message on the screen).
Disclaimer: This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a guarantee of future results.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.