Advanced Donchian ChannelsJust an indicator I got ChatGPT to cook up for my own use, sharing it in case anyone else finds it useful. I have included a screenshot of my own settings as well for reference.
This indicator enhances the classic Donchian Channel with powerful contextual features to support modern breakout and volatility-based trading strategies.
🔹 Core Features:
Donchian Bands: Plots the highest high and lowest low over a configurable lookback period.
Dynamic Fill Shading:
- Color-coded based on the slope of the midline (Basis): Default settings are Green for uptrend, Red for downtrend, Silver for flat, Gray for narrow volatility.
- All fill colors are fully customizable.
Volatility Filter:
- Detects when the channel width is narrow using either a fixed value or a percentage of price.
- Optionally shades only during low-volatility (compression) periods.
Customizable Style:
- Adjustable opacity, offsets, and color settings to suit your charting style.
🛠 Use Cases:
- Spot potential breakout setups after periods of low volatility.
- Identify trend direction via basis slope shading.
- Combine with momentum or volume tools for high-probability entries.
Indicateurs et stratégies
HexworksSharedUtilitiesLibrary "HexworksSharedUtilities"
Shared global utilities that can be used for
- creating bounded queues from primitives
- checking visibility of objects having Bounds on both (x, y) axes
- checking if a line is too long
method offer(history, value)
Namespace types: FloatHistory
Parameters:
history (FloatHistory)
value (simple float)
method offer(history, value)
Namespace types: IntHistory
Parameters:
history (IntHistory)
value (simple int)
method offer(history, value)
Namespace types: StringHistory
Parameters:
history (StringHistory)
value (simple string)
method offer(history, value)
Namespace types: BoolHistory
Parameters:
history (BoolHistory)
value (simple bool)
method toString(point)
Namespace types: chart.point
Parameters:
point (chart.point)
method toString(num)
Namespace types: simple float, input float, const float
Parameters:
num (simple float)
method toString(num)
Namespace types: simple int, input int, const int
Parameters:
num (simple int)
method toString(value)
Namespace types: simple bool, input bool, const bool
Parameters:
value (simple bool)
method toString(l)
Namespace types: series line
Parameters:
l (line)
method isLineTooLong(fromPoint, toPoint)
Namespace types: chart.point
Parameters:
fromPoint (chart.point)
toPoint (chart.point)
method isTooLong(l)
Namespace types: series line
Parameters:
l (line)
createVisibilityChecker()
method update(v)
Namespace types: VisibilityChecker
Parameters:
v (VisibilityChecker)
method canDraw(v)
Namespace types: VisibilityChecker
Parameters:
v (VisibilityChecker)
method isVisible(v, b)
Namespace types: VisibilityChecker
Parameters:
v (VisibilityChecker)
b (Bounds)
FloatHistory
Fields:
history (array)
maxLength (series int)
IntHistory
Fields:
history (array)
maxLength (series int)
StringHistory
Fields:
history (array)
maxLength (series int)
BoolHistory
Fields:
history (array)
maxLength (series int)
Bounds
Fields:
startIdx (series int)
endIdx (series int)
highValue (series float)
lowValue (series float)
VisibilityChecker
Fields:
leftVisibleBarIdx (series int)
rightVisibleBarIdx (series int)
maxDrawDistance (series int)
updatedAt (series int)
visibleHighest (series float)
visibleLowest (series float)
Volume Sentiment Pro (NTY88)Volume Sentiment Edge: Smart Volume & RSI Trading System
Description:
Unlock the power of volume-driven market psychology combined with precision RSI analysis! This professional-grade indicator identifies high-probability trading opportunities through:
🔥 Key Features
1. Smart Volume Spike Detection
Auto-detects abnormal volume activity with adaptive threshold
Clear spike labels & multi-timeframe confirmation
RSI-Powered Sentiment Analysis
Real-time Bullish/Bearish signals based on RSI extremes
Combined volume-RSI scoring system (Strong Bull/Bear alerts)
2. Professional Dashboard
Instant sentiment status table (bottom-right)
Color-coded momentum strength visualization
Customizable themes for all chart styles
3. Institutional-Grade Tools
HTF (Daily/Weekly) volume confirmation
EMA trend-filtered momentum signals
Spike-to-Threshold ratio monitoring
4. Trade-Ready Alerts
Pre-configured "Bullish Setup" (Spike + Oversold RSI)
"Bearish Setup" (Spike + Overbought RSI)
Why Traders Love This:
✅ Real-Time Visual Alerts - SPIKE markers above bars + table updates
✅ Adaptive Thresholds - Self-adjusting to market volatility
✅ Multi-Timeframe Verification - Avoid false signals with HTF confirmation
✅ Customizable UI - 10+ color settings for perfect chart integration
Usage Scenarios:
Day Traders: Catch volume surges during key sessions
Swing Traders: Confirm reversals with RSI extremes
All Markets: Works equally well on stocks, forex & crypto
Confirmation Tool: Combine with your existing strategy
Sample Setup:
"Enter long when:
5. RED SPIKE label appears
Table shows 'Oversold RSI'
Momentum status turns 'Bullish'
Volume exceeds daily average (Confirmed)"
📈 Try Risk-Free Today!
Perfect for traders who want:
Clean, non-repainting signals
Institutional-level volume analysis
Professional visual feedback
Customizable trading rules
⚠️ Important: Works best on 15m-4h timeframes. Combine with price action for maximum effectiveness.
📜 Legal Disclaimer
By using this indicator, you agree to the following terms:
Not Financial Advice
This tool provides technical analysis only. It does NOT constitute investment advice, financial guidance, or solicitation to trade.
High Risk Warning
Trading financial instruments carries substantial risk. Past performance ≠ future results. Never risk capital you cannot afford to lose.
No Guarantees
Signals are based on historical data and mathematical models. Market conditions may change rapidly, rendering previous patterns ineffective.
User Responsibility
You alone bear 100% responsibility for trading decisions. We expressly disclaim liability for any profit/loss resulting from this tool's use.
Professional Consultation
Always consult a licensed financial advisor before taking positions. This tool should NEVER be used as sole decision-making criteria.
Educational Purpose
This indicator is provided "as is" for informational/educational use only. No representation is made about its accuracy or completeness.
Third-Party Data
We do not verify exchange data accuracy. Use signals at your own discretion after independent verification.
TrendScopeTrendScope is a custom-built, multi-factor trading tool designed to identify high-probability market entries and exits using a combination of trend structure, volume dynamics, and momentum behavior. Unlike traditional oscillators, it does not rely on bounded cyclical formulas but instead analyzes real-time price-volume relationships and trend integrity.
🔍 Key Features
EMA Confluence Analysis: Detects trend strength and alignment across EMAs from 5 to 800 periods.
Volume Spike Detection: Flags significant increases in trading volume following periods of stagnation—useful for breakout confirmation.
Order Flow Momentum: Measures buying vs. selling pressure based on volume-weighted price action, signaling directional conviction.
Reversal Alerts: Identifies divergences between price and momentum (e.g., volume-based net flow), warning of potential trend shifts.
Clean Visual Markers: BUY/SELL labels, directional volume spikes, and a trend strength table for clarity in execution.
⏱️ Best Used On
Timeframes: 4H, 8H, 12H, 1D (Daily)
Style: Swing trading, trend trading, and momentum-based entries
Markets: Crypto, Forex, Commodities, and Indices (works well on liquid assets with healthy volume)
This indicator is especially useful for traders who want directional confirmation during trending conditions and a visual edge for spotting volume-driven breakouts or early-stage reversals.
I made this for my own benefit since I didn't really find any non-paid options out there that work in a similar fashion and I wanted to keep it simple and was inspired by Delorean Trading Indicators.
Disclaimer: Just wanna throw this out there...please never use this as a standalone indicator and combine it with your own analysis to detect market behaviour and structure! Don't rely on any indicators to form your own pov of probable market moves. You have been warned.
Volume Cluster Support & ResistanceVolume Cluster Support & Resistance
This indicator identifies potential Support and Resistance (S/R) levels on the chart using Volume-Based Point of Control (POC) Clustering. It offers extensive customization for calculation parameters, display styles, and visualization options, including S/R zones, color gradients, and historical reaction markers.
How It Works
Volume Based S/R:
Scans the specified Clustering Lookback period for "High Volume Bars", defined as bars where volume exceeds the average volume (over Volume Lookback Period) multiplied by the High Volume Threshold Multiplier.
Calculates the Point of Control (POC) for each high-volume bar using hl2.
Clusters these high-volume bar POCs: POCs within a proximity defined by Cluster Proximity (ATR) (Average True Range multiplier) are grouped together.
Filters these clusters, requiring a Min Bars in Cluster to form a valid S/R zone.
(Image showing the indicator being used on the Bitcoin 5min chart)
The center price of valid clusters determines the S/R level. Clusters above the current price become potential Resistance, and those below become potential Support.
Calculates the offset based on the most recent bar included in the cluster.
Level Selection & Display:
The indicator identifies multiple potential S/R levels.
It then selects and displays the top Number of S/R Levels to Display support levels below the current price and resistance levels above the current price.
(Image showing the indicator on the GBP/USD 5min chart)
ATR Usage:
The Average True Range (ta.atr(14)) is used in two key areas:
Determining the proximity threshold for grouping POCs in the 'Volume Based' clustering (clusterProximityAtr).
Calculating the width of the S/R zones when 'Use Zone Visualization' is enabled (zoneAtrMultiplier).
Key Features & Components
Dual Calculation Methods: Choose between Pivot-based S/R or Volume-based POC clustering.
Volume Confirmation: Pivots require volume confirmation; Volume method directly analyzes high-volume bars.
POC Clustering: Groups high-volume areas to identify significant price zones.
Configurable Lookbacks: Adjust periods for volume averaging, pivot detection, and clustering analysis.
Dynamic S/R Display: Shows a configurable number of the most relevant S/R levels relative to the current price.
Optional Zone Visualization: Display levels as filled zones with configurable width (ATR-based), fill transparency, and border transparency. Includes a dashed center line.
Optional Historical Reactions: Mark past price interactions (lows bouncing off support zones, highs rejecting from resistance zones) directly on the chart (Warning: Can significantly impact performance).
Customizable Styling: Control line style (Solid, Dashed, Dotted), width, color (separate for Support & Resistance), and horizontal extension (None, Left, Right, Both).
Price Labels: Toggle visibility of price labels next to each S/R level/zone.
Visual Elements Explained
S/R Lines/Zones: Plotted lines or filled zones representing calculated support and resistance levels. Color-coded for Support (default green) and Resistance (default magenta).
Line/Zone Borders: Appearance controlled by Style settings (Style, Width, Extension). Can have a gradient color effect based on age if enabled.
Zone Fills: Semi-transparent fills for zones (if enabled), with configurable transparency. Fill color matches the border color (including gradient effect if enabled).
Zone Center Line: A thin, dashed line indicating the exact calculated S/R price within a zone.
Price Labels: Text labels showing the exact price of the S/R level.
Historical Reactions: Small dot markers appearing on historical bars where price potentially reacted to a displayed zone (only if Show Historical Reactions is enabled).
Configuration Options
Users can adjust the following parameters in the indicator settings:
Calculation Method: Select "Pivot Based" or "Volume Based".
Volume Zone Settings (Volume Based): Threshold multiplier, clustering lookback, cluster proximity (ATR), minimum bars per cluster.
Display Options: Toggle S/R visibility, price tags, set the number of levels to show.
Volume Settings: Volume lookback period, volume multiplier (for Pivot confirmation).
Style Settings: Line style, width, extension, support/resistance text and line colors, enable gradient coloring, set gradient start/end colors.
Zone Visualization: Enable/disable zones, set zone width (ATR multiplier), fill and border transparency, enable/disable historical reaction markers (performance warning).
Interpretation Notes
This indicator identifies potential areas of support and resistance based on historical price action and volume analysis. These levels are not guaranteed reversal points.
The 'Volume Based' method focuses on areas where significant trading activity occurred, while the 'Pivot Based' method focuses on price turning points confirmed by volume.
Use the displayed levels in conjunction with other technical analysis tools, price action patterns, and risk management strategies.
Be mindful of the performance impact when enabling Show Historical Reactions, especially on longer timeframes or with large lookback periods. The default setting is false for optimal performance.
The max_bars_back setting is optimized for performance; increasing it significantly may slow down chart loading.
Risk Disclaimer
Trading involves significant risk. This indicator is provided for analytical and educational purposes only and does not constitute financial advice or a trading recommendation. Past performance is not indicative of future results. Always use sound risk management practices and never trade with capital you cannot afford to lose.
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.
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.
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.
30-70 RSI Strategy with Colored BarThis script colors price bars based on Relative Strength Index (RSI) levels, giving traders a quick and visual way to assess overbought or oversold market conditions directly on the chart.
📈 Key Features:
✅ RSI-Based Bar Coloring:
Green bars when RSI is above the upper threshold (default 70) – suggests bullish momentum.
Red bars when RSI is below the lower threshold (default 30) – indicates bearish pressure.
Bars remain uncolored when RSI is between thresholds – a neutral zone.
🔧 Customizable RSI Settings:
Adjustable RSI length (default: 14 periods)
Adjustable overbought/oversold levels (default: 70/30)
🧠 Helps traders:
Quickly spot potential reversals or trend continuations
Visually align price action with momentum
🛠️ Usage:
Ideal for trend-following, reversal, and momentum strategies.
Works across any timeframe (1m, 5m, 1h, daily, etc.).
BTC Breakout Alert📈 BTC Breakout & Fakeout Detector with Volume, RSI & MACD Filters
This script helps identify high-confidence breakout setups by combining price action, volume spikes, and optional momentum filters (RSI & MACD). It’s designed to alert you when Bitcoin (or any asset) breaks above a defined resistance level with strong conviction — and warns you if that move turns out to be a fakeout.
🔍 Features:
✅ Confirmed Breakout Alerts: Triggers when price closes above your set resistance level with volume ≥ 1.5× the 20-period average.
⚠️ Fakeout Detection: Highlights when price closes back below resistance within a few candles after breakout.
📊 Momentum Filters:
RSI > 50 for bullish confirmation
MACD line > signal line to support breakout momentum
🔔 Custom Alerts: Built-in alert conditions for both breakout and fakeout events.
🔼🔽 Visual Markers: Arrows plotted directly on the chart for clear entry and caution zones.
🕒 Works on all timeframes and any asset that includes volume data.
Ideal for breakout traders who want more than just a price spike — this tool ensures volume and momentum alignment, helping you reduce false signals and react with more confidence.
Wick Ratio IndicatorScript Description: Wick Ratio Indicator
This Pine Script indicator identifies candlesticks with dominant upper or lower wicks and visually marks them on the chart. It helps traders spot potential price rejection signals, often used to anticipate trend reversals or breakout opportunities. Key Features
Wick Length Calculation
Upper Wick: high - max(open, close)
(Measures distance from the highest price to the candle body's top)
Lower Wick: min(open, close) - low
(Measures distance from the candle body's bottom to the lowest price)
Comparison Logic
Green Triangle (▲): Plotted above the candle when the upper wick is longer (bearish rejection signal).
Red Triangle (▼): Plotted below the candle when the lower wick is longer (bullish rejection signal).
Visual Simplicity
Non-intrusive design that overlays directly on price action.
Customizable colors and sizes (modifiable in settings).
Multiple (12) Strong Buy/Sell Signals + Momentum
Indicator Manual: "Multiple (12) Strong Buy/Sell Signals + Momentum"
This indicator is designed to identify strong buy and sell signals based on 12 configurable conditions, which include a variety of technical analysis methods such as trend-following indicators, pattern recognition, volume analysis, and momentum oscillators. It allows for customizable alerts and visual cues on the chart. The indicator helps traders spot potential entry and exit points by displaying buy and sell signals based on the selected conditions.
Key Observations:
• The script integrates multiple indicators and pattern recognition methods to provide comprehensive buy/sell signals.
• Trend-based indicators like EMAs and MACD are combined with pattern recognition (flags, triangles) and momentum-based signals (RSI, ADX, and volume analysis).
• User customization is a core feature, allowing adjustments to the conditions and thresholds for more tailored signals.
• The script is designed to be responsive to market conditions, with multiple conditions filtering out noise to generate reliable signals.
________________________________________
Key Features:
1. 12 Combined Buy/Sell Signal Conditions: This indicator incorporates a diverse set of conditions based on trend analysis, momentum, and price patterns.
2. Minimum Conditions Input: You can adjust the threshold of conditions that need to be met for the buy/sell signals to appear.
3. Alert Customization: Set alert thresholds for both buy and sell signals.
4. Dynamic Visualization: Buy and sell signals are shown as triangles on the chart, with momentum signals highlighted as circles.
________________________________________
Detailed Description of the 12 Conditions:
1. Exponential Moving Averages (EMA):
o Conditions: The indicator uses EMAs with periods 3, 8, and 13 for quick trend-following signals.
o Bullish Signal: EMA3 > EMA8 > EMA13 (Bullish stack).
o Bearish Signal: EMA3 < EMA8 < EMA13 (Bearish stack).
o Reversal Signal: The crossing over or under of these EMAs can signify trend reversals.
2. MACD (Moving Average Convergence Divergence):
o Fast MACD (2, 7, 3) is used to confirm trends quickly.
o Bullish Signal: When the MACD line crosses above the signal line.
o Bearish Signal: When the MACD line crosses below the signal line.
3. Donchian Channel:
o Tracks the highest high and lowest low over a given period (default 20).
o Breakout Signal: Price breaking above the upper band is bullish; breaking below the lower band is bearish.
4. VWAP (Volume-Weighted Average Price):
o Above VWAP: Bullish condition (price above VWAP).
o Below VWAP: Bearish condition (price below VWAP).
5. EMA Stacking & Reversal:
o Tracks the order of EMAs (3, 8, 13) to confirm strong trends and reversals.
o Bullish Reversal: EMA3 < EMA8 < EMA13 followed by a crossing to bullish.
o Bearish Reversal: EMA3 > EMA8 > EMA13 followed by a crossing to bearish.
6. Bull/Bear Flags:
o Bull Flag: Characterized by a strong price movement (flagpole) followed by a pullback and breakout.
o Bear Flag: Similar to Bull Flag but in the opposite direction.
7. Triangle Patterns (Ascending and Descending):
o Detects ascending and descending triangles using pivot highs and lows.
o Ascending Triangle: Higher lows and flat resistance.
o Descending Triangle: Lower highs and flat support.
8. Volume Sensitivity:
o Identifies price moves with significant volume increases.
o High Volume: When current volume is significantly above the moving average volume (set to 1.2x of the average).
9. Momentum Indicators:
o RSI (Relative Strength Index): Confirms overbought and oversold levels with thresholds set at 65 (overbought) and 35 (oversold).
o ADX (Average Directional Index): Confirms strong trends when ADX > 28.
o Momentum Up: Momentum is upward with strong volume and bullish RSI/ADX conditions.
o Momentum Down: Momentum is downward with strong volume and bearish RSI/ADX conditions.
10. Bollinger & Keltner Squeeze:
o Squeeze Condition: A contraction in both Bollinger Bands and Keltner Channels indicates low volatility, signaling a potential breakout.
o Squeeze Breakout: Price breaking above or below the squeeze bands.
11. 3 Consecutive Candles Condition:
o Bullish: Price rises for three consecutive candles with higher highs and lows.
o Bearish: Price falls for three consecutive candles with lower highs and lows.
12. Williams %R and Stochastic RSI:
o Williams %R: A momentum oscillator with signals when the line crosses certain levels.
o Stochastic RSI: Provides overbought/oversold levels with smoother signals.
o Combined Signals: You can choose whether to require both WPR and StochRSI to signal a buy/sell.
________________________________________
User Inputs (Inputs Tab):
1. Minimum Conditions for Buy/Sell:
o min_conditions: Number of conditions required to trigger a buy/sell signal on the chart (1 to 12).
o Alert_min_conditions: User-defined alert threshold (how many conditions must be met before an alert is triggered).
2. Donchian Channel Settings:
o Show Donchian: Toggle visibility of the Donchian channel.
o Donchian Length: The length of the Donchian Channel (default 20).
3. Bull/Bear Flag Settings:
o Bull Flag Flagpole Strength: ATR multiplier to define the strength of the flagpole.
o Bull Flag Pullback Length: Length of pullback for the bull flag pattern.
o Bull Flag EMA Length: EMA length used to confirm trend during bull flag pattern.
Similar settings exist for Bear Flag patterns.
4. Momentum Indicators:
o RSI Length: Period for calculating the RSI (default 9).
o RSI Overbought: Overbought threshold for the RSI (default 65).
o RSI Oversold: Oversold threshold for the RSI (default 35).
5. Bollinger/Keltner Squeeze Settings:
o Squeeze Width Threshold: The maximum width of the Bollinger and Keltner Bands for squeeze conditions.
6. Stochastic RSI Settings:
o Stochastic RSI Length: The period for calculating the Stochastic RSI.
7. WPR Settings:
o WPR Length: Period for calculating Williams %R (default 14).
________________________________________
User Inputs (Style Tab):
1. Signal Plotting:
o Control the display and colors of the buy/sell signals, momentum indicators, and pattern signals on the chart.
o Buy/Sell Signals: Can be customized with different colors and shapes (triangle up for buys, triangle down for sells).
o Momentum Signals: Custom circle placement for momentum-up or momentum-down signals.
2. Donchian Channel:
o Show Donchian: Toggle visibility of the Donchian upper, lower, and middle bands.
o Band Colors: Choose the color for each band (upper, lower, middle).
________________________________________
How to Use the Indicator:
1. Adjust Minimum Conditions: Set the minimum number of conditions that must be met for a signal to appear. For example, set it to 5 if you want only stronger signals.
2. Set Alert Threshold: Define the number of conditions needed to trigger an alert. This can be different from the minimum conditions for visual signals.
3. Customize Appearance: Modify the colors and styles of the signals to match your preferences.
________________________________________
Conclusion:
This comprehensive trading indicator uses a combination of trend-following, pattern recognition, and momentum-based conditions to help you spot potential buy and sell opportunities. By adjusting the input settings, you can fine-tune it to match your specific trading strategy, making it a versatile tool for different market conditions.
Signal Reliability Based on Condition Count
The reliability of the buy/sell signals increases as more conditions are met. Here's a breakdown of the probabilities:
1. 1-3 Conditions Met: Lower Probability
o Signals that meet only 1-3 conditions tend to have lower reliability and are considered less probable. These signals may represent false positives or weaker market movements, and traders should approach them with caution.
2. 4 Conditions Met: More Reliable Signal
o When 4 conditions are met, the signal becomes more reliable. This indicates that multiple indicators or market patterns are aligning, increasing the likelihood of a valid buy/sell opportunity. While not foolproof, it's a stronger indication that the market may be moving in a particular direction.
3. 5-6 Conditions Met: Strong Signal
o A signal meeting 5-6 conditions is considered a strong signal. This indicates a well-confirmed move, with several technical indicators and market factors aligning to suggest a higher probability of success. These are the signals that traders often prioritize.
4. 7+ Conditions Met: Rare and High-Confidence Signal
o Signals that meet 7 or more conditions are rare and should be considered high-confidence signals. These represent a significant alignment of multiple factors, and while they are less frequent, they are highly reliable when they do occur. Traders can be more confident in acting on these signals, but they should still monitor market conditions for confirmation.
________________________________________
You can adjust the number of conditions as needed, but this breakdown should give a clear structure on how the signal strength correlates with the number of conditions met!
Z-Score Trend Monitor [EdgeTerminal]The Z-Score Trend Monitor measures how far the short-term moving average deviates from the long-term moving average using the spread difference of the two — in standardized units. It’s designed to detect overextension, momentum exhaustion, and potential mean-reversion points by converting the spread between two moving averages into a normalized Z-score and tracking its change and direction over time.
The idea behind this is to catch the changes in the direction of a trend earlier than the usual and lagging moving average lines, allowing you to react faster.
The math behind the indicator itself is very simple. We take the simple moving average of the spread between a long term and short term moving average, and divide it by the difference between the spread and spread mean.
This results in a relatively accurate and early acting trend detector that can easily identify overbought and oversold levels in any timeframe. From our own testing, we recommend using this indicator as a trend confirmation tool.
How to Use It:
Keep an eye on the Z-Score or the blue line. When it goes over 2, it indicates an overbought or near top level, and when it goes below -2, it indicates an oversold or near bottom.
When Z-Score returns to zero or grey line, it suggests mean reversion is in progress.
You can also change the Z-Score criteria from 2 and -2 in the settings to any number you’d like for tighter or wider levels.
For scalping and fast trading setups, we recommend shorter SMAs, such as 5 and 20, and for longer trading setups such as swing trades, we recommend 20 and 100.
Settings:
Short SMA: Lookback period of short term simple moving average for the lower side of the SMA spread.
Short Term Weight: Additional weight or multiplier to suppress the short term SMA calculation. This is used to refine the SMA calculation for more granular and edge cases when needed, usually left at 1, meaning it will take the entire given value in the short SMA field.
Long SMA: Lookback period of long term simple moving average for the upper side of the SMA spread.
Long Term Weight: Additional weight or multiplier to suppress the long term SMA calculation. This is used to refine the long SMA calculation for more granular and edge cases when needed, usually left at 1, meaning it will take the entire given value in the long SMA field.
Z-Score Threshold: The threshold for upper (oversold) and lower (overbought) levels. This can also be set individually from the style page.
Z-Score Lookback Window: The lookback period to calculate spread mean and spread standard deviation
Half Supertrend [NLR]While the Supertrend is a popular tool, traders often face the challenge of false signals and uncertain entry points. The Half Supertrend indicator addresses these shortcomings by introducing a dynamic mid-level , offering a significantly improved way to identify true trend strength and potential high-probability entries.
Here's how the mid-level enhances your trend analysis:
Filter Out Noise: Instead of reacting to every Supertrend flip, the mid-level helps you identify the strength of the trend. Price moving strongly away from the mid-level confirms a higher conviction move.
Identify Optimal Pullback Entries: Waiting for price to pull back to the dynamic mid-level after a Supertrend direction change can provide better entry prices and potentially higher probability setups, capitalizing on established momentum. This approach helps avoid entering prematurely on weaker signals.
Gain Deeper Trend Insight: The position of the price relative to both the Supertrend line and the mid-level paints a clearer picture of the current trend's strength and potential for continuation or reversal.
Here's the technical edge you've been waiting for:
Enhanced Trend Confirmation: This indicator plots a mid-level derived from half the Average True Range (ATR) multiple, acting as a crucial intermediary for assessing trend strength.
Intra-Trend Strength Analysis:
Price above/below the mid-level: Indicates a strong trending move aligned with the Supertrend direction.
Price between the mid-level and the Supertrend line: Suggests a weaker trend and a higher probability of consolidation or reversal.
Early Reversal Detection: Price crossing the mid-level can serve as an early warning signal of a potential trend change.
Higher Timeframe Clarity: The user-configurable higher timeframe (HTF) input provides a robust, multi-timeframe trend bias.
Dynamic Entry Levels: Potential entry levels based on the mid-level are plotted for visual guidance.
Clear Visual Representation: Color-coded lines and filled areas simplify trend and strength assessment.
How it works under the hood:
This indicator utilizes the standard Supertrend calculation on the chosen higher timeframe, incorporating the Average True Range (ATR) to determine volatility-adjusted bands. The unique addition is the "half trend" line, calculated by adding or subtracting half of the ATR-based trailing stop value from the Supertrend line. This mid-level acts as a crucial intermediary zone for evaluating the conviction of the current trend.
// Calculate the mid-level line
half_line = supertrend + (atr * half_factor)
Key Input Parameters:
ATR Length: Determines the period for calculating the Average True Range (default: 10).
Factor: The multiplier applied to the ATR to determine the Supertrend band width (default: 3). The mid-level dynamically adjusts based on half of this factor.
Timeframe: Allows you to select a higher timeframe for the Supertrend calculation, providing a broader trend context.
Up Color/Down Color: Customize the colors for uptrend and downtrend indications.
ICT Intraday FrameworkAutomating The Basics Of ICT Intraday Concepts:
NWOG/NDOG
-from 4:14pm to 9:29am a line will be drawn from 4:14pm close to anticipate ndog/nwog
-once 9:30am or later NDOG/NWOG is drawn with High, Mid, and Low prices
-has option to extend High, Mid, and Low price lines until start of new day at 2/3pm
First Presented Imbalance
-draws fp imb from 9:30-10am
-has option to extend High, Mid, and Low price lines until start of new day at 2/3pm
Custom Macro Window
-draw box around high and low of macro
-first presented imbalance of macro window
Future concepts im planning to add:
Asia BSL/SSL Highlight
8:15 AM 15-min Candle Box on 5-min Chart with TP and SLThe “8:15 AM 15-min Candle Box on 5-min Chart with TP and SL” indicator is a custom-built Pine Script tool for breakout trading strategies, particularly tailored for assets like NASDAQ Futures (NAS100) during the U.S. market pre-open.
🔍 What It Does:
Tracks the 8:15–8:30 AM Central Time (CDT) Candle:
It marks the high and low of the 15-minute candle that starts at 8:15 AM (CDT).
The box visually outlines this price range.
Draws a Breakout Box:
At 8:30 AM, a box is drawn from the 8:15 candle’s high and low.
The box stretches forward 8 hours into the session, helping you visualize price interaction with that range.
Detects Breakouts:
If the price closes above the high, it signals a buy breakout.
If it closes below the low, it signals a sell breakout.
Automatically Calculates TP and SL:
Take Profit (TP): 50 pips from the breakout level in the direction of the trade.
Stop Loss (SL): 40 pips in the opposite direction.
Pips are calculated using the symbol’s minimum tick size.
Color Feedback:
Box turns green on a buy breakout, red on a sell breakout.
If TP is reached, the box turns black.
If SL is hit, the box turns purple.
🧠 Why Use This Indicator:
Perfect for pre-market breakout traders who want a visual confirmation of price action around the U.S. market open.
Provides a clear entry range, trade direction, and risk/reward visual cue.
No manual drawing — everything is automated daily based on reliable timing.
Would you like a version with alerts or plotted TP/SL lines as well?