MACD Crossover + AlertMACD Proximity & Crossover Alert Script
This script is designed to help traders stay ahead of MACD crossovers by providing:
Early alerts when the MACD and Signal lines are getting close (within a customizable threshold)
Instant alerts when a bullish or bearish crossover occurs
Whether you're swing trading or scalping, this tool gives you advanced notice to prepare — and a confirmation signal to act on. It works on any timeframe and helps avoid late entries by alerting you when momentum is shifting.
Features:
Customizable MACD settings (fast, slow, signal length)
Adjustable "proximity" threshold
Visual background highlight when lines are close
Built-in alert conditions for:
MACD crossing above Signal (bullish)
MACD crossing below Signal (bearish)
MACD and Signal getting close (early warning)
Perfect for traders who want a heads-up before momentum shifts — not just a reaction afterward.
트렌드 어낼리시스
Buy/Sell Volume ComparisonKey improvements:
Direct volume comparison: Now shows the current day's volume and previous day's volume side by side
Percentage change display: Clear percentage change with up/down arrows
Table position customization: Added a dropdown menu to select where you want the table to appear
To adjust the table position:
Click on the settings (gear icon) for the indicator after adding it to your chart
You'll see a dropdown menu labeled "Table Position"
Select from options like "Top Right", "Bottom Left", etc.
Click "OK" to apply your changes
This version also handles the case where there's no previous volume data (first bar of the chart) by checking for NA values.
Let me know if this meets your requirements, or if you'd like any other adjustments!RetryClaude does not have the ability to run the code it generates yet.Claude can make mistakes. Please double-check responses.Tip: Long chats cause you to reach your usage limits faster.
Accumulation & Buy Zones [SmartFusion Spot]SmartFusion AI is an advanced version of an indicator for the TradingView platform, utilizing artificial intelligence methods to analyze and predict market movements. This indicator is perfect for traders who want to combine powerful multi-timeframe analysis with intelligent algorithms for decision-making.
Features:
Multi-Timeframe Analysis — The indicator considers data from multiple time intervals (from 15 minutes to 1 week), allowing you to see both short-term and long-term trends.
Profit/Loss Levels — Automatically calculates and displays take profit and stop loss levels based on current market conditions, minimizing risk.
Buy/Sell Signals — Generates precise entry and exit signals, confirmed by volume indicators and RSI.
Automatic Support and Resistance Levels — The indicator automatically identifies key levels where reversals or breakouts are likely to occur.
Scalper Mode — For those trading on smaller timeframes, the indicator offers a specialized scalping mode to capture quick market movements with minimal risk.
Benefits:
Increased trading accuracy with integrated AI algorithms.
User-friendly interface with detailed signals.
Easy to set up and customizable for different trading styles.
Reduced stress in decision-making thanks to automatic calculations and recommendations.
Mvp Wave Sniper v1.0Credits and Acknowledgments
This strategy brings together several technical indicators and analytical methods that many traders rely on. In particular, it leverages:
ATR (Average True Range):
A volatility indicator popularized by J. Welles Wilder, Sr. and widely implemented as part of TradingView’s built-in functions.
SMA (Simple Moving Average) and Standard Deviation-based Channels:
Fundamental tools for trend analysis and risk management, available within TradingView’s powerful charting library.
MFI (Money Flow Index) and OBV (On-Balance Volume):
Volume-based indicators that are part of TradingView’s comprehensive suite and have been refined by numerous community contributors.
Higher Timeframe Analysis & Custom Filters:
The use of multiple timeframe validations and filter criteria (e.g., using three different SMAs) demonstrates advanced methods shared by authors throughout the TradingView community.
It is also worth noting that the Wave decisions/logic within this script are produced solely by the publishing tradingview author, TheCryptoMvp with inspiration from theories such as the Elliott Wave theory and under the limitations of Pinescript.
In the settings of this backtest, we have made it take into account a cost simulation of 0.055% a side fees and 2ticks slippage to produce a realistic trading environment, where no leverage is used / 1x leverage.
The choice of parameters by default in this script serve as to show what my (TheCryptoMvp) own backtesting results have lead to, showcasing the optimum settings for this script. The default settings are generally meant for more volatile markets, in particular, dogecoin.
In the parameters for the backtest, 90% of equity is used without leverage, Therefore it isn't recommended to use leverage when implementing usage of this script, that being said this is not financial advice and you are free to do your own research. Please note that the 90% of equity used can be any number, adhering to risk tolerance.
Even though the backtest and cost simulation shows big results, Should i be cautious?: As with anything, it is very logical to be cautious. Please maintain all communications with @TheCryptoMvp from within tradingview. It is also worth me noting that the backtest shows reinvestment of the 90% equity at all times, producing volatile results in which the user must be cautious.
Special thanks and credit are extended to the original authors and developers within the TradingView platform whose work has made these indicators both accessible and highly customizable to traders worldwide. Their contributions have been instrumental in creating innovative trading strategies like the Mvp Wave Sniper.
Candle Range WarningThis indicator is just for a visual representation when candles on your timeframe have a high/low range exceeding a defined number. Set maximum range and number of candles needed under that range in order to reset.
ORB Strike - by Trading Pine LabORB Strike - by Trading Pine Lab
This strategy is designed for traders looking to take advantage of initial session breakouts through classic “Opening Range Breakout” (ORB) logic, combined with modern filters and advanced risk management tools. Perfect for volatile environments regardless of the trend.
Based on the market opening, ORB Strike identifies key levels and acts only if certain pre-set technical conditions are met.
Ideal for:
Intraday trading.
Traders who work with breakouts at the open.
Those looking for a solid but customizable strategy, with multiple levels of confirmation.
Detrended OscillatorDetrended Oscillator – User Manual
________________________________________
Disclaimer: To avoid any discomfort, please be aware that this oscillator won’t be free to use in the future and will require a small one-time lifetime subscription.
Overview
The Detrended Oscillator is a powerful technical analysis tool designed to measure the momentum of price movements by removing longer-term trends. It highlights short-term cycles and helps traders identify overbought or oversold conditions, potential reversals, and the strength of market trends in a unique way like no other oscillator (see at the end – Trading Tips Advanced).
What is a Detrended Oscillator?
A detrended oscillator isolates cyclical price behaviour by eliminating broader market trends, offering clearer signals for potential turning points. This helps traders focus on shorter-term market fluctuations, making it easier to identify reversals and short-term trading opportunities.
________________________________________
How It Works
This oscillator calculates the difference between two Simple Moving Averages (SMA):
• Fast SMA (SMA Period 1): Quick-reacting moving average.
• Slow SMA (SMA Period 2): Slow-reacting moving average, capturing broader market moves.
The difference between these SMAs represents short-term momentum and cyclical changes, displayed visually as the oscillator.
________________________________________
Inputs Explained
Detrended Oscillator Settings:
• SMA Period 1 (Fast): Controls responsiveness; lower values track short-term cycles closely.
• SMA Period 2 (Slow): Captures longer-term trend context.
• Oscillator Source: Price data source used for calculation (typically closing prices).
Moving Average (MA) Options:
• Length: Defines the smoothing length for MA.
• Source: Select between the oscillator itself (SMA Difference) or price (Close).
• Offset: Shifts the MA forward/backward in time for forecasting or alignment.
• Show Moving Average: Toggle display of MA.
• Type: Choose among SMA, EMA, SMMA, WMA, VWMA, or SMA combined with Bollinger Bands.
• BB StdDev: Standard deviation multiplier, adjusts Bollinger Bands width.
Oscillator Boundaries (Levels for Overbought/Oversold Conditions):
• Number of Peaks/Lows to Average: Sets how many historical extremes are counted for primary boundary levels.
• Enable Fixed Lines: Toggles the visibility of calculated boundary lines.
• Alert Trigger Level (%): Distance from boundaries to trigger alerts, adjustable to user preference.
• Enable Alerts: Toggle alerts for boundary crossings.
Secondary Oscillator Boundaries:
• Provides a second set of boundaries.
• Line Style, Colour, Width, Opacity: Customizes appearance for visual distinction.
________________________________________
Alerts and Notifications
The Detrended Oscillator includes customizable alerts for enhanced trade management:
• Primary Boundary Touch Alert: Triggered when the oscillator crosses primary calculated boundaries.
• Secondary Boundary Touch Alert: Triggered when oscillator touches secondary-calculated boundaries.
• Combined Alert: Activated when the oscillator touches either set of boundaries, maximizing awareness of market conditions.
• Value cross alerts – like any other oscillator.
________________________________________
Trading Tips
• Trend Identification: Oscillator above zero suggests bullish momentum, below zero bearish momentum.
• Reversals: Watch for oscillator crossings near boundaries as potential reversal signals.
• Divergences: Divergence between price and oscillator often precedes reversals, enhancing entry/exit precision.
________________________________________
Trading Tips Advanced
• The Detrended Oscillator has a few unique characteristics that no other oscillator possesses.
• Please note that all the examples presented are using the oscillator default parameters, which we find to be optimal for our trading methods.
• Let’s review some of these characteristics:
The Boundaries – While the Detrended Oscillator is not confined to a fixed range like the RSI, as an example, the oscillator does tend to move in a confined range that is specific to every asset.
This characteristic helps the users dramatically to prepper for reversals.
In the oscillators inputs, you can choose based on which timeframe to calculate the boundaries, our recommendation is to use Chart or one timeframe higher, i.e. for Daily chart the weekly, for weekly chart the monthly, and same in intraday.
AAPL – In the weekly chart, you can see over 5 years how the oscillator respected its own boundary (yellow arrows).
drive.google.com
What is also noticeable and important are divergences, we can see the blue arrows marking lower highs on the oscillator and higher highs on price, and from there we go down, long before Trump’s Tariffs.
But notice something else, at the end of the oscillator there are 4 dots (2 blue up and 2 orange down) these are the makers for our Alert boundaries, which as mentioned before all examples are using the default setting.
Note how the divergence and point of reversal is aligned 1 to 1 with our alert level which is no coincidence as we can see that this level of the oscillator was also a significant level along the years, and our code mathematically finds that.
So, to summarize the first point, boundaries, divergences and historically significant levels can greatly support us in timing reversals.
The advantage of the built-in boundaries is not only visual which is important, but moreover the ability to utilize the watchlist alert to the maximum.
New Boundary Extreme – Often, when the oscillator set a new extreme or visit the historical extreme, price and trend will reverse ONLY when the oscillator will RETEST the previous extreme. Sounds crazy?! Let’s check…
BTC Daily – blue arrows
drive.google.com
S&P 500 monthly – notice again how our trigger alert default setting is right on the money (also now with the tariffs crash).
drive.google.com
Level of significance –
Each asset in each timeframe can indicate the level of significance, where it is more likely that the asset will find support or resistance.
S&P 500 Weekly – see how 3 consecutive corrections finished with the same reading on the Detrended Oscillator.
drive.google.com
An advanced user can recognize these levels and either adjust the alert triggers accordingly or set a separate alert based on the value crossing.
drive.google.com
Happy Trading!
MAD - Trading
Bobal [Wines 🍷]The Bobal tool is a volume-based wave analyzer designed to highlight the effort behind price movement within trend waves. It is built with a focus on clarity, speed of response, and a Wyckoff-inspired philosophy, where volume and trend direction are deeply intertwined.
This script offers a unique visualization of directional volume flow — up or down — in clearly segmented waves, allowing traders to assess who is in control and how strong their effort is. It does this by calculating dynamic trend waves, accumulating volume within those waves, and comparing volume to volatility for normalization.
🔶 What's included
Detects directional waves based on your selected moving average (SMA, EMA, WMA, or HMA).
Accumulates volume within each wave, creating a distinct "volume block" per wave.
Normalizes volume by ATR (optional) to adjust for current market volatility.
Applies a power function to volume strength for dynamic contrast (stronger waves stand out visually).
Plots volume histograms in real-time: green/orange for up waves, red/fuchsia for down waves.
Optional - displays trend strength background based on recent price expansion vs ATR.
🔷 How it works
Wave Definition
A wave is defined as a sequence of bars moving in the same direction based on a selected moving average:
If the MA rises → uptrend wave
If the MA falls → downtrend wave
Wave resets on direction change
Volume Accumulation
Volume is accumulated within each wave, starting fresh at the beginning of each new wave. This clean segmentation reveals whether the current wave is attracting participation (volume).
Normalization (Optional)
Volume can be normalized by the ATR (Average True Range) to account for volatility differences across symbols and timeframes. This makes comparisons more meaningful.
Strength Calculation
Volume strength is calculated by comparing current wave volume to the maximum over a recent period (default: 50 bars), and applying a pow() function for expressive scaling. This emphasizes high-effort waves while de-emphasizing noise.
🔶 Usage
Histogram bars:
🟩 - strong bullish
🟧 - weak bullish
🟪 - weak bearish
🟥 - strong bearish
Optional background highlights trend strength.
Bright 🟩 green or 🟥 red, based on how strongly price moves away from its MA relative to ATR.
Watch for:
Sudden volume increases in weak trend waves (potential traps or absorption).
Strong waves on low volume (possibly unsustainable moves).
Extended high-volume waves (momentum building).
Use MA Type to tune sensitivity (WMA or EMA are typically more responsive).
Enable or disable normalization and trend background based on preference.
Algo Edge Solutions S.M.C Indicator✅ Invite-Only Closed-Source Description
Title: Algo Edge Solutions S.M.C Indicator
Description:
This script is an advanced closed-source Smart Money Concepts (SMC) indicator designed for serious traders and institutions. It provides a rich combination of market structure detection, automated order block mapping, swing high/low tracking, and precision volume analysis across multiple timeframes.
🔹 Main Features:
Automatic detection of CHoCH (Change of Character) and BoS (Break of Structure) on both internal and external levels.
Swing high/low labeling with historical sensitivity control.
Dynamic Order Blocks with automated pruning and last-N limit.
Auto-Fibonacci levels drawn between relevant pivots.
Fair Value Gaps (FVG) with optional fill logic and proximity highlight.
Volume percentile calculations on 4H and Daily timeframes.
Real-time session overlays for New York, London, and Asia sessions.
🔒 Why Closed-Source: This tool includes proprietary logic developed in-house by Algo Edge Solutions. The internal structure recognition engine and visual optimization methods are original and not available in public open-source indicators. Protecting this intellectual property ensures the integrity and strategic edge of the algorithm.
📈 Usage:
Best suited for intraday setups such as 15m to 4H.
Combine FVGs, Order Blocks, and volume zones for high-probability trade identification.
Use in confluence with your price action framework for optimal entry/exit planning.
📝 Access: This is an invite-only script. Contact the publisher for access information.
Delta Zones🔶 Delta Zones — A Precision Tool for Time-Price Mapping 🔶
The Delta Zones indicator is a refined structure-mapping tool that dynamically tracks zones of dominant trading activity across recent sessions.
These zones are projected forward in time, offering traders a reliable visual guide to where significant interactions between buyers and sellers are likely to take place.
This tool was designed for intraday use, but its adaptability makes it powerful even on higher timeframes, giving traders insights into market behavior without the noise. You need to change session setting from indicator to higher TF that the chart. For intra, its by default on daily.
🔧 What This Indicator Does
Detects and displays the key activity zone for the current session (today).
Recalls the most active zone from the previous session, allowing you to track momentum or reversal bias.
Color codes each zone based on where price currently trades relative to it:
Neutral gradient (orange/white) for today’s zone, showing where price is consolidating or reacting.
Bullish green fade if price is trading above yesterday’s zone.
Bearish red fade if price is trading below yesterday’s zone.
Extends each zone forward (default 200 bars) so you can observe price behavior as it revisits these areas over time.
📈 How to Use Delta Zones
Trend Continuation:
If price pushes beyond today's zone and maintains momentum, it may suggest strength in that direction. Watch how price reacts on retests of this zone.
Fade or Mean Reversion:
When price strays far from a Delta Zone and struggles to gain ground, it often rotates back into that region. These situations can offer attractive risk-reward setups.
Zone Polarity from Prior Sessions:
Yesterday’s zone serves as a directional cue — if price opens and stays above it (green-filled), sentiment favors strength. If it stays below (red-filled), weakness may persist.
Support/Resistance Anchors:
Use zones as dynamic S/R levels — watch for wick tests, engulfing candles, or volume surges at zone edges for potential trade entries or exits.
🎛️ Inputs You Can Control
Session Length (Default: Daily): Defines how often a new zone is calculated.
💡 Pro Tip
These zones act like magnetic fields around price — not only can they contain price, but they also attract it. The key is to recognize when price is respecting, rejecting, or absorbing at the edges of the zone.
Pair Delta Zones with your favorite price action, momentum, or volume tools for sharper decision-making. For example, "Accumulation/Distribution Money Flow" script which I published few days ago.
⚠️ Note
This is a conceptually adaptive framework designed to simplify the visual structure of the market. While no model guarantees predictive accuracy, Delta Zones are especially useful for contextualizing price behavior and anticipating where meaningful reactions may occur.
This is an educational idea, use it at your own risk.
Past performance does not guarantee future success.
ALGO BLASTER ver 2.0This indicator plots signals based on the VWAP + standard deviation bands along with small modification, similar in concept to Bollinger Bands but centered around VWAP instead of a moving average.
Features
Intraday VWAP: Resets daily for accurate session-based levels.
Customizable Bands: Choose how many standard deviations to plot (default is 2).
Clean Visualization: Color-coded VWAP and bands for easy reference.
Optional Session Time: Use custom session times if needed (e.g., RTH only).
Minimal Lag: Bands are calculated using a rolling standard deviation of hlc3 (high + low + close) / 3.
How to Use
Use it on intraday timeframes like 1-min, 5-min, or 15-min for best results.
Price near the VWAP often indicates equilibrium.
Price moving far above/below the upper/lower bands may signal exhaustion, mean reversion, or breakout strength depending on volume and trend context.
Combine with price action, support/resistance, or volume analysis for better decision-making.
Notes
This VWAP resets at the start of each trading day, which aligns with common institutional use.
Works best in liquid markets (e.g., indices, large-cap stocks, futures, crypto).
The bands adjust dynamically throughout the session as new price and volume data comes in.
📘 Candle Info Visual + Engulfing + BB + Buy/Sell Signal// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © syikomayu
//@version=6
indicator('M.Shiam-📘 Candle Info Visual + Engulfing + BB + Buy/Sell Signal', overlay = true)
// === INPUTS ===
showBB = input.bool(true, title = 'Show Bollinger Bands?')
bbLength = input.int(20, title = 'BB Length')
bbMult = input.float(2.0, title = 'BB Multiplier')
// === CANDLE METRICS ===
isBullish = close > open
isBearish = close < open
bodySize = math.abs(close - open)
upperShadow = high - math.max(open, close)
lowerShadow = math.min(open, close) - low
candleColor = isBullish ? color.green : isBearish ? color.red : color.gray
// === CANDLE INFO TEXT ===
infoText = 'Candle: ' + (isBullish ? 'Bullish' : isBearish ? 'Bearish' : 'Doji') + ' ' + 'Body: ' + str.tostring(bodySize, '#.##') + ' ' + 'Upper Shadow: ' + str.tostring(upperShadow, '#.##') + ' ' + 'Lower Shadow: ' + str.tostring(lowerShadow, '#.##')
// === DISPLAY LABEL EVERY 5 BARS ===
if bar_index % 5 == 0
label.new(x = bar_index, y = high, text = infoText, style = label.style_label_down, color = candleColor, textcolor = color.white)
// === ENGULFING DETECTION ===
isBullishEngulfing = open > close and open < close and open < close and close > open
isBearishEngulfing = open < close and open > close and open > close and close < open
// === BOLLINGER BANDS ===
basis = ta.sma(close, bbLength)
dev = bbMult * ta.stdev(close, bbLength)
upperBB = basis + dev
lowerBB = basis - dev
plot(showBB ? basis : na, title = 'BB Basis', color = color.gray)
plot(showBB ? upperBB : na, title = 'BB Upper', color = color.orange)
plot(showBB ? lowerBB : na, title = 'BB Lower', color = color.orange)
// === BACKGROUND HIGHLIGHT ===
bgcolor(isBullishEngulfing ? color.new(color.green, 85) : isBearishEngulfing ? color.new(color.red, 85) : na)
// === BUY / SELL SIGNAL LOGIC ===
// Buy: Bullish engulfing + close below lower BB
// Sell: Bearish engulfing + close above upper BB
buySignal = isBullishEngulfing and close < lowerBB
sellSignal = isBearishEngulfing and close > upperBB
// === PLOT BUY / SELL SHAPES ===
plotshape(buySignal, title = 'Buy Signal', location = location.belowbar, color = color.lime, style = shape.triangleup, text = 'BUY', size = size.small)
plotshape(sellSignal, title = 'Sell Signal', location = location.abovebar, color = color.red, style = shape.triangledown, text = 'SELL', size = size.small)
// === ALERT CONDITIONS ===
alertcondition(buySignal, title = 'BUY Signal Alert', message = '✅ BUY signal based on Engulfing + Bollinger Band')
alertcondition(sellSignal, title = 'SELL Signal Alert', message = '❌ SELL signal based on Engulfing + Bollinger Band')
200均线ema200均线指标
自动绘制30分钟、1小时、4小时、1天的均线,并在右下角显示目前均线价格。
EMA200 Moving Average Indicator
Automatically plot the moving averages for 30 - minute, 1 - hour, 4 - hour, and 1 - day timeframes, and display the current moving average prices in the bottom - right corner.
Real Relative Strength vs SET (ADR%)This indicator measures the Real Relative Strength (RRS) of a stock against the SET Index, adjusted for Average Daily Range Percentage (ADR%) instead of ATR. It answers the question:
"Is this stock performing better or worse than the SET Index, relative to its own volatility?"
Strat Sniper📄 Strat Sniper — Real-Time Alerts for TheStrat Setups
Strat Sniper is a tool I built to help spot key Strat setups without having to sit in front of the screen all day.
If you trade using TheStrat (1, 2, 3 candle logic), this indicator will automatically monitor your chart for things like:
2-1-2 breakouts
3-1-2 setups
1-2-2 reversals
Inside bars
Outside bars
Failed 2U / 2D setups (those fakeouts we all love to catch)
It’s meant to keep things simple and efficient. You can choose exactly which setups you want to be alerted for in the settings, and once you’ve got it added to your chart, just create a TradingView alert and it’ll do the rest.
⏱️ Alert Timing:
You can choose:
🔔 Get alerted right when the setup forms (after the bar closes)
🚦 Delay alert until setup is actually triggered (ex: having an inside bar alert set won’t alert you until the inside bar is triggered with a 2U/2D)
Perfect for higher timeframes where you want precision without watching charts all day.
🛠️ How to Use:
Add Strat Sniper to any chart or timeframe
Open the ⚙️ indicator settings
Select which Strat setups to monitor
Click the ⏰ “Create Alert” button
Under “Condition,” select Strat Sniper
Choose “Any alert() function call” or a specific setup
Set how you want to be notified (popup, email, webhook, etc.)
Now your chart is fully monitored for Strat setups. Alerts will fire as soon as your selected conditions are met.
🧠 Why I Made This:
I was tired of missing setups or manually scanning charts for hours. This lets me stay focused and only show up when there’s something worth looking at. If you’re into TheStrat and want a no-BS way to stay on top of your plays, this should help.
Let me know if you have feedback or want to build on it. Happy trading. 💯
Real Relative Strength vs SETThis indicator calculates the Real Relative Strength (RRS) of any Thai stock by comparing its volatility-adjusted movement to the SET Index.
Unlike standard RS tools that use only percentage price change, this version takes into account:
The stock’s ATR-based expected movement
The SET Index’s actual movement relative to its own ATR
✅ Compatible with any timeframe
✅ Dynamically adjusts to chart period
✅ Highlights when a stock outperforms or underperforms the SET on a volatility-adjusted basis
Use this tool to identify Thai stocks showing true strength or weakness vs. the broader market — not just noise from random spikes.
🔒 This is a protected script. If you're interested in the methodology or private access, feel free to contact me.
Real Relative Strength (vs SPY)Title: Real Relative Strength (RRS) Indicator
Description:
This script calculates the Real Relative Strength (RRS) of a stock compared to SPY by factoring in normalized movement using ATR.
Unlike traditional RS metrics that rely on simple percentage change, this model accounts for what a stock should have done based on SPY’s movement and its own volatility, then measures deviation from that expected move.
✅ Works across all timeframes
✅ Dynamically adjusts to chart timeframe
✅ Highlights true RS and RW that persists over time
Designed to help traders identify institutional strength or weakness relative to the broader market with more precision.
Bode bot v15### 📌 Strategy Overview
**"Bode Bot v15"** is an advanced, multi-timeframe trend-following strategy built for use on TradingView. It leverages dynamic ATR-based risk management, directional filters using EMA and ADX, and optional support/resistance validation via VRVP. The strategy is designed for short-to-medium term trades with intelligent position scaling.
2h Time frame is the BEST
### ⚙️ Core Features
- Adaptive entries based on trend direction and strength
- Multi-timeframe support with user-defined settings
- Optional volume profile filtering for added precision
- Dynamic stop loss and take profit using volatility-based logic
- Break-even and trailing stop mechanisms
- Pyramiding enabled with control to avoid multiple entries per bar
### ✅ Built for Pine Script v6
- Compliant with all TradingView publishing guidelines
- Uses `request.security()` safely with `gaps=barmerge.gaps_on`
- Does not use `lookahead_on`
- Fully backtest-ready and repaint-free
### 📝 How to Use
- Apply to trending markets on your preferred timeframe (best one is 2h)
- Customize strategy parameters in the input panel
- Run backtests and tune settings for your asset of choice
### ⚠️ Disclaimer
This strategy is for educational purposes only. It does not constitute financial advice. Always backtest and use proper risk management before live trading.
Daily Volatility Range (DVR) [GIF]VIX as a Volatility Indicator:
The VIX is a measure of the market's expectation of volatility in the S&P 500 over the next 30 days, based on the prices of S&P 500 options.
The Rule of 16:
A VIX of 16 implies that the market expects the SPX to move up or down by roughly 1% on any given day.
If the VIX is 24, the expected daily move is around 1.5%, and with a VIX of 32, the expected move is around 2%.
The rationale for the rule is that the square root of the number of trading days in a year (approximately 252) is roughly 16.
Example:
If the VIX is at 20, the rule suggests that the SPX might see daily moves of around 1.25%.
Practical Application:
The rule of 16 can be used as a quick and easy way to estimate the potential daily volatility of the S&P 500 based on the VIX.
The Daily Volatility Range:
This indicator cross references the ticker on the chart with it's own volatility index (assuming it has one). Below are the indexes and stocks that have their own volatility index:
S&P 500
Nasdaq 100
Russell 2000
Dow Jones
TLT
Bitcoin
Gold
Crude Oil
Apple
Amazon
Google
IBM
Goldman Sachs
How I use the DVR:
Historic probabilities show that you will close the day within the DVR. However, there are times when those probabilities diminish greatly. One of those times is when you open in the RTH session outside of the DVR. If you open outside the DVR, you can look for the DVR to becomes support/resistance and stay extended outside the DVR. These days can often become muted as most of the most has happened before the market open. However, if we open outside the DVR and break back into range, it is highly probable that we will not break back into those extended ranges.
Indicator Options:
There are 2x and 3x DVR levels that can be plotted. During times of extreme volatility, it will become important to have these plotted.
There is the option to plot calculated pivot points. These are fib ranges that have historically been areas of consolidation or trend reversal. These are projections based on my own research and are not as important as the DVR levels themselves.
There is also an option to color the candles a specific color if the candle closes outside the DVR. This is to highlight the fact that price action has exceeded the range and caution should be taken.
If you have suggestions how to make this indicator better, please let me know in the comments and I will look into it. Thank you!
Gradient Sniper Elite🧠 Gradient Sniper Elite — Precision Trend Detection and Tactical Trade Execution for Crypto
Gradient Sniper Elite is a high-performance crypto trend strategy engineered for accuracy, adaptability, and smart execution on the 1-hour timeframe. This script is not just a mashup — it's a purpose-built system that combines trend, momentum, and volume filters in a structured and non-repainting framework designed for optimal entry and exit timing.
🔍 What Makes It Original?
This strategy combines several proven concepts into a unified, precision-calibrated trade engine:
✅ ZLEMA Gradient Filter: A slope-based trend filter that captures the direction and strength of momentum shifts without repainting.
✅ TEMA Confirmation: Triple EMA logic confirms trend acceleration or exhaustion by analyzing layered EMA cross-smoothing.
✅ RMI-Based Trend Direction: Replaces traditional RSI with a Relative Momentum Index (RMI), which smooths price momentum and avoids lag.
✅ ROC & Smoothed CCI: Dual momentum filters ensure that trades align with both velocity and structure of price moves.
✅ Volume Spike Filter: Filters out false breakouts and manipulation by confirming entries only during statistically significant volume surges.
✅ TP1/TP2 Split Take Profit Logic: 50% partial exit at TP1 and full exit at TP2. Ensures flexible profit-taking while maximizing trend continuation gains.
✅ Trend Weakness Exit: Trades are exited cleanly when the trend begins to weaken (as confirmed by RMI flip), preventing overstay and drawdown.
✅ 1-Bar Reversal Delay: The system enforces a 1-bar delay between a trade closure and any potential reversal entry, ensuring clean trend reversals and realistic live trading behavior.
✅ No Stop Loss: This strategy does not use a stop loss. Instead, it exits trades based on trend weakness or TP2 being hit. This avoids premature exits in volatile crypto environments, while maintaining controlled and dynamic trade management logic.
⚙️ How It Works
This strategy uses multi-layered confirmation:
Trend Structure
ZLEMA Gradient: Captures the slope of price action.
White Line + Fast/Slow Tether Lines: Define macro trend structure and act as dynamic S/R filters.
Momentum Alignment
Rate of Change (ROC): Measures directional velocity.
Smoothed CCI: Refines entry timing within the trend.
TEMA: Adds second-layer trend confirmation.
Volume Confirmation
Entry signals are validated by detecting relative volume spikes compared to a moving average baseline, avoiding entries on low-volume or fake breakouts.
Trade Management
Dynamic take-profits (TP1/TP2).
Immediate exit on trend weakening.
No same-bar entry/exit — reversal entries are delayed until after full exit confirmation.
No stop loss — trade management is handled via trend logic and take profit levels.
📊 Dashboard Overview
Gradient Sniper Elite includes a built-in dashboard in the top-right corner of the chart. It dynamically updates on each bar and shows:
📍 Position: Displays "Long", "Short", or "Flat" depending on the active trade
💰 Entry Price: The exact price where the trade was entered
📈 Unrealized %: Current profit/loss as a percentage
💵 Unrealized $: Estimated PnL in dollars, scaled to your backtest capital
📊 Trades / Win Rate: Live counter for total trades, win/loss count, and win rate
🎯 TP1 Hit / TP2 Hit: Shows ✅ or ❌ depending on whether each target level was reached during the current trade
This dashboard helps you monitor trade status, track live performance, and validate signal behavior in real time — all without repainting or relying on external tools.
📈 How to Use
Timeframe: Optimized for the 1-hour timeframe, but adaptable.
Asset Class: Primarily built for crypto markets, especially fast-moving alts like AVAX, LINK, QNT, etc.
Trade Mode: Supports long and short trades with clean reversal logic.
Dashboard: Live stats including position status, TP1/TP2 hit, win rate, and real-time PnL tracking.
Backtest Ready: Built with full compliance to TradingView backtest engine — results are realistic and match live-bar behavior.
⚠️ No Repainting — No Guesswork
Every element in this script is designed to work with confirmed bar data only. There is zero forward-looking logic. This makes Gradient Sniper Elite fully compatible with both backtesting and live algo execution.
🧩 Why This Isn’t Just a Mashup
Each indicator in this strategy has a specific role:
ZLEMA: Core trend slope engine.
TEMA: Trend reinforcement.
RMI: Directional decision layer.
CCI & ROC: Entry timing refinement.
Volume Filter: Risk filtering.
They’re not merged randomly, but combined in sequence to eliminate noise and optimize entries.
📌 Disclaimer
This script is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. Always do your own research and use appropriate risk management when trading. Past performance does not guarantee future results.
David scalpeur pro V2.04scalper for M1 timeframe, giving you entry points, it's up to you to decide when to exit positions.
Several indicators work together to filter out false signals. Beware of entry signals close to resistance and support, as the price can quickly turn around.
SERA_EMA_L/S_BLOCK📌 Generic Name: SERA_EMA_L/S_BLOCK
This indicator consists of 3 main components:
1️⃣ EMA Based Breakdown and Candle Coloring
What does it do?
It changes the color of the candles according to whether the price breaks above or below the EMA (Exponential Moving Average) of the specified period.
How does it work?
If the candle breaks above the EMA High and closes above it: Green → Buying strength.
If the candle breaks below the EMA Low and closes below it: Red → Sales edition available.
2️⃣ Smooth Range Filter + Long/Short Signal Generation
What does it do?
Determines the trend direction of the price with the “smooth range” calculation.
It generates Long (Buy) and Short (Sell) signals by determining whether the price is going up or down.
How does it work?
If the price is above the “range filter” and heading upwards → Long signal
If the price is below the filter line and heading down → Short signal
These signals are shown as labels on the chart:
Green “Long” label → Buy signal
Red “Short” label → Sell signal
3️⃣ Swing High/Low (Pivot Points) + Liquidity Blocks
What does it do?
Determine the pivot high and pivot low points that occur within a certain length (e.g. 14 bars).
Liquidity blocks/areas (similar to order blocks) are drawn according to these points.
These areas represent areas where there is potential for price reversal or where liquidity has gathered in the past.
Features
Wick Extremity or Full Range can be used to change the area calculation of the boxes.
These zones also include:
Number (how many times has it been tested?)
Volume (how much trading volume has occurred in the past?).
These areas are visually marked with colored boxes, lines and labels:
Red boxes Swing High (potential resistance area)
Greenish/Blue boxes: Swing Low (potential support area)
🛎️ Alerts
TradingView can send notifications when Long and Short signals occur.
🔍 Intended Use:
This indicator is especially useful for short and medium-term trading:
Clarify trend direction
Identify potential turning zones
Generating buy and sell signals based on price momentum
Identify liquidity zones and see if the price tests them
can be used for this purpose.
Trend Trading IndicatorThis trend trading indicator uses multiple different custom formulas to identify market trends as well as identify when the market is moving sideways. It has a master trend that will show you the trend using the color of the candles and then there are multiple different types of entry and confluence signals that will appear as different chart shapes above or below the candles to inform you about when to enter a trade and how strong the trend is so you know whether to hold a position longer or get out. There is also a panel at the bottom of the chart that shows you the trend strength for 5 different timeframes so you can easily identify the short and long term trends and scan through charts quickly to find markets with the strongest trends.
The indicator can be customized to fit your trading style by adjusting the timeframes for the master trend, which timeframes affect signals, turning on or off the various entry & confluence signals, turning on or off ranging market filters and more. It can be adjusted to react quickly for intraday trading or use long timeframes for swing trading or only trading when the market is in a strong long term trend.
The indicator also has a built in trend direction value that can be sent to other indicators to be used as a trend filter as well by setting the source value on an external indicator to use the trend direction value from this indicator. This is useful for preventing signals from coming in on other indicators when they go against the trend that this indicator has identified according to the settings it is configured with.
How To Use This Indicator Properly
This indicator is designed to only give signals when the market is trending and filter out the sideways price action for you. Due to this, depending on the timeframe settings you use, there may be extended periods where there are no signals because the market is going sideways. You can adjust your timeframe settings to react faster or slower by lowering the timeframes used and turning off some of the higher timeframes or use all of the timeframes available and only get signals when the market is in a strong long term trend for the safest trades.
The indicator uses a master trend that needs to show a trend before any other confluence signals can come in. The master trend will show up by coloring the candles blue when the trend is bullish or orange when the trend is bearish according to the settings you have chosen. When the market is not trending, the candles will be colored grey. This helps to keep you out of trades when the market is going sideways. You will only be able to see the master trend by using the colored candles though, so make sure to turn the chart’s candle coloring off so it doesn’t override the indicator candle coloring.
Once a trend has been established, then other signals will begin to show up if the trend is strong and various parameters are met. The indicator includes the following types of signals:
Master Trend Signals
Strong Trend Buy & Sell Signals
Pullback During Strong Trend Signals
Strong All Timeframe Trend Signals
Trend Strength Score Signals
The indicator also has multiple filters you can use to customize the master trend to allow more or less signals to come in. The more filters you have on, the better and more likely the signals are to be winners because it will only give signals when there are very strong trends on all timeframes. If you want a lot of signals for intraday scalping, you can turn off most of the filters and just use lower timeframes for the master trend settings. The following filters can be used to customize the trend parameters:
Signals Only Allowed In Direction Of Timeframes 4 & 5
Trend Of Timeframe #1 Used For Master Trend Signals
Trend Of Timeframe #2 Used For Master Trend Signals
Trend Of Timeframe #3 Used For Master Trend Signals
Trend Of Timeframe #4 Used For Master Trend Signals
Trend Of Timeframe #5 Used For Master Trend Signals
No Master Trend Signals If This Timeframe Is Ranging - #1
No Master Trend Signals If This Timeframe Is Ranging - #2
No Master Trend Signals If This Timeframe Is Ranging - #3
Make sure to keep all trend timeframes in order from 1-5 for best results, even if they are turned off. The indicator is programmed to compare each timeframe to the next one, so keeping the timeframes in order will give you proper calculations. For example: timeframes 1-5 should be 15, 60, 240, 1D, 1W or 240, 1D, 1W, 1M, 3M and so on.
The indicator has alerts for bullish and bearish versions of each type of signal so you can get notified when a chart is trending strongly.
Market Hours Available To Use The Indicator On
The indicator works on stocks, crypto, forex and futures markets and other markets that have the same hours, you just need to select the hours that the market you are trading has in the main indicator settings to get the correct signals. There are options for stock hours(6.5 hours a day, 5 days per week), futures/forex hours(23 hours a day, 5 days per week) and crypto hours(24 hours a day, 7 days per week). Just select the correct option in the dropdown menu and the indicator will calculate based on those hours.
Master Trend Settings
The master trend is calculated using Timeframes 1-5, the setting for whether to use timeframes 1-5 for signals, ranging market filters 1-3 and only allow signals in the direction of timeframes 4 & 5. These settings will affect how the overall trend is calculated, which has to be trending in order for any confluence signals to come in.
Set timeframe 1 to a higher timeframe than your chart is set to. For example if you trade the 1 minute or 5 minute chart, timeframe #1 needs to be set to something higher than your chart so 15, 60 or 240. Then set timeframes 2-5 to be one timeframe higher than the previous one. So if timeframe 1 is 60, then timeframe 2 should be 240 and so on. Make sure to do this even if you do not turn on each timeframe to be used for master trend signals as the higher timeframes will still affect the confluence signals.
Turn on or off the toggle for each timeframe if you want the master trend to use. Keeping just lower timeframes on will give more signals for short term trends and leaving all of the timeframes on will only give signals when all of the timeframes are trending. I recommend keeping timeframes 1 & 2 on at the very least and then turning on or off timeframes 3-5 based on how many signals you want and how strong you want the trend to be in order for signals to be given.
Ranging Market Filters
The indicator has parameters to detect if the market is ranging or moving sideways on each timeframe and will show this by coloring the trend strength score in the bottom panel grey for that timeframe. When the market is ranging, it is best to not trade because there is no established trend. Use these filters to increase the probability of the master trend and confluence trend signals being correct and moving in the direction of the trend.
If you turn on the ranging market filters, you will not get any signals if the market is detected as ranging on any of the timeframes you have turned on for the ranging market filters.
You can use 1, 2 or all 3 ranging market filters to dial in the indicator to your preference. Make sure to backtest it and look at historical data to see how this will affect the indicator and choose what settings work best for your style of trading.
Signals Only Allowed In Direction Of Timeframes 4 & 5
If you only want to make sure you are trading in the direction of the long term trend, turn this setting on. It will prevent the indicator from giving any signals that are not in the same direction as the long term trends and increase your probability for winning trades.
This setting allows you to quickly filter out any noise that you will get from lower timeframe trends that are not in the same direction as the long term trends and helps to ensure you stick to the overall trend. Markets will usually make much faster and larger moves in the direction of the overall trend and have high resistance, choppy moves when going in the opposite direction, so this will help you avoid getting into those trades even if you don’t have timeframes 4 & 5 turned on in the master trend timeframe settings.
Strong Buy & Sell Signals
When the master trend detects a trending market and the trend is strong on all 5 timeframes, the indicator will show crosses on the chart meaning these are great entry points to get into the market with positions in the direction of the trend. There are 3 levels of these signals and will show as small crosses, medium crosses and large crosses. The larger the cross is, the stronger the trend is and is more likely to continue the trend.
Use these strong buy & sell signal crosses as entry points and place your stop loss at the most recent major pivot. Then trail your stop loss with the trade to lock in profits.
Pullbacks During Strong Trend Signals
When there is a strong trend on timeframes 3-5 and a pullback on timeframes 1 & 2, then move back in the direction of the higher timeframe trend, this will fire a signal to enter a trade in the direction of the trend. These are excellent entries since the market has pulled back, allowing you to have a good entry with low potential drawdown.
These signals will appear as label tag or price tag looking signals. Use these for your entries and then place a stop loss just beyond the most recent major pivot and trail your stop loss as the trade moves in your favor to lock in profits.
Strong All Timeframe Trend Signals
When the trend is strong on all timeframes that you have set to use for master trend signals, the indicator will show circles/dots on the chart above or below the candles. There is also a second type of strong trend calculation that it uses that will detect a strong trend in a slightly different way and that formula will paint a background color on the chart as extra confluence. When the background color and dots show up at the same time, that means both formulas are showing strong trends.
Use these dots and background coloring to confirm your position and continue to hold it for more gains. Strong trends typically continue in the same direction so use these signals as extra confluence to hold your position and stay in the trade.
Trend Strength Score Signals
Each timeframe will have a trend strength score calculated. If you turn the visuals on in the master trend timeframe settings, they will show up as an oscillator in the bottom panel. It will show red for bearish trends and green for bullish trends and grey when the market is ranging. It will also show a label next to each timeframe telling you the score out of the maximum score for that timeframe.
Pay attention to these as they will give you a very quick way to read the long term and short term trends. When all timeframes are trending strongly, the background will paint red or green to notify you of strong trends that you can trade.
When the long term trends agree, but short term trends are going against the long term, look for the short term trends to reverse and use those areas as entry positions for longer trades in the direction of the overall trend. Doing this really helps to identify possible reversals and keep you from getting into those types of trades too early.
Timeframes The Indicator Can Be Used On
The indicator is setup to be used on the following chart timeframes: 15 seconds, 30 seconds, 1 minute, 2 minute, 3 minute, 5 minute, 10 minute, 15 minute, 30 minute, 1 hour, 2 hour, 4 hour, 6 hour, 8 hour, 12 hour and 1 day charts.
If your chart is set to a different timeframe than the ones listed above, it will not calculate properly, so make sure your chart is on the correct timeframe.
Markets The Indicator Can Be Used On
The indicator has 3 modes for various market hours. The type of market doesn’t matter, what matters is how many hours that market is open for. Almost all markets fall under 3 types of opening hours so we have provided the ability for the indicator to calculate correctly on all 3 types of market hours. The hours it can use are: stocks(6.5 hours per day, 5 days per week), crypto(24 hours per day, 7 days per week) and futures/forex(23 hours per day, 5 days per week).
You will need to update this setting from the dropdown at the top of the indicator settings to match the chart that you are on for it to calculate correctly.
Filtering Other Indicators Using The Trend Direction Of This Indicator
The indicator has a built in trend direction value that can be sent to other indicators and used as a filter. By setting an input.source() value on other indicators that are on the same chart as this indicator, you can set that indicator to do or not do whatever you want when this trend indicator shows a trend or not.
The name of the source you can use on your external indicator is called Trend Direction To Send To External Indicators. The values it sends are as follows: 0 when there is no master trend direction, 1 when the master trend is bullish and -1 when the master trend is bearish.
By using this source, you can prevent other indicators from giving sell signals during up trends, prevent other indicators from giving buy signals during down trends and prevent other indicators from giving any signals when the market is ranging or not showing an established trend.
Alerts Available To Use
The indicator has alerts for bullish versions as well as bearish versions of each type of signal available. Use these alerts to notify you of strong trends on markets that you may not have the charts up for at all times but still want to trade.