PROTECTED SOURCE SCRIPT
Dual MTF B-Xtrender EMAs

MTF B-Xtrender Color EMAs
Dual moving averages that change color based on multi-timeframe B-Xtrender histogram signals
This indicator applies B-Xtrender histogram logic (inspired by the original B-Xtrender oscillator) to color two independent moving averages based on different timeframe trend conditions. It provides a unique visual way to see trend alignment across multiple timeframes directly on your price chart.
What It Does
The indicator plots two customizable moving averages (EMA, SMA, or HMA) where each line changes color based on whether the B-Xtrender histogram is above or below zero on its respective timeframe:
Fast MA (default 34 EMA): Colors based on daily B-Xtrender signals
Light blue when B-Xtrender histogram > 0 (bullish)
Light purple when B-Xtrender histogram < 0 (bearish)
Slow MA (default 155 EMA): Colors based on 3-day B-Xtrender signals
White when B-Xtrender histogram > 0 (bullish)
Dark orange when B-Xtrender histogram < 0 (bearish)
B-Xtrender Logic
This indicator uses the B-Xtrender histogram calculation:
Short-term Xtrender: RSI of (EMA 5 - EMA 20), with RSI period of 15, minus 50
The histogram crossing above/below zero determines bullish/bearish coloring
Each MA independently evaluates its own timeframe's B-Xtrender signal
Key Features
✓ Multi-Timeframe Analysis: Each MA can reference different timeframes for B-Xtrender signals
✓ Flexible MA Types: Choose between EMA, SMA, or HMA for both fast and slow lines
✓ Customizable Lengths: Adjust MA periods to fit your trading style
✓ Independent Signals: Fast and slow MAs color independently based on their respective timeframes
✓ Clean Overlay: Thin lines that don't clutter your chart
✓ Optional Bar Coloring: Can enable bar colors based on fast MA signal
How To Use
Trend Alignment: When both MAs show bullish colors (light blue + white), it suggests alignment across timeframes
Divergence: When MAs show different colors, it indicates potential timeframe divergence
Customization: Adjust timeframes to match your trading strategy (e.g., 1H + 4H for intraday, or Daily + Weekly for swing trading)
Visual Enhancement Tip
For better visual distinction between bullish and bearish conditions, you can manually adjust the line styles after adding the indicator to your chart:
Click the indicator settings (gear icon)
Go to the "Style" tab
When the MAs display their bearish colors (light purple for Fast MA, dark orange for Slow MA), change those plot styles from "Solid" to "Dashed"
This creates a clear visual: solid lines = bullish, dashed lines = bearish
This optional styling makes trend changes instantly recognizable at a glance.
Settings
Fast MA Length (default: 34)
Fast MA Type (EMA/SMA/HMA)
Fast MA Timeframe (default: Daily)
Slow MA Length (default: 155)
Slow MA Type (EMA/SMA/HMA)
Slow MA Timeframe (default: 3-Day)
Optional bar coloring
Notes
B-Xtrender histogram parameters are fixed: Short L1=5, L2=20, L3=15, Long L1=20, L2=15
This is a visual trend tool, not a standalone trading system
Works on all timeframes and instruments
Colors are customizable in indicator settings after adding to chart
Credit: This indicator incorporates B-Xtrender oscillator logic as its signal mechanism, applied in a multi-timeframe moving average context.
Dual moving averages that change color based on multi-timeframe B-Xtrender histogram signals
This indicator applies B-Xtrender histogram logic (inspired by the original B-Xtrender oscillator) to color two independent moving averages based on different timeframe trend conditions. It provides a unique visual way to see trend alignment across multiple timeframes directly on your price chart.
What It Does
The indicator plots two customizable moving averages (EMA, SMA, or HMA) where each line changes color based on whether the B-Xtrender histogram is above or below zero on its respective timeframe:
Fast MA (default 34 EMA): Colors based on daily B-Xtrender signals
Light blue when B-Xtrender histogram > 0 (bullish)
Light purple when B-Xtrender histogram < 0 (bearish)
Slow MA (default 155 EMA): Colors based on 3-day B-Xtrender signals
White when B-Xtrender histogram > 0 (bullish)
Dark orange when B-Xtrender histogram < 0 (bearish)
B-Xtrender Logic
This indicator uses the B-Xtrender histogram calculation:
Short-term Xtrender: RSI of (EMA 5 - EMA 20), with RSI period of 15, minus 50
The histogram crossing above/below zero determines bullish/bearish coloring
Each MA independently evaluates its own timeframe's B-Xtrender signal
Key Features
✓ Multi-Timeframe Analysis: Each MA can reference different timeframes for B-Xtrender signals
✓ Flexible MA Types: Choose between EMA, SMA, or HMA for both fast and slow lines
✓ Customizable Lengths: Adjust MA periods to fit your trading style
✓ Independent Signals: Fast and slow MAs color independently based on their respective timeframes
✓ Clean Overlay: Thin lines that don't clutter your chart
✓ Optional Bar Coloring: Can enable bar colors based on fast MA signal
How To Use
Trend Alignment: When both MAs show bullish colors (light blue + white), it suggests alignment across timeframes
Divergence: When MAs show different colors, it indicates potential timeframe divergence
Customization: Adjust timeframes to match your trading strategy (e.g., 1H + 4H for intraday, or Daily + Weekly for swing trading)
Visual Enhancement Tip
For better visual distinction between bullish and bearish conditions, you can manually adjust the line styles after adding the indicator to your chart:
Click the indicator settings (gear icon)
Go to the "Style" tab
When the MAs display their bearish colors (light purple for Fast MA, dark orange for Slow MA), change those plot styles from "Solid" to "Dashed"
This creates a clear visual: solid lines = bullish, dashed lines = bearish
This optional styling makes trend changes instantly recognizable at a glance.
Settings
Fast MA Length (default: 34)
Fast MA Type (EMA/SMA/HMA)
Fast MA Timeframe (default: Daily)
Slow MA Length (default: 155)
Slow MA Type (EMA/SMA/HMA)
Slow MA Timeframe (default: 3-Day)
Optional bar coloring
Notes
B-Xtrender histogram parameters are fixed: Short L1=5, L2=20, L3=15, Long L1=20, L2=15
This is a visual trend tool, not a standalone trading system
Works on all timeframes and instruments
Colors are customizable in indicator settings after adding to chart
Credit: This indicator incorporates B-Xtrender oscillator logic as its signal mechanism, applied in a multi-timeframe moving average context.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.