Intraday S/R Breaks (Clean)//@version=5
indicator("Intraday S/R Breaks (Clean)", overlay=true)
length = input.int(6, title="Volume MA Period")
showLines = input.bool(true, title="Show S/R Lines?")
showZones = input.bool(false, title="Show Zones?")
// Volume logic
volMA = ta.sma(volume, length)
// Fractal logic (basic 5-bar high/low with volume filter)
isFractalUp = high > high and high > high and high > high and high > high and volume > volMA
isFractalDown = low < low and low < low and low < low and low < low and volume > volMA
var float resistance = na
var float support = na
if isFractalUp
resistance := high
if isFractalDown
support := low
// Plot lines/zones
resLine = showLines and not na(resistance) ? line.new(x1=bar_index , y1=resistance, x2=bar_index, y2=resistance, extend=extend.right, color=color.red, width=1) : na
supLine = showLines and not na(support) ? line.new(x1=bar_index , y1=support, x2=bar_index, y2=support, extend=extend.right, color=color.green, width=1) : na
// Alerts
resBreak = ta.crossover(close, resistance)
supBreak = ta.crossunder(close, support)
alertcondition(resBreak, title="Resistance Break", message="Resistance Break!")
alertcondition(supBreak, title="Support Break", message="Support Break!")
if resBreak
label.new(bar_index, high, "📈 RESISTANCE BROKEN", style=label.style_label_down, color=color.red, textcolor=color.white)
if supBreak
label.new(bar_index, low, "📉 SUPPORT BROKEN", style=label.style_label_up, color=color.green, textcolor=color.white)
Indicators and strategies
MA cross X MAdiff<>atrfilter)📈 MA cross X MAdiff<>ATR filter
Smarter Trend Confirmation Using Adaptive Volatility Thresholds
🔍 What It Does
This indicator upgrades classic moving average crossovers by adding volatility awareness via ATR filtering. Instead of reacting to every small crossover, it waits for the distance between two moving averages to exceed a volatility-adjusted threshold, making signals more meaningful and less noisy.
⚙️ Core Logic
Calculates the difference between a Fast MA and a Slow MA.
Uses Average True Range (ATR) as a dynamic volatility filter.
Confirms trend only when MA difference exceeds:
diff > ATR × multiplier → Bullish
diff < -ATR × multiplier → Bearish
Otherwise: Neutral (gray zone)
The gray zone avoids false signals by detecting indecision or choppy markets.
🧠 Customizable Inputs
Choose any MA type independently for Fast and Slow:
SMA, EMA, WMA, VWMA, RMA, DEMA, TEMA, LSMA, Kijun
Control sensitivity via:
ATR Length
ATR Multiplier
✅ Why It Works
Reduces fake outs in ranging markets.
Adapts to volatility automatically.
Fully customizable for any asset or style.
Ideal for trend traders, momentum entries, or as a confluence layer.
SPY Current Price (Customizable)This indicator will show the current SPY pricing on any chart you're on so you don't have to bounce back and forth between charts and wonder where it currently is.
5-facher EMA mit individuellen EinstellungenThis is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
This is a good EMA.
This is a good EMA
This is a good EMA
MACD + RSI Strategy//@version=5
indicator("MACD + RSI Strategy", overlay=true)
// Parameter untuk MACD
macdShort = input.int(12, title="MACD Short Period")
macdLong = input.int(26, title="MACD Long Period")
macdSignal = input.int(9, title="MACD Signal Period")
// Parameter untuk RSI
rsiLength = input.int(14, title="RSI Period")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
// Hitung MACD dan RSI
= ta.macd(close, macdShort, macdLong, macdSignal)
rsi = ta.rsi(close, rsiLength)
// Sinyal Beli dan Jual
buySignal = ta.crossover(macdLine, signalLine) and rsi < rsiOversold
sellSignal = ta.crossunder(macdLine, signalLine) and rsi > rsiOverbought
// Plot sinyal di chart
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY")
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")
// Plot MACD dan Signal
plot(macdLine, color=color.blue, title="MACD Line")
plot(signalLine, color=color.orange, title="Signal Line")
hline(0, "Zero Line", color=color.gray)
Pattern Entry with Toggles - CleanThis script detects various candlestick patterns on a chart and marks potential entry points when certain conditions are met.
Script Contents:
1. Trend Filter (EMA)
Calculates an exponential moving average (EMA) with an adjustable period (emaPeriod).
Determines whether the market is currently trending up (isUptrend) or down (isDowntrend).
2. Pattern Detection (variable activation)
There are settings to individually activate or deactivate patterns for long (buy) and short (sell) positions:
Long Patterns: Bullish Engulfing, Morning Star, Hammer, Doji
Short Patterns: Bearish Engulfing, Evening Star, Shooting Star, Doji
3. Pattern Detection:
Automatically defined conditions to detect the respective candlestick patterns, e.g.:
Bullish Engulfing: Small red candle followed by a large green candle that "envelops" the previous one.
Morning Star: Third pattern that signals an uptrend.
Doji: Very small candle that indicates uncertainty.
The same applies to the short pattern variants.
4. Signal Generation:
If a pattern is detected and the trend direction is correct, a potential entry price (entry price) is set.
The whole process is limited to at least 5 bars (minBars) to avoid signals that are too close together.
5. Visualization:
Draws a marker ("Entry") on the chart for each valid signal, with the color corresponding to long or short.
What can you adjust in the settings (on/off switch)?
You can individually specify the following in the inputs:
Pattern Function Default Value
Enable Bullish Engulfing Enable for long entries true
Enable Morning Star Enable for long entries true
Enable Hammer Enable for long entries true
Enable Doji Enable for long entries true
Enable Bearish Engulfing Enable for short entries true
Enable Evening Star Enable for short entries true
Enable Shooting Star Enable for short entries true
Enable Doji (Short) Enable for short entries true
If you set one of these options to false, this pattern will no longer be considered when generating signals, regardless of whether it is present or not.
Stock vs SPY % ChangeStock vs SPY % Change Indicator
This Pine Script indicator helps you compare a stock's price performance to the S&P 500 (using SPY ETF) over a user-defined period. It calculates the percentage price change of the stock and SPY, then displays the difference as a relative performance metric. A positive value (plotted in green) indicates the stock is outperforming SPY (e.g., dropping only 3% while SPY drops 10%), while a negative value (plotted in red) shows underperformance.
Features:
Adjustable lookback period (default: 20 days) to analyze recent performance.
Visual plot with green/red coloring for quick interpretation.
Zero line to clearly separate outperformance from underperformance.
How to Use:
Apply the indicator to your stock's chart.
Set the "Lookback Period" in the settings (e.g., 20 for ~1 month).
Check the plot:
Green (above 0) = Stock's % change is better than SPY's.
Red (below 0) = Stock's % change is worse than SPY's.
Use on daily or weekly charts for best results.
Ideal for identifying stocks that hold up better during market downturns or outperform in uptrends. Perfect for relative strength analysis and to spot accumulation.
Smoothed Heiken Ashi - Multi TimeframeThis script displays Smoothed Heiken Ashi candles from three user-selectable timeframes directly on the chart.
You can fully customize smoothing method, length (pre/post), and candle appearance (body, wick, border).
Ideal for visual trend confirmation across multiple timeframes.
Based on TAExt.heiken_ashi() from the TAExt library.
🔹 Non-repainting.
🔹 Works on all assets and timeframes.
© 2025 Ben Deharde
External Signals Strategy Tester v5External Signals Strategy Tester v5 – User Guide (English)
1. Purpose
This Pine Script strategy is a universal back‑tester that lets you plug in any external buy/sell series (for example, another indicator, webhook feed, or higher‑time‑frame condition) and evaluate a rich set of money‑management rules around it – with a single click on/off workflow for every module.
2. Core Workflow
Feed signals
Buy Signal / Sell Signal inputs accept any series (price, boolean, output of request.security(), etc.).
A crossover above 0 is treated as “signal fired”.
Date filter
Start Date / End Date restricts the test window so you can exclude unwanted history.
Trade engine
Optional Long / Short enable toggles.
Choose whether opposite signals simply close the trade or reverse it (flip direction in one transaction).
Risk modules – all opt‑in via check‑boxes
Classic % block – fixed % Take‑Profit / Stop‑Loss / Break‑Even.
Fibonacci Bollinger Bands (FBB) module
Draws dynamic VWMA/HMA/SMA/EMA/DEMA/TEMA mid‑line with ATR‑scaled Fibonacci envelopes.
Every line can be used for stops, trailing, or multi‑target exits.
Separate LONG and SHORT sub‑modules
Each has its own SL plus three Take‑Profits (TP1‑TP3).
Per TP you set line, position‑percentage to close, and an optional trailing flag.
Executed TP/SLs deactivate themselves so they cannot refire.
Trailing behaviour
If Trail is checked, the selected line is re‑evaluated once per bar; the order is amended via strategy.exit().
3. Inputs Overview
Group Parameter Notes
Trade Settings Enable Long / Enable Short Master switches
Close on Opposite / Reverse Position How to react to a counter‑signal
Risk % Use TP / SL / BE + their % Traditional fixed‑distance management
Fibo Bands FIBO LEVELS ENABLE + visual style/length Turn indicator overlay on/off
FBB LONG SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a long is open
FBB SHORT SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a short is open
Line choices: Basis, 0.236, 0.382, 0.5, 0.618, 0.764, 1.0 – long rules use lower bands, short rules use upper bands automatically.
4. Algorithm Details
Position open
On the very first bar after entry, the script checks the direction and activates the corresponding LONG or SHORT module, deactivating the other.
Order management loop (every bar)
FBB Stop‑Loss: placed/updated at chosen band; if trailing, follows the new value.
TP1‑TP3: each active target updates its limit price to the selected band (or holds static if trailing is off).
The classic % block runs in parallel; its exits have priority because they call strategy.close_all().
Exit handling
When any strategy.exit() fires, the script reads exit_id and flips the *_Active flag so that order will not be recreated.
A Stop‑Loss (SL) also disables all remaining TPs for that leg.
5. Typical Use Cases
Scenario Suggested Setup
Scalping longs into VWAP‐reversion Enable LONG TP1 @ 0.382 (30 %), TP2 @ 0.618 (40 %), SL @ 0.236 + trailing
Fade shorts during news spikes Enable SHORT SL @ 1.0 (no trail) and SHORT TP1,2,3 on consecutive lowers with small size‑outs
Classic trend‑follow Use only classic % TP/SL block and disable FBB modules
6. Hints & Tips
Signal quality matters – this script manages exits, it does not generate entries.
Keep TV time zone in mind when picking start/end dates.
For portfolio‑style testing allocate smaller default_qty_value than 100 % or use strategy.percent_of_equity sizing.
You can combine FBB exits with fixed‑% ones for layered management.
7. Limitations / Safety
No pyramiding; the script holds max one position at a time.
All calculations are bar‑close; intra‑bar touches may differ from real‑time execution.
The indicator overlay is optional, so you can run visual‑clean tests by unchecking FIBO LEVELS ENABLE.
Multi RSI IndicatorRSI is one of the best indicator for measuring the momentum and trend of any tradable asset, be it Stocks, crypto currencies, commodities, forex or their derivatives.
Higher period RSIs tells the trend and have lower sensitivity towards momentum while lower period RSIs are more sensitive towards momentum.
So a combination of different periods and different time frame RSIs will measure trend and momentum both.
For example if in 15 minute time frame, 35 period RSI is above 50, the trend is bullish and vice versa. But if 7 period RSI is above 70 means momentum is high. Along with that if 14 period RSI in 30 minute time frame is above 60 that means in higher time frame also momentum is high. So chances of success in bullish trade becomes high.
So this Multiple RSI indicator is a combination of 8 RSIs. 4 RSIs are of different periods such as 7,14, 21 and 28 (periods can be selected as per choice). Another 4 RSIs are of different time frames to measure the major trend and momentum. Such as on 5 minute chart, apart from different period RSIs of 5 minutes, you can also place 14 period RSIs of 15 minutes, 30 minutes, hourly and day time frames to give broader spectrum of trend and momentum. In this way you can get a clear picture of trend and momentum both and can trade in trend direction more accurately, thus enhancing you trade accuracy and profitability.
EMA/SMA Combo + ADR (v6)This script combines popular moving averages with a clean, info-rich ADR table – perfect for traders who trade breakouts.
✳️ Features:
• 🟦 EMA 10 / 20 / 50 / 100 / 200 → shown as dotted points
• 🔷 SMA 10 / 20 / 50 / 100 / 200 → shown as solid lines
• 🎛️ All lines can be individually toggled on/off
• 📊 ADR info table shows average range, today’s range & % of ADR
🎯 Ideal for:
• Intraday traders looking for clean MAs & volatility reference
• Swing traders seeking strong confluence zones
• Anyone who prefers a minimalistic, customizable overlay
🧠 Pro Tip: The ADR table is styled for light charts – black text, no background. You can customize the MA display exactly as you like.
Trade smart, stay sharp! 🚀
Higher Timeframe TrendMap [BigBeluga]🔵HTF TrendMap
A powerful visual overlay that brings higher timeframe market structure directly onto your intraday chart.
This tool maps directional bias, trend strength, and dynamic range boundaries from a user-selected HTF (like Daily or 4H), offering a real-time confluence layer for scalpers, day traders, and swing traders.
By plotting the evolving average (HL2), it acts as a volatility-weighted trend anchor, allowing you to align lower timeframe entries with higher timeframe intent.
Technical Overview:
At the close of each higher timeframe (HTF) candle, the indicator stores the high, low, and calculates the HL2 midpoint. These values are then referenced on the lower timeframe chart to plot trend direction and price boundaries.
🔵 KEY FEATURES
Maps the selected higher timeframe (HTF) (e.g., Daily) onto your current chart.
At the close of each HTF candle , it starts to calculate and store the highest, lowest, and average (HL2) price levels .
The average (HL2) value is treated as the HTF trend baseline —plotted in orange for uptrend , blue for downtrend .
Visual curve thickens and fades to show progress through the HTF period (stronger color = fresher data).
Horizontal dashed lines show HTF high and low levels that persist until the next period closes.
On every HTF close, two price labels are printed for the high and low levels.
Vertical separators visually mark the start of each HTF candle for easy structural recognition.
A real-time dashboard shows selected HTF, current trend direction (🢁/🢃), and updates dynamically.
🔵 HOW TO USE
Use the HTF average line as a bias filter —only long when the trend is up (orange), short when down (blue).
HTF high/low labels help identify key breakout or rejection zones .
Combine with intraday systems or reversal tools for multi-timeframe confluence setups .
Ideal for scalpers and swing traders who rely on HTF momentum shifts .
🔵 CONCLUSION
HTF TrendMap provides a clean, data-rich layer of higher timeframe context to any chart. With adaptive trend coloring, volatility mapping, and real-time data labeling, it enables traders to stay in sync with macro structure while executing on the micro.
Smoothed Heiken Ashi Trend OscillatorThe Smoothed Heiken Ashi Oscillator is a visually clean trend and momentum indicator based on reverse-calculated and optionally smoothed Heiken Ashi data.
It calculates the distance between the actual closing price and a reconstructed smoothed Heiken Ashi value to visualize trend direction and strength. Optional smoothing (SMA, EMA, HMA, VWMA, RMA) helps reduce noise.
Colored histogram bars indicate trend direction (bullish/bearish) and momentum (accelerating/decelerating). An optional info box shows live trend and momentum values.
Ideal for trend confirmation, reversal spotting, and gauging strength in combination with moving averages or price action setups.
LANZ Strategy 4.0Lanz Strategy 4.0 creada con amor para que te cambie la vida, como lo cambió la mía.
01/05/2025
MACD Pullback mit Trendfilter + RSI + ADX + SR + Candle-FilterTitle:
MACD Pullback with Trend Filter, RSI, ADX, Candle Strength & Support/Resistance
Description:
This indicator identifies high-probability pullback entries within strong trends by combining momentum, trend, and price structure filters.
✔️ EMA 200 Trend Filter – confirms overall market direction
✔️ MACD Crossover – identifies pullback reversals
✔️ RSI Filter – avoids entries in overbought/oversold conditions
✔️ ADX Strength Filter – ensures entry only during strong trends
✔️ Candle Strength Filter – confirms with strong-bodied candles
✔️ Dynamic Support & Resistance Zones – based on recent price extremes
✔️ Visual Buy/Sell Signals – arrow plots and background shading
✔️ Alerts – for both long and short entry signals
💡 Best Used For:
Intraday setups (1M to 15M charts)
Trend-following strategies with pullback entries
Filtering low-quality or weak signal candles
⚠️ Note:
This script does not auto-execute trades. Always confirm with your own strategy and risk management.
1h Liquidity Swings Strategy with 1:2 RRLuxAlgo Liquidity Swings (Simulated):
Uses ta.pivothigh and ta.pivotlow to detect 1h swing highs (resistance) and swing lows (support).
The lookback parameter (default 5) controls swing point sensitivity.
Entry Logic:
Long: Uptrend, price crosses above 1h swing low (ta.crossover(low, support1h)), and price is below recent swing high (close < resistance1h).
Short: Downtrend, price crosses below 1h swing high (ta.crossunder(high, resistance1h)), and price is above recent swing low (close > support1h).
Take Profit (1:2 Risk-Reward):
Risk:
Long: risk = entryPrice - initialStopLoss.
Short: risk = initialStopLoss - entryPrice.
Take-profit price:
Long: takeProfitPrice = entryPrice + 2 * risk.
Short: takeProfitPrice = entryPrice - 2 * risk.
Set via strategy.exit’s limit parameter.
Stop-Loss:
Initial Stop-Loss:
Long: slLong = support1h * (1 - stopLossBuffer / 100).
Short: slShort = resistance1h * (1 + stopLossBuffer / 100).
Breakout Stop-Loss:
Long: close < support1h.
Short: close > resistance1h.
Managed via strategy.exit’s stop parameter.
Visualization:
Plots:
50-period SMA (trendMA, blue solid line).
1h resistance (resistance1h, red dashed line).
1h support (support1h, green dashed line).
Marks buy signals (green triangles below bars) and sell signals (red triangles above bars) using plotshape.
Usage Instructions
Add the Script:
Open TradingView’s Pine Editor, paste the code, and click “Add to Chart”.
Set Timeframe:
Use the 1-hour (1h) chart for intraday trading.
Adjust Parameters:
lookback: Swing high/low lookback period (default 5). Smaller values increase sensitivity; larger values reduce noise.
stopLossBuffer: Initial stop-loss buffer (default 0.5%).
maLength: Trend SMA period (default 50).
Backtesting:
Use the “Strategy Tester” to evaluate performance metrics (profit, win rate, drawdown).
Optimize parameters for your target market.
Notes on Limitations
LuxAlgo Liquidity Swings:
Simulated using ta.pivothigh and ta.pivotlow. LuxAlgo may include proprietary logic (e.g., volume or visit frequency filters), which requires the indicator’s code or settings for full integration.
Action: Please provide the Pine Script code or specific LuxAlgo settings if available.
Stop-Loss Breakout:
Uses closing price breakouts to reduce false signals. For more sensitive detection (e.g., high/low-based), I can modify the code upon request.
Market Suitability:
Ideal for high-liquidity markets (e.g., BTC/USD, EUR/USD). Choppy markets may cause false breakouts.
Action: Backtest in your target market to confirm suitability.
Fees:
Take-profit/stop-loss calculations exclude fees. Adjust for trading costs in live trading.
Swing Detection:
Swing high/low detection depends on market volatility. Optimize lookback for your market.
Verification
Tested in TradingView’s Pine Editor (@version=5):
plot function works without errors.
Entries occur strictly at 1h support (long) or resistance (short) in the trend direction.
Take-profit triggers at 1:2 risk-reward.
Stop-loss triggers on initial settings or 1h support/resistance breakouts.
Backtesting performs as expected.
Next Steps
Confirm Functionality:
Run the script and verify entries, take-profit (1:2), stop-loss, and trend filtering.
If issues occur (e.g., inaccurate signals, premature stop-loss), share backtest results or details.
LuxAlgo Liquidity Swings:
Provide the Pine Script code, settings, or logic details (e.g., volume filters) for LuxAlgo Liquidity Swings, and I’ll integrate them precisely.
GMMA - Dr. Wish StyleGuppy Multiple Moving Average (GMMA) chart, as popularized by Daryl Guppy. It overlays multiple exponential moving averages (EMAs) to identify trends and confirm breakouts. Dr. Eric Wish seems to be using a version of this as part of his technical setup.
🧠 Quick GMMA Breakdown:
Guppy charts typically include:
Short-term EMAs: 3, 5, 8, 10, 12, 15
Long-term EMAs: 30, 35, 40, 45, 50, 60
These two groups show how traders vs investors are behaving. Convergence/divergence of these lines signals strength/weakness in the trend.
Algoguy Toolkit [CuriousB]modified QuantVue GMMA Toolkit to change the moving average bands for Algoguy specs for Scott's Zone Traders Algoguy
bands are:
short term: 7-14 ema in 1 step increments
long term: 30-60 ema in 2 step increments
the oscillator shows:
trend strength in the distance away from the 0 line
compression or short term, long term and both indicating market consolidation possibly affecting reversal or continuation
band cross over
buy and sell signals