OPEN-SOURCE SCRIPT

ANDROMEDA MTF - TrendSync

270
This script is a Multi-Timeframe (MTF) trend-following system designed to capture pullbacks in direction of the primary trend.

Rather than relying on a single indicator, ANDROMEDA MTF utilizes a specific mashup of Moving Averages, MACD, and RSI to establish a robust rule-based logic. The primary goal of combining these tools is to filter out lower-timeframe market noise and only authorize entries when momentum and structural trend are perfectly aligned on a higher timeframe.

⚙️ CORE MECHANICS (The Mashup Logic):
To avoid false signals during choppy markets, the script requires three distinct conditions to agree on the Higher Timeframe (MTF) before defining a trend:

Baseline Trend Structure: Uses two customizable Moving Averages (EMA or SMA). The fast MA must be above/below the slow MA to indicate directional bias.

Momentum Confirmation (Slope): The algorithm calculates the mathematical slope of the slow MA (MA - MA[1]). The trend is only validated if the slow MA is actively sloping in the trade direction, preventing entries in flat/consolidating markets.

Volume/Momentum Filter: The MACD Histogram must confirm the bias (Histogram > 0 for longs, < 0 for shorts).

🎯 ENTRY TRIGGERS & VISUAL FILTERS:

The Pullback Trigger: Once the Higher Timeframe establishes a firm trend (Blue for Bullish, Red for Bearish), the script monitors the local timeframe. A Buy/Sell signal is generated exactly when the local price pulls back and crosses the MTF Moving Averages, offering a discounted entry in the direction of the macro trend.

Exhaustion Filter (RSI): A fast RSI operates in the background. It overrides the candle colors (turning them orange by default) to visually warn the trader that the asset has reached overbought/oversold extremes, cautioning against late entries.

🛠️ HOW TO USE:
Apply the indicator to your execution timeframe (e.g., 15m) and set the MTF parameter in the settings to your macro directional timeframe (e.g., 240 for 4H). Wait for the trend lines to turn Blue/Red and enter on the printed signal arrows during pullbacks.

🇧🇷 (PORTUGUÊS)
Este script é um sistema seguidor de tendência Multi-Timeframe (MTF) projetado para capturar pullbacks na direção da tendência primária.

⚙️ COMO FUNCIONA (A Lógica):
Para evitar sinais falsos, o script exige que 3 condições concordem no Tempo Gráfico Maior (MTF) antes de definir a tendência:

Estrutura: Duas médias móveis (EMA/SMA). A rápida deve estar alinhada com a lenta.

Momento (Inclinação): O algoritmo calcula a inclinação matemática da média lenta. A tendência só é validada se a média estiver apontando para a direção da operação.

Filtro MACD: O Histograma do MACD deve confirmar o fluxo (Maior que zero para compras).

🎯 GATILHOS E FILTROS VISUAIS:

Gatilho: Quando o tempo gráfico maior estabelece a tendência (Azul para Alta, Vermelho para Baixa), o script gera o sinal de entrada no momento em que o preço atual faz um pullback e toca as médias móveis do tempo gráfico maior.

Filtro de Exaustão (RSI): Um RSI rápido colore os candles de laranja para avisar visualmente que o ativo chegou a uma zona de sobrecompra/sobrevenda, evitando que você entre muito tarde no movimento.

COMO USAR: Adicione o indicador no seu gráfico de execução (ex: M15) e configure o parâmetro MTF no menu para o seu gráfico de referência (ex: 240 para H4). Aguarde as médias ficarem azuis ou vermelhas e opere os sinais de seta a favor da co

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.