ATR Stop Loss CalculatorThis indicator automatically calculates your Stop Loss and Take Profit levels for both Long and Short trades on every candle, using the Average True Range (ATR) as the foundation for risk measurement.
Instead of guessing where to place your stop, this tool gives you a mathematically calculated level based on the actual volatility of the market you are trading. If the market is moving fast and ATR is high, your stop will be wider. If the market is quiet and ATR is low, your stop will be tighter. This keeps your risk decisions consistent and objective across all market conditions.
How it works
The entry point is taken from the open of each candle. The ATR is calculated over a configurable period (default 14) and multiplied by your chosen multiplier to determine the risk distance. The Stop Loss is placed that distance above the entry for Short trades and below the entry for Long trades. The Take Profit is then placed at your chosen Risk:Reward multiple in the opposite direction.
What the table shows
The table in the top right corner displays both Long and Short scenarios side by side on every candle so you can immediately see your levels regardless of which direction you are considering. It shows Entry, Stop Loss, Take Profit, Risk in points, Reward in points, and the current ATR value.
Inputs
ATR Period — the number of candles used to calculate the Average True Range. Default is 14.
ATR Multiplier — how many times the ATR to use as your risk distance. Use 1.0 for a tight stop in a trending market, 1.5 for normal conditions, and 2.0 for choppy or volatile markets.
Risk:Reward Target — your desired R multiple for the Take Profit. Default is 3 for a 1:3 Risk:Reward ratio.
Who this is for
This indicator is built for traders who want to remove emotion from their stop placement and base every trade decision on real market volatility. It works on any asset and any timeframe including Forex, Gold, Crypto, Indices, and Stocks. Индикатор

Daily ATR BoxDaily ATR Box
A volatility-based price box anchored to the key levels traders watch most — previous day high/low, premarket high/low, current day high/low, current close, or a manual price — sized automatically by the Daily ATR so the range always reflects current market conditions.
How It Works
The box height equals the Daily Average True Range multiplied by a user-defined multiplier. You select the anchor level and the indicator places the box either above or below it depending on the anchor type. High anchors (Previous Day High, Premarket High, Current Day High) place the box top at the level and extend downward, showing how far price may retrace after testing that high. Low anchors (Previous Day Low, Premarket Low, Current Day Low) place the box bottom at the level and extend upward, showing the potential bounce range from that support.
Anchor Modes
Previous Day High — Box top sits at PDH, extending down by one ATR. Useful for measuring retracement potential after reclaiming the prior session's high
Previous Day Low — Box bottom sits at PDL, extending up by one ATR. Identifies the bounce range off prior session support
Premarket High — Box top sits at the current session's premarket high, extending downward. Updates live during premarket and locks at the 9:30 AM ET open
Premarket Low — Box bottom sits at the current session's premarket low, extending upward. Same live tracking and lock behavior as premarket high
Current Day High — Box top sits at the highest point reached so far in the current session including premarket, extending downward. Updates in real time as new highs are made
Current Day Low — Box bottom sits at the lowest point reached so far in the current session including premarket, extending upward. Updates in real time as new lows are made
Current Close — Box floats with the current bar's close price. Useful for projecting the ATR range from wherever price currently sits
Manual Price — Set any custom price level as the anchor for full flexibility
Features
ATR length and multiplier fully adjustable
Drag Offset input shifts the entire box up or down freely without changing the anchor
Box width adjustable in bars
Optional right extension to project the zone forward on the chart
Fully customizable fill and border colors
Label displays the live ATR value, anchor mode, anchor price, and drag offset when applied
All key levels plotted to the Data Window for easy reference — ATR, Box Top, Box Bottom, PDH, PDL, Premarket High, Premarket Low, Current Day High, Current Day Low
Built in Pine Script v6
Recommended Usage
Designed for intraday charts from 1 minute to 15 minutes where the daily ATR provides meaningful context for expected range. Pair with volume or order flow tools to identify whether price is likely to accept or reject the ATR zone when it arrives at a key anchor level. Индикатор

