OPEN-SOURCE SCRIPT
تم تحديثه

MTF TREND SIGNALS

926
**Title**
MTF TREND SIGNALS

**Short Description**
MTF TREND SIGNALS combines the classic AK MACD BB concept by Algokid with multi-timeframe trend signals, RSI breakout logic, EMA trend zones, ADX/DI confirmation, trade boxes, a high probability signal message, and a simple win-rate panel.

**Publication Description**
MTF TREND SIGNALS is a visual decision-support indicator built to help traders read trend direction, momentum strength, and trade structure in one place.

The lower pane is based on the original AK MACD BB concept by Algokid. It plots MACD as circles against Bollinger Bands, helping users see when MACD is expanding beyond its normal range.

This version adds multi-timeframe trend signals, RSI breakout signals, EMA trend zones, RSI candle highlights, ADX/DI confirmation, a trade box, a high probability message, and a simple win-rate panel.

**How The Indicator Works**

MACD BB in the lower pane
The indicator is checking how strong momentum is.
Most people know Bollinger Bands on price. They show when price is moving outside its normal range. So this indicator helps see when market momentum is becoming unusually strong.
This indicator does something different. It puts Bollinger Bands around MACD instead of price.
MACD is a momentum line. It compares a fast moving average with a slow moving average.
So the indicator asks:
Is momentum normal, or is momentum stretching strongly?
The middle line is the average MACD.(not there)
The upper band is the normal upper range of MACD.
The lower band is the normal lower range of MACD.
When MACD goes above the upper band (+1 Standard deviation of the mean), it means bullish momentum is stronger than usual.
When MACD goes below the lower band (-1 Standard deviation of the mean), it means bearish momentum is stronger than usual.
The zero line helps you understand the bigger picture:

The zero line gives extra context:

For the AK MACD BB indicator, the zero line helps you understand whether a Bollinger Band break is happening in the stronger or weaker zone.
Above Upper Band And Above Zero
This is stronger bullish momentum. MACD is stretched upward and already in bullish territory.
Above Upper Band But Below Zero
This can be an early bullish recovery. Momentum is improving, but MACD is still below zero, so the wider bias may not be fully bullish yet.
Below Lower Band And Below Zero
This is stronger bearish momentum. MACD is stretched downward and already in bearish territory.
Below Lower Band But Above Zero
This can be early bearish weakening. Momentum is dropping, but MACD is still above zero, so the wider bias may not be fully bearish yet.

MACD BB indicator, the zero line helps you understand whether a Bollinger Band break is happening in the stronger or weaker zone.

**RSI Colour Fill In The MACD Pane**
The fill between the MACD Bollinger Bands is coloured using RSI and RSI SMA.

When RSI is above its SMA, the fill shows one momentum condition.

When RSI is below its SMA, the fill shows the opposite momentum condition.

When RSI is above 55 and above its SMA, the fill shows stronger bullish pressure.

When RSI is below 45 and below its SMA, the fill shows stronger bearish pressure.

**EMA Trend Zones**
The main chart shows filled EMA zones:

- EMA 9/21 = short-term trend
- EMA 30/55 = medium-term trend
- EMA 100/200 = longer-term trend

When the faster EMA is above the slower EMA, the zone is bullish. When the faster EMA is below the slower EMA, the zone is bearish.

This gives a quick visual view of whether the market is trending, mixed, or changing direction.

**Multi-Timeframe Buy And Sell Signals**
The B/S signals check whether price and MACD agree across the current chart and a higher timeframe.

A buy signal looks for price above key EMAs and bullish MACD alignment.

A sell signal looks for price below key EMAs and bearish MACD alignment.

This helps reduce signals that are fighting the wider trend.

**RSI Breakout Signals**
RSI breakout signals begin with an RSI trigger candle.

A buy setup starts when RSI crosses above 55. That candle becomes the reference candle. A buy signal can appear when price breaks above that candle’s high.

