OPEN-SOURCE SCRIPT
ANDROMEDA - TrendSync

ANDROMEDA - TrendSync
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
Trend Sync is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This indicator combines the power of Moving Averages (MA), MACD , and a visual RSI-based filter to validate both trend direction and timing for entries. It's goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
---
WALKTHROUGH
This indicator is built for traders seeking to operate in the direction of established trends. It's core principle is to identify and validate current trend conditions, and then signal entry opportunities during pullbacks to key moving averages.
Trend identification is achieved through the alignment of two moving averages. When these MAs are crossed and angled in the same direction, they confirm that a trend is in progress. To double-confirm trend direction, the MACD histogram is used—only. When both the MAs and MACD are aligned in the same direction, then the trend is considered valid.
Once all trend criteria are met, a dynamic coloring system is activated to visually reinforce the trend across the candles and moving averages.
To avoid poor entries during market exhaustion, an RSI-based filter is used. This short-term RSI highlights overbought or oversold zones, helping traders filter trades in extreme price conditions.
Only when the trend is validated and price pulls back to one of the MAs will a buy/sell signal be triggered, aligning momentum, price action and timing into a single actionable setup.
This combination ensures that each component plays a specific role:
i) Moving Averages define the trend
ii) MACD validates it
iii) RSI filters noise
iv) Intrabar price action triggers entries
This synchronism helps improve decision-making and entry timing, especially for swing and intraday traders.
---
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
---
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
---
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
Trend Sync is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This indicator combines the power of Moving Averages (MA), MACD , and a visual RSI-based filter to validate both trend direction and timing for entries. It's goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
---
WALKTHROUGH
This indicator is built for traders seeking to operate in the direction of established trends. It's core principle is to identify and validate current trend conditions, and then signal entry opportunities during pullbacks to key moving averages.
Trend identification is achieved through the alignment of two moving averages. When these MAs are crossed and angled in the same direction, they confirm that a trend is in progress. To double-confirm trend direction, the MACD histogram is used—only. When both the MAs and MACD are aligned in the same direction, then the trend is considered valid.
Once all trend criteria are met, a dynamic coloring system is activated to visually reinforce the trend across the candles and moving averages.
To avoid poor entries during market exhaustion, an RSI-based filter is used. This short-term RSI highlights overbought or oversold zones, helping traders filter trades in extreme price conditions.
Only when the trend is validated and price pulls back to one of the MAs will a buy/sell signal be triggered, aligning momentum, price action and timing into a single actionable setup.
This combination ensures that each component plays a specific role:
i) Moving Averages define the trend
ii) MACD validates it
iii) RSI filters noise
iv) Intrabar price action triggers entries
This synchronism helps improve decision-making and entry timing, especially for swing and intraday traders.
---
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
---
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
---
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。