Yüzde 5 Kar ve Yüzde 2 Zarar Stop Stratejisi15 dk grafikde rsi,bollinger bantları,fiyat,hacim kullanarak işlem yapmak için kullanılabilir.
Indicators and strategies
ka66: ADR EstimationThis is based on Daryl Guppy's Average Daily Range indicator, the link is difficult to find, but it is an estimation/projection indicator for a daily range.
The thesis is (if I understand correctly):
The range (high - low) of a particular day can be determined, with 85% probability, by taking the ranges of the last 5 days, and getting their average, then multiplying this average value by 0.75. This final value is the estimated range for the next day.
The indicator does not say anything about potential direction, so it may be used as a Take Profit or Stop Loss estimator for the trading strategy in use. Either on the daily timeframe, or an intraday timeframe.
And if we enter the market intraday for a day trade, when the day's range has already exceeded or is close to exceeding the estimated/projected value, perhaps the move is already quite exhausted, and the trade needs to be reconsidered.
A further implication is: if 0.75 multiple occurs with 85% probability, then a lower multiple is even more probable, if one was looking for a more conservative estimate.
The indicator shows three things for a visual inspection of the validity of this concept (and allows basic customisation of parameters):
The day's range, shown in a translucent gray/deep green, as columns. This is the current bar's range. If intraday, it will repaint.
The 5 day average up to the current bar, shown as a step-line plot in orange. If intraday, it will repaint.
The projected range: a thinner blue histogram column, this is offset one bar forward, as it is a future estimate/forward-looking. It too will repaint if the current day is still not complete.
To evaluate the historical results of the chosen settings visually (eye-ball it!), compare the blue histogram bar to the gray bar/column, i.e. the estimate vs. actual range:
When the blue bar is generally within the gray column, and close enough to that column's size/range, then the projected estimation has been reasonable.
if the blue bar tends to be relatively smaller than the gray bar, then we are underestimating often. Increase the projection multiple setting, as a simple fix.
if the blue bar tends to exceed the range of the gray bar a lot, we are overestimating often. Lower the projection multiple setting, as a simple fix.
Guppy's document says that they basically calculate this ADR for multiple markets and focus on markets with the top 5 ranges (in descending order, of course), to maximise the profit potential on intraday trades planned for the next day. Because it is an estimation, this calculation can be run at the end of the day on completed bars.
This indicator also allows displaying the value as percentages, taking the logic of the ATR% (ATR Percent) indicator, which divides the ATR by the close value and multiplies it by 100 to get a normalised percentage value, allowing it to be compared across markets (but in the same timeframe!).
Current Candle Open-to-Current Move in Pointsthis will show you the current candle movement in pips. Help you track the amount of points/ticks/pips for your candles
Micro Gaps DetectorSimple Micro Gap Indicator: A Technical Analysis Tool
The Simple Micro Gap Indicator is a specialized momentum indicator designed to identify and analyze micro gaps between consecutive candlesticks in financial charts. Unlike traditional gap analysis that focuses on larger price gaps, this indicator specifically targets smaller, less noticeable spaces between candles.
Key Features:
Detects minimal price disparities between consecutive candlesticks
Helps identify potential short-term momentum shifts
Useful for high-frequency trading and scalping strategies
Functions as a momentum indicator for short-term price movements
Nirvana Mode PRO v2 - FULL AUTONİRVANAPROV2 INDİKATOR H4RSI_TRENDBOT
emaFast = ta.ema(close, 8)
emaSlow = ta.ema(close, 21)
rsi = ta.rsi(close, 14)
= ta.supertrend(2.0, 10)
volAvg = ta.sma(volume, 10)
volSpike = volume > volAvg * 1.5
marianLibraryEMALibrary "marianLibraryEMA"
ema(src, length)
Returns EMA of input source
Parameters:
src (float) : (float) - input series (price or any data)
length (simple int) : (int) - period of EMA
Returns: (float) - calculated EMA
Camarilla Pivots & BBT StrategiesThis indicator implements the Camarilla Pivot Points system used in the Bear Bull Traders community and described in the book "A Complete Day Trading System" by Thor Young. It works for stocks, ETFs and futures (see note below for futures). It's for intraday trading; it doesn't work on sub-minute timeframes nor on daily and above timeframes; you'll get an error, so you can't use this indicator for inter-day, e.g. monthly pivots (just use the built-in TradingView pivot point indicator if you want those).
It calculates and shows the support and resistance Camarilla levels at the 3rd, 4th and 6th levels. It does not use the 1st, 2nd or 5th levels since these are not used by the system. These display correctly irrespective of whether the chart setting is RTH or ETH. It also displays the 12 strategies defined by the system, when the strategy conditions are fulfilled. There are 6 strategies for when the pivots are in an upper range, and their converse 6 when in a lower range. The strategies can be found at bearbulltraders.com/pivotbook, download "Pivot Sheet". It optionally also displays weekly and monthly pivots.
The strategies are labelled HA-HF and LA-LF. The first letter refers to whether it's a Higher or Lower range strategy. The second letter refers to the letter of the strategy in the Pivot Sheet. By default the indicator draws strategies 5 days back; this can be changed up to 20 days.
Finally it displays information at the top-right of chart indicating whether RTH or ETH data is in use, the range of the pivots (upper, lower, neutral), their width (wide, narrow, similar) and the currently active strategy. If multiple strategies are active in parallel, only the last activated one is shown in this information.
When displaying strategies in the premarket, since the RTH open is not yet known (and that value is needed to evaluate strategy pre-conditions), the pre-market open on the currently used chart timeframe is used as proxy value for the RTH open. After the regular market opens, the correct RTH open is used to evaluate strategy conditions.
The resistance pivots are all drawn in the same colour (red by default), as are the support pivots (green by default). You can change the resistance and support colours, but it is not possible to have different colours for different levels of the same kind. The strategies will always use the correct colour however, drawing over the pivots. For example, R4 is red by default, but if a strategy makes R4 a support, then the strategy will draw a green line (by default) over the red R4 line, thereby hiding it, during when the strategy is active.
The pivots are very close to those shown in the main trading platform used in the Bear Bull Traders community, not to-the-cents exact, but within a few cents. The reasons are i) TradingView uses real-time data from CBOE One, so doesn't have access to full exchange data (unless you pay for it in TradingView) and, ii) the close/high/low are taken from intra-day data, not daily data, which are very close but often not exactly the same. For example, the high on the daily timeframe may differ slightly from the daily high you'll see on an intraday timeframe. I have occasionally seen big differences in the pivots between these and DAS Trader Pro - this is always due to difference in data, for example a big spike in the data in TradingView but not in DAS, or vice versa. If it bothers you, official NYSE/NASDAQ data in TradingView is not too expensive.
The indicator is highly configurable with many options to change how they work, but it has sensible defaults. By default, the pivots will automatically switch between using ETH and RTH data, and only one set of pivots is ever shown. There are few advanced parameters; leave these as default unless you really know what they do. Please note the script is complicated, it does a lot. You might need to wait a few seconds while it (re)calculates on new tickers or when changing options - give it time when first loading or changing options!
Note for Futures:
Futures don't officially have a pre-market or post-market like equities. Let's take ES on CME as an example (CME is in Chicago, so all times are Central Time, i.e. 1 hours behind Eastern Time). It trades from 17:00 Sunday to 16:00 Friday, with a daily pause between 16:00 and 17:00. However, most of the trading activity is done between 08:30 and 15:00 (Central), which you can tell from the volume spikes at those times and this coincides with NYSE/NASDAQ regular hours (09:30-16:00 Eastern). So we define a pseudo-pre-market from 17:00 the previous day to 08:30 on the current day, then a pseudo-regular market from 08:30 to 15:00, then a pseudo-post-market from 15:00 to 16:00. The indicators then work exactly the same as with equities, all the options behave the same, just with different session times defined for the pre-, regular and post-market, with "RTH" meaning just the regular market, and "ETH" meaning all three. The only difference from equities is that the auto calculation mode always uses ETH instead of switching based on ETH range compared to RTH range. This is so users who just leave all the defaults are not confused by auto switching of the calculation mode; normally you'll want the pivots based on all the (ETH) data. However both "Force RTH" and "Use RTH close with ETH data" work the same as with equities, so if in the calculations you really want to only use RTH data, or use all ETH H/L data but use the RTH close (at 15:00), you can.
High ATRHigh-ATR is an indicator that visualizes volatility using the Average True Range (ATR). It highlights periods of elevated volatility by comparing the ATR to its moving average.
When the ATR exceeds its moving average, it is considered "Overthreshold" and is displayed in red. This helps identify candles with significant volatility.
Note: ATR does not indicate market direction, only the magnitude (width) of the trading range.
Default Settings:
Long length: 50 (used for the ATR moving average)
Short length: 1 (used for the current ATR)
Multiplier: 2
These values can be adjusted depending on your trading style, but this is the default configuration.
Dual Momentum OSCOverview:
Momentum OSC is a dual-layered momentum oscillator that blends multi-timeframe momentum readings with moving average crossovers for deeper insight into trend acceleration and exhaustion. Perfect for confirming trend strength or spotting early shifts in momentum.
Features:
✅ Two separate momentum streams with customizable timeframes
✅ Smoothing via moving averages for both momenta
✅ Cross-timeframe momentum structure for confirmation and divergence
✅ Color-coded areas for intuitive visual interpretation
✅ Optional crossover markers to signal bullish/bearish momentum shifts
How It Works:
The script calculates two momentum values by comparing current price sources against lagged values across separate timeframes. Each is smoothed with a moving average to filter noise. The difference between momentum and its moving average forms a core component of trend strength confirmation. Optional visual circles mark bullish or bearish crossovers.
Customizable Inputs:
Timeframes, sources, lengths, and MA periods for both momentum streams
Toggle to display momentum cross signals (circles)
Works on any asset or timeframe
Supertrend X2 + CalcSize Calculator:
Size Calculator is a risk management tool that helps traders position themselves intelligently by calculating optimal position size, stop loss, and take profit levels based on account capital, ATR volatility, and personal risk tolerance. It takes the guesswork out of sizing so you can focus on execution.
Features:
✅ Risk-based position sizing
✅ ATR-based stop loss & take profit levels
✅ Dynamic leverage estimation
✅ Support for long and short positions
✅ Visual display of key levels and metrics via table
✅ Works across any timeframe with locked timeframe support
How It Works:
This tool computes the ideal position size as a % of account capital based on how much you're willing to risk per trade and how far your stop loss is (in ATR units). It calculates corresponding stop loss and take profit prices, and visually plots them along with a floating table of metrics. You can lock the timeframe used for ATR and price, keeping your risk logic stable even when changing chart views.
Customizable Inputs:
Account capital and risk tolerance
ATR-based stop loss & take profit multiples
Trade direction (Long or Short)
ATR period and locked timeframe
Optional detailed metrics display
Dual SuperTrend:
The Dual Supertrend indicator enhances the classic Supertrend strategy by layering two customizable Supertrend signals with independent ATR settings. This setup gives you a deeper, more nuanced read on trend strength and potential entry zones.
Features:
✅ Two Supertrend lines (each with adjustable ATR periods and multipliers)
✅ Optional Heikin Ashi candle smoothing for noise reduction
✅ Color-coded trend background for fast visual analysis
✅ Multi-timeframe trend table overlay (customizable)
✅ Built-in signal logic to identify "Long", "Short", or "N/A" zones
✅ Built-in alerts from Long and Short Entry Zones
How It Works:
The script calculates two Supertrend levels using separate ATR settings. Trend direction is derived from the relationship between price and each band. When the larger (slower) Supertrend flips and the smaller (faster) confirms, it signals a potential entry. The multi-timeframe table helps you align trades across different timeframes.
Customizable Inputs:
ATR Periods & Multipliers for both Supertrends
Timeframes for entry zone detection (up to 4)
Enable/disable Heikin Ashi candles for smoother trend detection
Custom EMA + VWAP Indicator📈 Custom EMA + VWAP Indicator (v6)
This indicator displays:
8, 18, 40, and 200 EMAs (customizable colors & toggle visibility)
Session VWAP line
Optional alerts for price crossing or closing above/below each level
🔔 Use it to confirm trend, momentum, and VWAP alignment for scalping or swing trading.
💡 Ideal for traders who rely on price structure + institutional volume zones.
QuantumSync Pulse [ w.aritas ]QuantumSync Pulse (QSP) is an advanced technical indicator crafted for traders seeking a dynamic and adaptable tool to analyze diverse market conditions. By integrating momentum, mean reversion, and regime detection with quantum-inspired calculations and entropy analysis, QSP offers a powerful histogram that reflects trend strength and market uncertainty. With multi-timeframe synchronization, adaptive filtering, and customizable visualization, it’s a versatile addition to any trading strategy.
Key Features
Hybrid Signals: Combines momentum and mean reversion, dynamically weighted by market regime.
Quantum Tunneling: Enhances responsiveness in volatile markets using volatility-adjusted calculations.
3-State Entropy: Assesses market uncertainty across up, down, and neutral states.
Regime Detection: Adapts signal weights with Hurst exponent and volatility ROC.
Multi-Timeframe Alignment: Syncs with higher timeframe trends for context.
Customizable Histogram: Displays trend strength with ADX-based visuals and flexible styling.
How to Use and Interpret
Histogram Interpretation
Positive (Above Zero): Bullish momentum; color intensity shows trend strength.
Negative (Below Zero): Bearish momentum; gradients indicate weakness.
Overlaps: Alignment of final_z (signal) and ohlc4 (price) histograms highlights key price levels or turning points.
Regime Visualization
Green Background: Trending market; prioritize momentum signals.
Red Background: Mean-reverting market; focus on reversion signals.
Blue Background: Neutral state; balance both signal types.
Trading Signals
Buy: Histogram crosses above zero or shows positive divergence between histograms.
Sell: Histogram crosses below zero or exhibits negative divergence.
Confirmation: Match signals with regime background—green for trends, red for ranges.
Customization
Tweak Momentum Length, Entropy Lookback, and Hurst Exponent Lookback for sensitivity.
Adjust color themes and transparency to suit your charts.
Tips for Optimal Use
Timeframes: Use higher timeframes (1h, 4h) for trend context and lower (5m, 15m) for entries.
Pairing: Combine with RSI, MACD, or volume indicators for confirmation.
Backtesting: Test settings on historical data for asset-specific optimization.
Overlaps: Watch for histogram overlaps to identify support, resistance, or reversals.
Simulated Performance
Trending Markets: Histogram stays above/below zero, with overlaps at retracements for entries.
Range-Bound Markets: Oscillates around zero; overlaps signal reversals in red regimes.
Volatile Markets: Quantum tunneling ensures quick reactions, with filters reducing noise.
Elevate your trading with QuantumSync Pulse—a sophisticated tool that adapts to the market’s rhythm and your unique style.
Percentage difference to averagesSimple indicator to analyse the distance of price and average.
An indicator that shows the percentage distance between the current price and a moving average (MA) is a powerful tool to assess how far the price has deviated from its recent average. It provides insights into market extremes, momentum, and potential reversal zones.
Identifying Overbought / Oversold Conditions:
When the price is significantly above the moving average (e.g., +10% or more), it might suggest that the asset is overbought and could be due for a correction or consolidation.
If the price is far below the MA (e.g., –10%), it might indicate oversold conditions and a potential rebound.
Gauging Strength or Weakness:
- A large positive distance shows strong bullish momentum – price is surging away from its average.
- A large negative distance can suggest weakness, panic selling, or capitulation.
This helps traders and analysts see whether current price action is strong or potentially stretched.
Entry/Exit Signal Aid
- Trend followers might enter when the price pulls back toward the MA after a strong run.
- Mean reversion traders use the distance to bet on a return toward the average when the deviation gets too extreme.
Impulse FinderPine Script v6, Copyright © 2025, Einhornhunter
The Impulse Finder uses the Elder Impulse System to color candles based on EMA and MACD, identifying bullish (green), bearish (red), or neutral (blue) market conditions. It overlays candles without transparency and offers an option to display only the candle body. Detects cross points for trend changes.
Inputs: MA Period (13), MACD Fast (12), Slow (26), Signal (9), Display Body Only (false).
SMC Entry Signals MTF v2📘 User Guide for the SMC Entry Signals MTF v2 Indicator
🎯 Purpose of the Indicator
This indicator is designed to identify reversal entry points based on Smart Money Concepts (SMC) and candlestick confirmation. It’s especially useful for traders who use:
Imbalance zones, order blocks, breaker blocks
Liquidity grabs
Multi-timeframe confirmation (MTF)
📈 How to Use the Signals on the Chart
✅ LONG Signal (green triangle below the candle):
Conditions:
Price is in a discount zone (below the FIB 50% level)
A bullish engulfing candle appears
A bullish Order Block (OB) or Breaker Block is detected
There’s an upward imbalance
A bullish OB is confirmed on the higher timeframe
➡️ How to act:
Consider entering long on the current or next candle.
Place your stop-loss below the OB or the nearest swing low.
Take profit at the nearest liquidity zone or premium area (above FIB 50%).
🔻 SHORT Signal (red triangle above the candle):
Conditions:
Price is in a premium zone (above FIB 50%)
A bearish engulfing candle appears
A bearish OB or Breaker Block is detected
There’s a downward imbalance
A bearish OB is confirmed on the higher timeframe
➡️ How to act:
Consider short entry after the signal.
Place your stop-loss above the OB or swing high.
Target the discount zone or the next liquidity pocket.
⚙️ Recommended Settings by Trading Style
Trading Style Suggested Settings Notes
Intraday (1–15m) fibLookback = 20–50, obLookback = 5–10, htf_tf = 1H/4H Fast signals. Use Discount/Premium + Engulfing.
Swing/Position (1H–1D) fibLookback = 50–100, obLookback = 10–20, htf_tf = 1D/1W Higher trust in MTF confirmation. Ideal with fundamentals.
Scalping (1m) fibLookback = 10–20, obLookback = 3–5, htf_tf = 15m/1H Remove Breaker and MTF for quick reaction trades.
🧠 Best Practices for Traders
Trend Filtering:
Use EMAs or volume to confirm the current trend.
Take longs only in uptrends, shorts in downtrends.
Liquidity Zones:
Use this indicator after liquidity grabs.
OBs and Breakers often appear right after stop hunts.
Combine with Manual Zones:
This works best when paired with manually drawn OBs and key levels.
Backtest the Signals:
Use Bar Replay mode on TradingView to test past signals.
🧪 Example Trade Setup
Example on BTCUSDT 15m:
Price drops into the discount zone.
A green triangle appears (bullish engulfing + OB + imbalance + HTF OB).
You enter long, stop below the OB, target the premium zone.
🎯 This type of setup often gives a risk/reward ratio of 1:2 or better — profitable even with a 40% win rate.
⏰ Alerts & Automation
Enable alerts:
"SMC Long Entry" — fires when a long signal appears.
"SMC Short Entry" — fires when a short signal appears.
You can integrate this with bots via webhook, like:
TradingConnector, 3Commas, Alertatron, etc.
✅ What This Indicator Gives You
High-probability entries using SMC logic
Customizable filters for entry logic
Multi-timeframe confirmation for stronger setups
Suitable for both intraday and swing trading
Custom Opening Range - CommoditiesThe Custom Opening Range Indicator for Commodities is designed for instruments that trade nearly 24 hours, such as crude oil or natural gas. It allows traders to define the Opening Range based on Indian Standard Time (IST)—typically starting at 3:30 AM IST, which aligns with the global commodities market open. Users can customize both the start time and duration of the range (e.g., 5, 15, or 30 minutes). The indicator dynamically plots the high and low of this range and shades the area between them, providing a clear visual reference for breakout or reversal setups during the rest of the trading session.
2HH2LL [CCE_Charts]Detects the "Two Higher Highs, Two Lower Lows" (2HH2LL) pattern formation and provides strength analysis with trade signals. The indicator displays visual markers, S/R zones, and clear signals for LONG or SHORT positions.
Pattern Description
The 2HH2LL pattern consists of two consecutive higher highs and two consecutive lower lows. This formation can signal potential trend reversals or continuations depending on market context.
Key Features
• Pattern strength analysis using S/R zone and volume confirmation
• Clear LONG or SHORT trade signals
• Visual markers highlighting pattern components
• Support/Resistance zone visualization
• Customizable alerts for real-time notifications
• Detailed information panel
How to Use This Indicator
1. Add the indicator to your chart
2. Configure settings based on your trading style
3. Look for the "2HH2LL" label when a valid pattern forms
4. Check the pattern strength (STRONG, MEDIUM, WEAK)
5. Note the trade direction signal (LONG or SHORT)
6. Verify the pattern with other technical tools
7. Set up alerts for real-time notifications
Settings Guide
Pattern Settings
• Lookback Period: Controls pivot point detection (5-50)
• Minimum Swing Strength: Required percentage change between highs/lows
Confirmation Settings
• S/R Zone Size: Size of support/resistance zone
• Volume Confirmation Threshold: Volume multiple required for confirmation
• Volume Average Period: Bars used for volume average calculation
Visual Settings
• Show H1/H2/L1/L2 Labels: Toggle pattern component labels
• Show S/R Zone: Toggle support/resistance zone display
Signal Settings
• Trade Direction: How trade direction is determined (SHORT, LONG, AUTO)
Alert Settings
• Alert on All Patterns: Trigger alerts for all valid patterns
• Alert on STRONG Patterns Only: Only alert on strong patterns
• Alert on Direction: Filter alerts by trade direction
Pattern Strength Analysis
The indicator classifies pattern strength into three categories:
• STRONG: Both confirmation factors present (S/R test and volume)
• MEDIUM: One confirmation factor present
• WEAK: No confirmation factors present
For best results, use this indicator in combination with other technical tools and always consider the broader market context.
Open = High/Low Signal (30min)//@version=6
indicator("Open = High/Low Signal (30min)", overlay=true)
// Buffer to avoid exact equality issues (due to floating point)
buffer = 0.0001
// Entry Conditions
sellSignal = math.abs(open - high) <= buffer
buySignal = math.abs(open - low) <= buffer
// Plot signals
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
Volume by PriceDescription:
This Pine Script v6 indicator displays a chart that multiplies the volume by the closing price for each bar. It's often referred to as "monetary volume" or "traded value." This allows for the visualization of monetary activity on a price chart.
Technical Insights:
- Calculation: The indicator simply multiplies the volume of each bar (volume) by its closing price (close).
- Display: The result is plotted as a line in a separate pane below the main price chart. The height of the line at each point represents the product of the volume and the closing price at that time.
- Interpretation:
- Spikes in Volume * Price: Indicate significant monetary activity. This can signal strong interest in the asset at that price level.
- Low Volume * Price: Suggests a lack of interest or conviction.
- Divergences: If volume * price increases while the price decreases (or vice versa), it may signal a weakening of the current trend.
How to Use:
1. Identify Areas of Interest: Look for significant spikes in the volume * price chart. These areas may coincide with key support or resistance levels.
2. Confirm Trends: A price movement upwards (or downwards) accompanied by an increase in volume * price strengthens the validity of that trend.
3. Spot Divergences: Pay attention to situations where the volume * price does not confirm the price movement. This could indicate a potential reversal.
4. Combine with Other Indicators: Use this indicator in conjunction with other technical analysis tools (moving averages, RSI, MACD, etc.) for a more comprehensive view.
Potential Applications:
- Breakout Confirmation: A breakout of a price level (support or resistance) accompanied by increased volume * price is a stronger signal than a breakout with low volume.
- Identifying High Activity Zones: This indicator can help pinpoint price levels where a lot of trading has occurred, potentially indicating future support/resistance areas.
- Analyzing Market Participation: High volume * price suggests strong participation, while low volume * price indicates a lack of interest.
- Detecting Divergences: Divergences between volume * price and price can signal potential trend reversals.
- Momentum Trading: Combined with other momentum indicators, it can help identify entry and exit points.
Important Notes:
- This indicator is based on the closing price. It does not take into account the highs and lows of each bar.
- Volume * price is an analysis tool, not a standalone trading system. It should be used in conjunction with other indicators and strategies.
- The interpretation of volume * price may vary depending on the market and the time frame being analyzed.
Feel free to adapt this description to your own style and needs. You can also add concrete examples or screenshots to illustrate its use.
Dettsec Strategy SMThe DETTSEC SilverMic Strategy is a precision-engineered trend-following system designed to identify key market reversals using dynamic ATR-based stop levels. Built with the aim of riding trends while avoiding noise and false signals, this strategy uses the Average True Range (ATR) to calculate adaptive stop zones that respond to market volatility. With a combination of smart trailing logic and visual aids, it offers traders clear entry signals and real-time direction tracking.
At the core of this strategy lies a dual-layer stop system. When the market is trending upwards, the strategy calculates a Long Stop by subtracting the ATR from the highest price (or close, depending on user settings) over a specified period. Conversely, in a downtrend, it calculates a Short Stop by adding ATR to the lowest price (or close). These stops are not static — they trail in the direction of the trend and only reset when a reversal is confirmed, ensuring the system remains adaptive yet stable.
The strategy detects trend direction based on price behavior relative to these stops. When the price closes above the Short Stop, the system identifies a potential bullish reversal and shifts into a long mode. Similarly, a close below the Long Stop flips the system into a bearish mode. These directional changes trigger Buy or Sell signals, plotted clearly on the chart with optional label markers and circular highlights.
To enhance usability, the strategy includes visual elements such as color-filled backgrounds indicating the active trend state (green for long, red for short). Traders can customize whether to display Buy/Sell labels, use closing prices for extremum detection, and highlight state changes. Additionally, real-time alerts are built-in for direction changes and trade entries — empowering traders to stay informed even when off the charts.
Whether you're a manual trader seeking confirmation for your entries, or an algo-enthusiast automating entries based on clean signals, the DETTSEC SilverMic Strategy is designed to deliver clarity, reliability, and precision. As always, it's optimized for performance and simplicity
Dettsec SM ALERTSThe DETTSEC SilverMic Strategy is a precision-engineered trend-following system designed to identify key market reversals using dynamic ATR-based stop levels. Built with the aim of riding trends while avoiding noise and false signals, this strategy uses the Average True Range (ATR) to calculate adaptive stop zones that respond to market volatility. With a combination of smart trailing logic and visual aids, it offers traders clear entry signals and real-time direction tracking.
At the core of this strategy lies a dual-layer stop system. When the market is trending upwards, the strategy calculates a Long Stop by subtracting the ATR from the highest price (or close, depending on user settings) over a specified period. Conversely, in a downtrend, it calculates a Short Stop by adding ATR to the lowest price (or close). These stops are not static — they trail in the direction of the trend and only reset when a reversal is confirmed, ensuring the system remains adaptive yet stable.
The strategy detects trend direction based on price behavior relative to these stops. When the price closes above the Short Stop, the system identifies a potential bullish reversal and shifts into a long mode. Similarly, a close below the Long Stop flips the system into a bearish mode. These directional changes trigger Buy or Sell signals, plotted clearly on the chart with optional label markers and circular highlights.
To enhance usability, the strategy includes visual elements such as color-filled backgrounds indicating the active trend state (green for long, red for short). Traders can customize whether to display Buy/Sell labels, use closing prices for extremum detection, and highlight state changes. Additionally, real-time alerts are built-in for direction changes and trade entries — empowering traders to stay informed even when off the charts.
Whether you're a manual trader seeking confirmation for your entries, or an algo-enthusiast automating entries based on clean signals, the DETTSEC SilverMic Strategy is designed to deliver clarity, reliability, and precision. As always, it's optimized for performance and simplicity.
Issued By Dettsec Algo Pvt Ltd,
Created By - Gaurav Sanghvi - Co-Founder Dettsec Algo Pvt Ltd
Tanmay Joshi - Founder Dettsec Algo Pvt Ltd
Directional Movement IndexTrying to measure the potential turning point of price trends at different levels.
ADR% Extension Levels from SMA 50I created this indicator inspired by RealSimpleAriel (a swing trader I recommend following on X) who does not buy stocks extended beyond 4 ADR% from the 50 SMA and uses extensions from the 50 SMA at 7-8-9-10-11-12-13 ADR% to take profits with a 20% position trimming.
RealSimpleAriel's strategy (as I understood it):
-> Focuses on leading stocks from leading groups and industries, i.e., those that have grown the most in the last 1-3-6 months (see on Finviz groups and then select sector-industry).
-> Targets stocks with the best technical setup for a breakout, above the 200 SMA in a bear market and above both the 50 SMA and 200 SMA in a bull market, selecting those with growing Earnings and Sales.
-> Buys stocks on breakout with a stop loss set at the day's low of the breakout and ensures they are not extended beyond 4 ADR% from the 50 SMA.
-> 3-5 day momentum burst: After a breakout, takes profits by selling 1/2 or 1/3 of the position after a 3-5 day upward move.
-> 20% trimming on extension from the 50 SMA: At 7 ADR% (ADR% calculated over 20 days) extension from the 50 SMA, takes profits by selling 20% of the remaining position. Continues to trim 20% of the remaining position based on the stock price extension from the 50 SMA, calculated using the 20-period ADR%, thus trimming 20% at 8-9-10-11 ADR% extension from the 50 SMA. Upon reaching 12-13 ADR% extension from the 50 SMA, considers the stock overextended, closes the remaining position, and evaluates a short.
-> Trailing stop with ascending SMA: Uses a chosen SMA (10, 20, or 50) as the definitive stop loss for the position, depending on the stock's movement speed (preferring larger SMAs for slower-moving stocks or for long-term theses). If the stock's closing price falls below the chosen SMA, the entire position is closed.
In summary:
-->Buy a breakout using the day's low of the breakout as the stop loss (this stop loss is the most critical).
--> Do not buy stocks extended beyond 4 ADR% from the 50 SMA.
--> Sell 1/2 or 1/3 of the position after 3-5 days of upward movement.
--> Trim 20% of the position at each 7-8-9-10-11-12-13 ADR% extension from the 50 SMA.
--> Close the entire position if the breakout fails and the day's low of the breakout is reached.
--> Close the entire position if the price, during the rise, falls below a chosen SMA (10, 20, or 50, depending on your preference).
--> Definitively close the position if it reaches 12-13 ADR% extension from the 50 SMA.
I used Grok from X to create this indicator. I am not a programmer, but based on the ADR% I use, it works.
Below is Grok from X's description of the indicator:
Script Description
The script is a custom indicator for TradingView that displays extension levels based on ADR% relative to the 50-period Simple Moving Average (SMA). Below is a detailed description of its features, structure, and behavior:
1. Purpose of the Indicator
Name: "ADR% Extension Levels from SMA 50".
Objective: Draw horizontal blue lines above and below the 50-period SMA, corresponding to specific ADR% multiples (4, 7, 8, 9, 10, 11, 12, 13). These levels represent potential price extension zones based on the average daily percentage volatility.
Overlay: The indicator is overlaid on the price chart (overlay=true), so the lines and SMA appear directly on the price graph.
2. Configurable Inputs
The indicator allows users to customize parameters through TradingView settings:
SMA Length (smaLength):
Default: 50 periods.
Description: Specifies the number of periods for calculating the Simple Moving Average (SMA). The 50-period SMA serves as the reference point for extension levels.
Constraint: Minimum 1 period.
ADR% Length (adrLength):
Default: 20 periods.
Description: Specifies the number of days to calculate the moving average of the daily high/low ratio, used to determine ADR%.
Constraint: Minimum 1 period.
Scale Factor (scaleFactor):
Default: 1.0.
Description: An optional multiplier to adjust the distance of extension levels from the SMA. Useful if levels are too close or too far due to an overly small or large ADR%.
Constraint: Minimum 0.1, increments of 0.1.
Tooltip: "Adjust if levels are too close or far from SMA".
3. Main Calculations
50-period SMA:
Calculated with ta.sma(close, smaLength) using the closing price (close).
Serves as the central line around which extension levels are drawn.
ADR% (Average Daily Range Percentage):
Formula: 100 * (ta.sma(dhigh / dlow, adrLength) - 1).
Details:
dhigh and dlow are the daily high and low prices, obtained via request.security(syminfo.tickerid, "D", high/low) to ensure data is daily-based, regardless of the chart's timeframe.
The dhigh / dlow ratio represents the daily percentage change.
The simple moving average (ta.sma) of this ratio over 20 days (adrLength) is subtracted by 1 and multiplied by 100 to obtain ADR% as a percentage.
The result is multiplied by scaleFactor for manual adjustments.
Extension Levels:
Defined as ADR% multiples: 4, 7, 8, 9, 10, 11, 12, 13.
Stored in an array (levels) for easy iteration.
For each level, prices above and below the SMA are calculated as:
Above: sma50 * (1 + (level * adrPercent / 100))
Below: sma50 * (1 - (level * adrPercent / 100))
These represent price levels corresponding to a percentage change from the SMA equal to level * ADR%.
4. Visualization
Horizontal Blue Lines:
For each level (4, 7, 8, 9, 10, 11, 12, 13 ADR%), two lines are drawn:
One above the SMA (e.g., +4 ADR%).
One below the SMA (e.g., -4 ADR%).
Color: Blue (color.blue).
Style: Solid (style=line.style_solid).
Management:
Each level has dedicated variables for upper and lower lines (e.g., upperLine1, lowerLine1 for 4 ADR%).
Previous lines are deleted with line.delete before drawing new ones to avoid overlaps.
Lines are updated at each bar with line.new(bar_index , level, bar_index, level), covering the range from the previous bar to the current one.
Labels:
Displayed only on the last bar (barstate.islast) to avoid clutter.
For each level, two labels:
Above: E.g., "4 ADR%", positioned above the upper line (style=label.style_label_down).
Below: E.g., "-4 ADR%", positioned below the lower line (style=label.style_label_up).
Color: Blue background, white text.
50-period SMA:
Drawn as a gray line (color.gray) for visual reference.
Diagnostics:
ADR% Plot: ADR% is plotted in the status line (orange, histogram style) to verify the value.
ADR% Label: A label on the last bar near the SMA shows the exact ADR% value (e.g., "ADR%: 2.34%"), with a gray background and white text.
5. Behavior
Dynamic Updating:
Lines update with each new bar to reflect new SMA 50 and ADR% values.
Since ADR% uses daily data ("D"), it remains constant within the same day but changes day-to-day.
Visibility Across All Bars:
Lines are drawn on every bar, not just the last one, ensuring visibility on historical data as well.
Adaptability:
The scaleFactor allows level adjustments if ADR% is too small (e.g., for low-volatility symbols) or too large (e.g., for cryptocurrencies).
Compatibility:
Works on any timeframe since ADR% is calculated from daily data.
Suitable for symbols with varying volatility (e.g., stocks, forex, cryptocurrencies).
6. Intended Use
Technical Analysis: Extension levels represent significant price zones based on average daily volatility. They can be used to:
Identify potential price targets (e.g., take profit at +7 ADR%).
Assess support/resistance zones (e.g., -4 ADR% as support).
Measure price extension relative to the 50 SMA.
Trading: Useful for strategies based on breakouts or mean reversion, where ADR% levels indicate reversal or continuation points.
Debugging: Labels and ADR% plot help verify that values align with the symbol’s volatility.
7. Limitations
Dependence on Daily Data: ADR% is based on daily dhigh/dlow, so it may not reflect intraday volatility on short timeframes (e.g., 1 minute).
Extreme ADR% Values: For low-volatility symbols (e.g., bonds) or high-volatility symbols (e.g., meme stocks), ADR% may require adjustments via scaleFactor.
Graphical Load: Drawing 16 lines (8 upper, 8 lower) on every bar may slow the chart for very long historical periods, though line management is optimized.
ADR% Formula: The formula 100 * (sma(dhigh/dlow, Length) - 1) may produce different values compared to other ADR% definitions (e.g., (high - low) / close * 100), so users should be aware of the context.
8. Visual Example
On a chart of a stock like TSLA (daily timeframe):
The 50 SMA is a gray line tracking the average trend.
Assuming an ADR% of 3%:
At +4 ADR% (12%), a blue line appears at sma50 * 1.12.
At -4 ADR% (-12%), a blue line appears at sma50 * 0.88.
Other lines appear at ±7, ±8, ±9, ±10, ±11, ±12, ±13 ADR%.
On the last bar, labels show "4 ADR%", "-4 ADR%", etc., and a gray label shows "ADR%: 3.00%".
ADR% is visible in the status line as an orange histogram.
9. Code: Technical Structure
Language: Pine Script @version=5.
Inputs: Three configurable parameters (smaLength, adrLength, scaleFactor).
Calculations:
SMA: ta.sma(close, smaLength).
ADR%: 100 * (ta.sma(dhigh / dlow, adrLength) - 1) * scaleFactor.
Levels: sma50 * (1 ± (level * adrPercent / 100)).
Graphics:
Lines: Created with line.new, deleted with line.delete to avoid overlaps.
Labels: Created with label.new only on the last bar.
Plots: plot(sma50) for the SMA, plot(adrPercent) for debugging.
Optimization: Uses dedicated variables for each line (e.g., upperLine1, lowerLine1) for clear management and to respect TradingView’s graphical object limits.
10. Possible Improvements
Option to show lines only on the last bar: Would reduce visual clutter.
Customizable line styles: Allow users to choose color or style (e.g., dashed).
Alert for anomalous ADR%: A message if ADR% is too small or large.
Dynamic levels: Allow users to specify ADR% multiples via input.
Optimization for short timeframes: Adapt ADR% for intraday timeframes.
Conclusion
The script creates a visual indicator that helps traders identify price extension levels based on daily volatility (ADR%) relative to the 50 SMA. It is robust, configurable, and includes debugging tools (ADR% plot and labels) to verify values. The ADR% formula based on dhigh/dlow