Zero Lag Trend Signals (MTF) [AlgoAlpha]// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © AlgoAlpha
//@version=5
indicator("Zero Lag Trend Signals (MTF) ", shorttitle="AlgoAlpha - 0️⃣Zero Lag Signals", overlay=true)
length = input.int(70, "Length", tooltip = "The Look-Back window for the Zero-Lag EMA calculations", group = "Main Calculations")
mult = input.float(1.2, "Band Multiplier", tooltip = "This value controls the thickness of the bands, a larger value makes the indicato less noisy", group = "Main Calculations")
t1 = input.timeframe("5", "Time frame 1", group = "Extra Timeframes")
t2 = input.timeframe("15", "Time frame 2", group = "Extra Timeframes")
t3 = input.timeframe("60", "Time frame 3", group = "Extra Timeframes")
t4 = input.timeframe("240", "Time frame 4", group = "Extra Timeframes")
t5 = input.timeframe("1D", "Time frame 5", group = "Extra Timeframes")
green = input.color(#00ffbb, "Bullish Color", group = "Appearance")
red = input.color(#ff1100, "Bearish Color", group = "Appearance")
src = close
lag = math.floor((length - 1) / 2)
zlema = ta.ema(src + (src - src ), length)
volatility = ta.highest(ta.atr(length), length*3) * mult
var trend = 0
if ta.crossover(close, zlema+volatility)
trend := 1
if ta.crossunder(close, zlema-volatility)
trend := -1
zlemaColor = trend == 1 ? color.new(green, 70) : color.new(red, 70)
m = plot(zlema, title="Zero Lag Basis", linewidth=2, color=zlemaColor)
upper = plot(trend == -1 ? zlema+volatility : na, style = plot.style_linebr, color = color.new(red, 90), title = "Upper Deviation Band")
lower = plot(trend == 1 ? zlema-volatility : na, style = plot.style_linebr, color = color.new(green, 90), title = "Lower Deviation Band")
fill(m, upper, (open + close) / 2, zlema+volatility, color.new(red, 90), color.new(red, 70))
fill(m, lower, (open + close) / 2, zlema-volatility, color.new(green, 90), color.new(green, 70))
plotshape(ta.crossunder(trend, 0) ? zlema+volatility : na, "Bearish Trend", shape.labeldown, location.absolute, red, text = "▼", textcolor = chart.fg_color, size = size.small)
plotshape(ta.crossover(trend, 0) ? zlema-volatility : na, "Bullish Trend", shape.labelup, location.absolute, green, text = "▲", textcolor = chart.fg_color, size = size.small)
plotchar(ta.crossover(close, zlema) and trend == 1 and trend == 1 ? zlema-volatility*1.5 : na, "Bullish Entry", "▲", location.absolute, green, size = size.tiny)
plotchar(ta.crossunder(close, zlema) and trend == -1 and trend == -1 ? zlema+volatility*1.5 : na, "Bearish Entry", "▼", location.absolute, red, size = size.tiny)
s1 = request.security(syminfo.tickerid, t1, trend)
s2 = request.security(syminfo.tickerid, t2, trend)
s3 = request.security(syminfo.tickerid, t3, trend)
s4 = request.security(syminfo.tickerid, t4, trend)
s5 = request.security(syminfo.tickerid, t5, trend)
s1a = s1 == 1 ? "Bullish" : "Bearish"
s2a = s2 == 1 ? "Bullish" : "Bearish"
s3a = s3 == 1 ? "Bullish" : "Bearish"
s4a = s4 == 1 ? "Bullish" : "Bearish"
s5a = s5 == 1 ? "Bullish" : "Bearish"
if barstate.islast
var data_table = table.new(position=position.top_right, columns=2, rows=6, bgcolor=chart.bg_color, border_width=1, border_color=chart.fg_color, frame_color=chart.fg_color, frame_width=1)
table.cell(data_table, text_halign=text.align_center, column=0, row=0, text="Time Frame", text_color=chart.fg_color)
table.cell(data_table, text_halign=text.align_center, column=1, row=0, text="Signal", text_color=chart.fg_color)
table.cell(data_table, text_halign=text.align_center, column=0, row=1, text=t1, text_color=chart.fg_color)
table.cell(data_table, text_halign=text.align_center, column=1, row=1, text=s1a, text_color=chart.fg_color, bgcolor=s1a == "Bullish" ? color.new(green, 70) : color.new(red, 70))
table.cell(data_table, text_halign=text.align_center, column=0, row=2, text=t2, text_color=chart.fg_color)
table.cell(data_table, text_halign=text.align_center, column=1, row=2, text=s2a, text_color=chart.fg_color, bgcolor=s2a == "Bullish" ? color.new(green, 70) : color.new(red, 70))
table.cell(data_table, text_halign=text.align_center, column=0, row=3, text=t3, text_color=chart.fg_color)
table.cell(data_table, text_halign=text.align_center, column=1, row=3, text=s3a, text_color=chart.fg_color, bgcolor=s3a == "Bullish" ? color.new(green, 70) : color.new(red, 70))
table.cell(data_table, text_halign=text.align_center, column=0, row=4, text=t4, text_color=chart.fg_color)
table.cell(data_table, text_halign=text.align_center, column=1, row=4, text=s4a, text_color=chart.fg_color, bgcolor=s4a == "Bullish" ? color.new(green, 70) : color.new(red, 70))
table.cell(data_table, text_halign=text.align_center, column=0, row=5, text=t5, text_color=chart.fg_color)
table.cell(data_table, text_halign=text.align_center, column=1, row=5, text=s5a, text_color=chart.fg_color, bgcolor=s5a == "Bullish" ? color.new(green, 70) : color.new(red, 70))
/////////////////////////////////////////ALERTS FOR SMALL ARROWS (ENTRY SIGNALS)
alertcondition(ta.crossover(close, zlema) and trend == 1 and trend == 1, "Bullish Entry Signal",
message="Bullish Entry Signal detected. Consider entering a long position.")
alertcondition(ta.crossunder(close, zlema) and trend == -1 and trend == -1, "Bearish Entry Signal",
message="Bearish Entry Signal detected. Consider entering a short position.")
/////////////////////////////////////////ALERTS FOR TREND CONDITIONS
alertcondition(ta.crossover(trend, 0), "Bullish Trend")
alertcondition(ta.crossunder(trend, 0), "Bearish Trend")
alertcondition(ta.cross(trend, 0), "(Bullish or Bearish) Trend")
alertcondition(ta.crossover(s1, 0), "Bullish Trend Time Frame 1")
alertcondition(ta.crossunder(s1, 0), "Bearish Trend Time Frame 1")
alertcondition(ta.cross(s1, 0), "(Bullish or Bearish) Trend Time Frame 1")
alertcondition(ta.crossover(s2, 0), "Bullish Trend Time Frame 2")
alertcondition(ta.crossunder(s2, 0), "Bearish Trend Time Frame 2")
alertcondition(ta.cross(s2, 0), "(Bullish or Bearish) Trend Time Frame 2")
alertcondition(ta.crossover(s3, 0), "Bullish Trend Time Frame 3")
alertcondition(ta.crossunder(s3, 0), "Bearish Trend Time Frame 3")
alertcondition(ta.cross(s3, 0), "(Bullish or Bearish) Trend Time Frame 3")
alertcondition(ta.crossover(s4, 0), "Bullish Trend Time Frame 4")
alertcondition(ta.crossunder(s4, 0), "Bearish Trend Time Frame 4")
alertcondition(ta.cross(s4, 0), "(Bullish or Bearish) Trend Time Frame 4")
alertcondition(ta.crossover(s5, 0), "Bullish Trend Time Frame 5")
alertcondition(ta.crossunder(s5, 0), "Bearish Trend Time Frame 5")
alertcondition(ta.cross(s5, 0), "(Bullish or Bearish) Trend Time Frame 5")
alertcondition(ta.crossover(close, zlema) and trend == 1 and trend == 1, "Bullish Entry")
alertcondition(ta.crossunder(close, zlema) and trend == -1 and trend == -1, "Bearish Entry")
bullishAgreement = s1 == 1 and s2 == 1 and s3 == 1 and s4 == 1 and s5 == 1
bearishAgreement = s1 == -1 and s2 == -1 and s3 == -1 and s4 == -1 and s5 == -1
alertcondition(bullishAgreement, "Full Bullish Agreement", message="All timeframes agree on bullish trend.")
alertcondition(bearishAgreement, "Full Bearish Agreement", message="All timeframes agree on bearish trend.")
Penunjuk Breadth
XAUUSD Scalping System [MACD + EMA + UT Bot + LinReg]//@version=5
indicator("XAUUSD Scalping System ", overlay=true)
// === INPUTS ===
fastLen = input.int(8, title="MACD Fast Length")
slowLen = input.int(21, title="MACD Slow Length")
signalLen = input.int(5, title="MACD Signal Smoothing")
linregLen = input.int(14, title="Linear Regression Length")
emaLen = input.int(21, title="EMA Length")
atrPeriod = input.int(10, title="UT Bot ATR Period")
atrMultiplier = input.float(2.0, title="UT Bot ATR Multiplier")
// === EMA ===
ema = ta.ema(close, emaLen)
plot(ema, title="21 EMA", color=color.orange, linewidth=1)
// === MACD ===
macdLine = ta.ema(close, fastLen) - ta.ema(close, slowLen)
signalLine = ta.ema(macdLine, signalLen)
hist = macdLine - signalLine
macdBull = hist > 0 and hist > hist
macdBear = hist < 0 and hist < hist
// === Linear Regression ===
linreg = ta.linreg(close, linregLen, 0)
bullCandle = close > linreg
bearCandle = close < linreg
barcolor(bullCandle ? color.new(color.green, 40) : bearCandle ? color.new(color.red, 40) : na)
// === UT Bot ===
atr = ta.atr(atrPeriod)
upperBand = close + atr * atrMultiplier
lowerBand = close - atr * atrMultiplier
var float trend = na
trend := na(trend ) ? 1 : trend
trend := close > upperBand ? 1 : close < lowerBand ? -1 : trend
buyUT = ta.crossover(trend, 0)
sellUT = ta.crossunder(trend, 0)
// === ENTRY CONDITIONS ===
longCondition = buyUT and bullCandle and macdBull and close > ema
shortCondition = sellUT and bearCandle and macdBear and close < ema
plotshape(longCondition, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY", size=size.small)
plotshape(shortCondition, title="SELL Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL", size=size.small)
bgcolor(longCondition ? color.new(color.green, 85) : shortCondition ? color.new(color.red, 85) : na, title="Signal Background")
// === Alerts ===
alertcondition(longCondition, title="BUY Alert", message="XAUUSD BUY setup triggered!")
alertcondition(shortCondition, title="SELL Alert", message="XAUUSD SELL setup triggered!")
Price Density Strategy ScoreBased on the rules we defined, a composite score (-3 to +3) is calculated and displayed as colored bars below the chart:
Dark green (+3): Strong buy signal
Light green (+1, +2): Mildly bullish
Gray (0): Neutral
Light red (-1, -2): Mildly bearish
Dark red (-3): Strong sell signal
根据我们定义的规则,计算一个综合分数(-3 到 +3),并在图表下方用不同颜色的柱状图显示出来:
深绿色 (+3):强力买入信号
浅绿色 (+1, +2):温和看涨
灰色 (0):中性
浅红色 (-1, -2):温和看跌
深红色 (-3):强力卖出信号
“Risk-Asset Liquidity Meter”The CN10Y / DXY / HY-OAS Liquidity Gauge distills three cross-asset signals into a single real-time line that has proven highly responsive to global liquidity swings. By dividing China’s 10-year government-bond yield (a proxy for PBoC policy) by both the U.S. Dollar Index level (a barometer of worldwide dollar tightness) and the ICE BofA U.S. High-Yield credit spread (a daily read on risk appetite), the indicator rises when monetary conditions loosen—China is easing, the dollar is softening, and credit markets are calm—and falls when any of those pillars tighten. Traders pair the raw ratio with its 50-day simple moving average to smooth noise and generate directional signals: sustained moves above the MA typically foreshadow strength in Bitcoin, alt-coins, equities and EM assets, while decisive breaks below it often flag oncoming funding stress or risk-off episodes. Because all inputs update daily and are freely sourced (TVC\:CN10Y, TVC\:DXY, FRED\:BAMLH0A0HYM2), the gauge is a lightweight yet powerful compass for anyone who needs a fast, transparent snapshot of global liquidity’s push-and-pull on crypto and other risk markets.
My Custom IndicatorThis script implements a simple yet effective RSI-based trading strategy. It uses the Relative Strength Index (RSI) to generate buy and exit signals based on overbought and oversold conditions.
How It Works:
Buy Entry: When RSI crosses above 30 (indicating recovery from an oversold state).
Exit: When RSI crosses below 70 (potential reversal from an overbought state).
Plots the RSI line and key thresholds (30/70) directly on the chart.
Designed for backtesting with TradingView’s strategy function.
Features:
Fully automated entry and exit logic
Customizable RSI settings (just edit the code)
Visual RSI plot and threshold lines
Works on any asset or timeframe
This strategy is suitable for trend-following or mean-reversion setups, and is best used in combination with other filters (like moving averages or price action patterns) for improved accuracy
Sonic R + Regression + Supertrend sonic R , polynomial regession , super trend . i love you , i love you
EMA 9 vs EMA 150 Cross Indicator//@version=5
indicator("EMA 9 vs EMA 150 Cross Indicator", overlay=true)
// Input EMAs
shortEmaLen = input.int(9, title="Short EMA (Fast)")
longEmaLen = input.int(150, title="Long EMA (Slow)")
// Calculate EMAs
emaShort = ta.ema(close, shortEmaLen)
emaLong = ta.ema(close, longEmaLen)
// Detect Crosses
bullishCross = ta.crossover(emaShort, emaLong)
bearishCross = ta.crossunder(emaShort, emaLong)
// Plot EMAs
plot(emaShort, title="EMA 9", color=color.gray)
emaColor = emaShort > emaLong ? color.green : color.red
plot(emaLong, title="EMA 150", color=emaColor, linewidth=2)
// Plot Arrows
plotshape(bullishCross, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small)
plotshape(bearishCross, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small)
Capitulation Candle Color✅ What It Does:
Candles turn bright green when the score ≥4 (i.e., multiple capitulation signals active).
Otherwise, candles keep their default coloring.
You can visually confirm extreme oversold conditions by seeing these green bars.
Moving averages and the lower Bollinger Band are displayed for context.
✅ How to Customize:
Adjust thresholds (e.g., make ATR threshold less strict).
Change the minimum score to trigger coloring (e.g., ≥3).
Use a different color (color.rgb(0,255,0) for neon green).
Combined Indicators: RSI, DMI, ATR, EMA, SMAit is a script that adds every single type of indicator ( but not ribbons ) ...
give it your interest and try it out !!!
feel free to give it a like ...
yours truly jitendra thakur ...
RSI + Stoch + Double Rebond EMA21 (GBPUSD & EURUSD)When the price makes 1 bounce on the ema21 + rsi and stocha in overbought or oversold, it sends me an alert.
RSI + Stoch + Double Rebond EMA21 (GBPUSD & EURUSD)When the price makes 1 bounce on the ema21 + rsi and stocha in overbought or oversold, it sends me an alert.
Bar Color2. indicator("Bar Color", overlay=true) "Bar Color" is the name of the script that will appear on your chart. overlay=true means this script will be drawn directly on the price chart (not in a separate pane). 3. ma = ta.sma(close, 10) This calculates a Simple Moving Average (SMA) of the closing prices over the last 10 bars (candles). ta.sma() is the built-in function for SMA in Pine Script v5. 4. barcolor(close > ma ? color.green : color.red) This line colors each candle/bar: Green if the current close is above the 10-period moving average. Red if the close is below or equal to the moving average. barcolor() changes the bar color but doesn’t plot anything visually on top of the candles — it only recolors them.
EUR/USD & DXY StrategyTVS entry module, SMT with DXY and EUR/USD, previous candle sweeps and SELL/BUY above and below opens.
Gold M1 Ultra Smart Strategy by Rifaat QariThat script includes everything you've asked for so far:
✅ Smart filters (Volume, RSI, MACD, BB, Zones)
✅ Strong vs Weak signal logic
✅ Auto TP1, TP2, TP3, SL, Entry lines + labels
✅ Auto Lot Size calculation based on account and risk
✅ Telegram-ready alerts with message triggers
Mongoose Conflict Risk Radar v1.1 (Separate Panel) description
The Mongoose Capital: Risk Rotation Index is a macro market sentiment tool designed to detect elevated risk conditions by aggregating signals across key asset classes.
This script evaluates trend strength across 8 ETFs representing major risk-on and risk-off flows:
GLD – Gold
VIXY – Volatility
TLT – Long-Term Bonds
SPY – S&P 500
UUP – U.S. Dollar Index
EEM – Emerging Markets
SLV – Silver
FXI – China Large-Cap
Each asset is assigned a binary signal based on price position vs. its 21-period SMA (or a crossover for bonds). The signals are then totaled into a composite Risk Rotation Score, plotted as a bar graph.
How to Use
0–2 = Low risk-on behavior
3–4 = Caution / Mixed regime
5–8 = Elevated conflict or macro stress
Use this as a macro confirmation layer for trend entries, risk reduction, or allocation shifts.
Alerts
Set alerts when the index exceeds 5 to track major rotations into defensive assets.
RSI, EMA, and SMAit is a script that will add EMA RSI and SMA for you .
its helpful if you don't have a plan .
Thankyou :)
Multi EMAPlots 4 EMAs:
➝ 9 EMA (Green) → Short-term trend.
➝ 21 EMA (Blue) → Swing trend confirmation.
➝ 50 EMA (Orange) → Intermediate trend filter.
➝ 200 EMA (Red) → Long-term trend direction.
simple indicator of chart patterns same ...
if you want to use it like EMA , SMA , etc fell free to do so .
Simple Moving Averageit is a clear script that helps you by telling in lines about where you trend is going it can also be adjusted like EMA and SMA ...
Volume Trend Strategy PRO (MTF) V7| VTS Pro 📊 Volume Trend Strategy PRO (MTF) V7 | VTS Pro
By Alireza Mossaheb
Description:
This cutting-edge multi-timeframe strategy is designed to capture institutional volume surges and directional momentum with high precision. Combining CVD dynamics, ADX slope analysis, DI crossovers, Chande Momentum Oscillator (CMO), and customizable fractals, it delivers robust entry signals and confirmation logic across multiple timeframes.
Key Features:
✅ Smart Buy/Sell Signals based on volume delta + MA conditions
🧭 Multi-Timeframe Confirmation Logic for stronger, higher-conviction signals
💡 Separate alert logic for single-timeframe and MTF-confirmed signals
📶 Dynamic ADX Slope and CMO Zones detection (with emoji-enhanced alerts)
📐 Advanced Fractal Detection System with both loose and strict modes
🧩 Integrated CVD trend validation (vs EMA/WMA/SMA) per timeframe
🔔 Fully structured Telegram-Ready Alerts with Markdown formatting
🧾 Beautiful on-chart MTF information table with emoji status for:
MA trends, DI+/DI-, CMO signals, Volume power, and overall signal status
🎨 Custom background color logic for visual cueing of signal confidence
📈 EMA/WMA/SMA Ribbon with visual alignment zones
Whether you're scalping or swing trading, this tool brings clarity to volume-driven trends with visual precision and flexible multi-timeframe logic.