MSL Squeeze Pulse**MSL Squeeze Pulse** is a volatility-compression and momentum indicator. It highlights when the market is winding up before an explosive move and shows the direction once the spring uncoils.
### What you see
- **Yellow background on the pane** — the market is currently in compression. Price is tightening, volatility is fading, movement stalls. The longer the yellow stays on, the larger the expected breakout.
- **Yellow diamond on the zero line** — the bar where the coil unwinds. Compression has ended, a new move begins.
- **Pulse histogram** — direction and pace of the move:
- filled green = up, accelerating
- hollow green = up, fading
- filled red = down, accelerating
- hollow red = down, fading
- **Dots on the zero line** — current volatility state: yellow = coiled, gray = expanded, blue = neutral.
### How to use
This is a context tool, not a stand-alone signal. The yellow zone is your cue to prepare: pick the setup, mark levels, wait for direction. When the tint clears and the diamond appears, look at the histogram color — that's the direction the coil released into.
On a strong trend the histogram stays solidly filled. The first hollow bars are an early warning that momentum is fading.
### Alerts (optional)
Via TradingView's Add Alert dialog you can set push/email notifications:
- **Coil On** — compression has started
- **Coil Released** — the spring uncoiled
- **Pulse Flip Up / Down** — pulse changed sign
Alerts are notifications only — nothing is drawn on the chart. The indicator does NOT produce BUY/SELL arrows.
### Suggested timeframes
- Intraday: 15m – 4h
- Swing: 1D – 1W
### Settings
- **Volatility Length / Mult** — standard-deviation band parameters. Wider band = rarer coils.
- **Channel Length / Mult** — bar-range channel parameters. Wider channel = more frequent coils.
- **Use True Range** — use True Range instead of high − low (handles gaps). Индикатор

MACD PROMoving Average Convergence Divergence PRO (MACD Pro) — with Crosses & Divergence
A classic MACD indicator enhanced with two practical additions: visual cross markers and automatic divergence detection.
What it shows
The standard MACD setup — fast and slow moving averages of price, their difference plotted as the MACD line, a signal line smoothing of that difference, and a histogram showing the gap between them. Histogram bars use a four-tone color scheme that shows both the side of zero and whether momentum is accelerating or decelerating.
Cross markers
Whenever the MACD line crosses the signal line, a small X is plotted at the bottom of the pane (bullish cross) or the top (bearish cross). Colors are configurable. This makes it easy to spot every cross at a glance without staring at where the two lines meet, which can be hard to read on busy charts or smaller timeframes.
Divergence detection
Optional pivot-based divergence detection between price and the MACD line, with four divergence types you can toggle independently:
Regular bullish — price makes a lower low while MACD makes a higher low (potential reversal up)
Regular bearish — price makes a higher high while MACD makes a lower high (potential reversal down)
Hidden bullish — price makes a higher low while MACD makes a lower low (trend continuation in an uptrend)
Hidden bearish — price makes a lower high while MACD makes a higher high (trend continuation in a downtrend)
When a divergence is confirmed, the indicator draws a line connecting the two MACD pivots and prints a labeled marker. Pivot sensitivity, plus the minimum and maximum bar distance between pivots, are all configurable so you can tune the signal frequency to your timeframe and instrument.
Inputs
Standard MACD parameters (source, fast/slow/signal lengths, EMA or SMA for each), plus separate groups for cross marker visibility and divergence settings.
Alerts
Built-in alert conditions for histogram state changes, MACD/signal crosses in either direction, and each divergence type — eight in total.
Notes
Divergence is inherently lagging by the right-side pivot lookback, since a pivot can only be confirmed once the required number of bars to its right have printed. This is true of all pivot-based divergence indicators and is unavoidable; a signal that appears on the chart will be drawn back at the actual pivot bar but won't be detectable in real time until that confirmation completes. Treat divergence as context, not a trigger. Индикатор

Индикатор

Индикатор

Индикатор

Индикатор