A sell setup starts when RSI crosses below 45. That candle becomes the reference candle. A sell signal can appear when price breaks below that candle’s low.

The highlighted RSI candles make these trigger points easier to see.

**ADX And DI Confirmation**
ADX and DI are used to check trend strength and direction.

ADX measures trend strength.

+DI shows bullish directional pressure.

-DI shows bearish directional pressure.

For bullish confirmation, ADX must be above the required threshold and +DI must be above the DI threshold.

For bearish confirmation, ADX must be above the required threshold and -DI must be above the DI threshold.

The script uses shared ADX/DI values across the main chart signals, the lower MACD pane, and the high probability message.

Default ADX thresholds:

- Lower timeframe: 20
- Mid timeframe: 18
- Higher timeframe: 12

Lower timeframes use a higher ADX threshold to help filter noisy moves. Higher timeframes use a lower threshold because larger timeframe trends often develop more slowly.

**High Probability Signal**
The High Probability Signal appears when the normal buy/sell signal, ADX/DI, and RSI conditions agree.

High Probability Buy:

- Buy signal is present
- ADX is above the shared threshold
- +DI is above the DI threshold
- RSI is above 55
- RSI is above RSI SMA

High Probability Sell:

- Sell signal is present
- ADX is above the shared threshold
- -DI is above the DI threshold
- RSI is below 45
- RSI is below RSI SMA

The message flickers on the chart so stronger alignment is easy to notice.

**Trade Box**
When a buy or sell signal appears, the indicator can draw a trade box on the main chart.

The trade box shows:

- Entry
- Stop loss
- TP1
- TP2
- TP3
- TP4

Labels to the right show the exact price level and percentage distance from entry.

Stop loss can be based on ATR, swing high/low, or percentage.

Take-profit levels can be based on ATR or percentage.

**Win-Rate Panel**
The panel gives a simple visual summary of how signals are performing on the chart.

It shows:

- Long win rate
- Short win rate
- TP1 win rate
- TP2 win rate
- TP3 win rate
- TP4 win rate
- Wins and losses for each category

Long and short win rates are based on whether TP1 is reached before stop loss.

TP1 to TP4 win rates show how often each target is reached before stop loss.

This is not a full backtest engine, but it gives useful feedback on how the current settings are behaving.

**How To Use It**
Try Replay it on Small and large time frames to see how it works.
It has been made to be very simple and intuitive.

  1. Use the EMA zones first to understand trend structure.
  2. Use the MACD Bollinger Band circles to judge the breakout of 1 standard deviation and above or below zero line to understand the strength of 'Long' or 'short' trends.
  3. Use the RSI fill and RSI candle highlights to read momentum pressure.
  4. Use B/S labels as possible trade signals. 2 types 1, MTF trend based and 2. RSI based
  5. Use ADX/DI confirmation to check whether the move has enough strength.
  6. Use the 'High Probability Signal' notice as the strongest visual confirmation.
  7. Use the trade box to plan risk and targets.
  8. Use the win-rate panel to review how the current settings are performing.


**Best For**
  • Intraday trend following
  • Multi-timeframe confirmation
  • RSI momentum trading
  • Visual trade planning
  • Reading trend structure on fast-moving charts


**Important Notes**
This indicator is a decision-support tool only.

It is not financial advice.

No indicator can guarantee profitable trades.

Always use your own risk management.

Always test settings before using them live.

Signals should be confirmed with price action, market structure, and broader context.

**Attribution**
Original AK MACD BB concept by Algokid, created February 24, 2015.

Modified into MTF TREND SIGNALS by drsamgeorge using AI assistance.

Shared under Creative Commons Attribution 4.0 International License:
creativecommons.org/licenses/by/4.0/

ملاحظات الأخبار
ADX now defaults to above 12 across lower, middle, higher, and manual timeframe settings. Buy signals require +DI > 20, sell signals require -DI > 20, and all these values remain configurable in settings.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.