OPEN-SOURCE SCRIPT
TrendFusion Pro | Multi-MA + ADX + KAMA + VWAP Hariss 369

A flexible multi-timeframe trend-following indicator designed to identify bullish and bearish market conditions using configurable Moving Average alignment.
The system allows traders to combine up to three Moving Averages, with independent settings for MA type, length and timeframe. Supported MA types include EMA, SMA, WMA, VWMA, RMA and HMA.
Core Features
• Three independently configurable Moving Averages
• EMA, SMA, WMA, VWMA, RMA and HMA support
• Individual timeframe selection for each MA
• Flexible MA alignment logic for BUY and SELL conditions
• Optional DMI/ADX trend-strength filter
• Optional Higher-Timeframe KAMA trend filter
• Optional Higher-Timeframe VWAP filter
• ATR-based dynamic trailing stop
• Separate long and short ATR trailing stops
• BUY and SELL signals with configurable colours
• Alert conditions for BUY and SELL signals
• Clean chart-based trend visualization
How the Trend Logic Works
When multiple MAs are enabled, the indicator looks for price and MA alignment.
For bullish conditions, price must be above the selected MAs and the enabled MAs must be properly aligned from faster to slower.
For bearish conditions, price must be below the selected MAs and the enabled MAs must be aligned in the opposite direction.
The indicator can also require confirmation from:
• DMI/ADX
• Higher-Timeframe KAMA
• Higher-Timeframe VWAP
These filters are optional and can be enabled or disabled according to the trader's methodology.
ATR Trailing Stop
The indicator calculates a dynamic ATR-based trailing stop.
For long conditions, the stop can only move upward as the trend progresses.
For short conditions, the stop can only move downward.
This provides a dynamic way to manage trend-following trades while allowing the trader to adjust ATR length and multiplier according to the market and timeframe.
Suggested Use
The indicator can be used for:
• Trend identification
• Trend-following entries
• Pullback confirmation
• Multi-timeframe market analysis
• Dynamic trailing-stop management
• Alert-based trading workflows
The default configuration uses 20 EMA, 50 EMA and 200 EMA, but these settings are fully customizable.
Different combinations can be tested depending on the instrument, timeframe and trading style.
Important
This indicator is designed as a technical-analysis and decision-support tool. It does not guarantee profitable trades and should not be treated as a standalone trading system.
Always test settings on historical data and in real-time market conditions before using them with real capital.
The system allows traders to combine up to three Moving Averages, with independent settings for MA type, length and timeframe. Supported MA types include EMA, SMA, WMA, VWMA, RMA and HMA.
Core Features
• Three independently configurable Moving Averages
• EMA, SMA, WMA, VWMA, RMA and HMA support
• Individual timeframe selection for each MA
• Flexible MA alignment logic for BUY and SELL conditions
• Optional DMI/ADX trend-strength filter
• Optional Higher-Timeframe KAMA trend filter
• Optional Higher-Timeframe VWAP filter
• ATR-based dynamic trailing stop
• Separate long and short ATR trailing stops
• BUY and SELL signals with configurable colours
• Alert conditions for BUY and SELL signals
• Clean chart-based trend visualization
How the Trend Logic Works
When multiple MAs are enabled, the indicator looks for price and MA alignment.
For bullish conditions, price must be above the selected MAs and the enabled MAs must be properly aligned from faster to slower.
For bearish conditions, price must be below the selected MAs and the enabled MAs must be aligned in the opposite direction.
The indicator can also require confirmation from:
• DMI/ADX
• Higher-Timeframe KAMA
• Higher-Timeframe VWAP
These filters are optional and can be enabled or disabled according to the trader's methodology.
ATR Trailing Stop
The indicator calculates a dynamic ATR-based trailing stop.
For long conditions, the stop can only move upward as the trend progresses.
For short conditions, the stop can only move downward.
This provides a dynamic way to manage trend-following trades while allowing the trader to adjust ATR length and multiplier according to the market and timeframe.
Suggested Use
The indicator can be used for:
• Trend identification
• Trend-following entries
• Pullback confirmation
• Multi-timeframe market analysis
• Dynamic trailing-stop management
• Alert-based trading workflows
The default configuration uses 20 EMA, 50 EMA and 200 EMA, but these settings are fully customizable.
Different combinations can be tested depending on the instrument, timeframe and trading style.
Important
This indicator is designed as a technical-analysis and decision-support tool. It does not guarantee profitable trades and should not be treated as a standalone trading system.
Always test settings on historical data and in real-time market conditions before using them with real capital.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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.