Z-Score Mean Reversion ProZ-Score Mean Reversion Pro is a Strategy designed to identify high-probability mean reversion setups by combining statistical Z-Score extremes with RSI momentum confirmation, Bollinger Band volatility filtering, and EMA trend alignment. It provides clean buy/sell signals, visual trade zones, dashboard data, and alert outputs to assist in short-term reversal trading, intraday setups, and swing mean reversion trades.
🔑 FEATURES
Z-Score Mean Reversion Engine: Detects statistically stretched price moves and highlights potential reversal zones when price deviates too far from its rolling mean.
Multi-Layer Signal Confirmation: Combines RSI exhaustion, Bollinger Band Width volatility checks, and EMA trend filtering to reduce false signals and improve trade quality.
Built-In Risk Management: Includes ATR-based stop loss and take profit logic, plus optional mean reversion exits when price returns toward equilibrium.
⚠️ NOTES & DISCLAIMERS
This script works best on 5m, 15m, 1H, and 4H charts across Forex, Crypto, Indices, and liquid Stocks.
Best suited for mean reversion traders looking to capture exhaustion moves and short-term reversals.
ATR exits are ideal for structured risk management, while Z-Score exits are better for pure statistical reversion setups.
Always use risk management (Stop Loss).
This script is for educational and research purposes only. Always forward test before using live capital.
Стратегия

Индикатор

Индикатор

SPX/SPY Weighted Sector Tape Quality DashboardSPY/SPX Weighted Sector Tape Quality Dashboard
- Purpose:
Provides a real-time view of SPY/SPX sector participation using sector ETF movement and approximate S&P 500 sector weights.
- Weighted Sector Impact:
Calculates each sector’s contribution by multiplying the sector’s percent move by its market weight.
- Real-Time Sector Table:
Displays each sector in a TradingView table with sector name, weight, percent move, weighted impact, and quick read.
- Color-Coded Heatmap:
Uses green/red shading to show positive or negative contribution. Brighter colors indicate stronger impact.
- Sortable Sector View:
Allows sorting by SPX weight, absolute contribution, or directional contribution.
- Editable Sector Weights:
Sector weights can be adjusted in settings as S&P 500 sector weights change over time.
- Move Calculation Options:
Supports Today From Open, Bar-to-Bar, and custom Lookback calculations.
- Weighted Positive Participation:
Shows how much of the S&P 500 by sector weight is participating positively.
- Positive Sector Count:
Tracks how many of the 11 major sectors are positive.
- Cyclical vs Defensive Score:
Compares risk-on sectors against defensive sectors to identify market tone.
- Mega-Cap Concentration:
Measures whether the move is being driven mainly by Technology, Communication Services, and Consumer Discretionary.
- VIX Confirmation:
Uses VIX movement as a confirmation or warning signal for tape quality.
- Tape Quality Score:
Combines weighted participation, breadth, cyclicals vs defensives, and VIX behavior into one quick score.
- Tape Classification:
Labels the tape as Broad Risk-On, Narrow Mega-Cap Bid, Defensive Rotation, Fake Breakout Risk, Broad Liquidation, Risk-Off, or Mixed/Chop.
- Compact Mode:
Offers a smaller, faster-read table layout for active trading screens.
- Adjustable Table Size:
Allows changing table text size from Tiny to Huge.
- Moveable Table Location:
Supports nine table positions across the chart: top, middle, bottom, and left, center, or right.
- Top 6 Mode:
Optionally shows only the six highest-ranked sectors to reduce screen clutter.
- Mini Plot:
Optional plot of net weighted sector contribution and tape quality score.
- Best Use Case:
Designed for intraday ES, SPX, and SPY traders who want to quickly see whether price action is broadly supported or narrowly driven.
- Important Note:
This tool estimates sector participation using SPDR sector ETFs and editable S&P 500 sector weights. It is intended as a market internals and participation read, not a buy or sell signal by itself. Индикатор

Индикатор

Индикатор

Индикатор

Индикатор
