Indicators and strategies
5 EMA Combo (5, 10, 20, 50, 200)//@version=5
indicator("5 EMA Combo (5, 10, 20, 50, 200)", shorttitle="5 EMA", overlay=true)
// === EMA 5 ===
len1 = input.int(5, minval=1, title="EMA 5 Length")
src1 = input.source(close, "EMA 5 Source")
ema5 = ta.ema(src1, len1)
plot(ema5, title="EMA 5", color=color.new(color.aqua, 0), linewidth=2)
// === EMA 10 ===
len2 = input.int(10, minval=1, title="EMA 10 Length")
src2 = input.source(close, "EMA 10 Source")
ema10 = ta.ema(src2, len2)
plot(ema10, title="EMA 10", color=color.new(color.yellow, 0), linewidth=2)
// === EMA 20 ===
len3 = input.int(20, minval=1, title="EMA 20 Length")
src3 = input.source(close, "EMA 20 Source")
ema20 = ta.ema(src3, len3)
plot(ema20, title="EMA 20", color=color.new(color.orange, 0), linewidth=2)
// === EMA 50 ===
len4 = input.int(50, minval=1, title="EMA 50 Length")
src4 = input.source(close, "EMA 50 Source")
ema50 = ta.ema(src4, len4)
plot(ema50, title="EMA 50", color=color.new(color.green, 0), linewidth=2)
// === EMA 200 ===
len5 = input.int(200, minval=1, title="EMA 200 Length")
src5 = input.source(close, "EMA 200 Source")
ema200 = ta.ema(src5, len5)
plot(ema200, title="EMA 200", color=color.new(color.red, 0), linewidth=3)
// === Optional Alerts ===
alertcondition(ta.crossover(close, ema200), "Bullish Cross Above EMA 200", "Price crossed above EMA 200")
alertcondition(ta.crossunder(close, ema200), "Bearish Cross Below EMA 200", "Price crossed below EMA 200")
Macro Valuation Oscillator (MVO)Macro Valuation Oscillator (MVO) is a macro-relative-strength indicator that compares the current valuation of an asset against three key benchmarks: Gold, USD, and Bond. It helps visualize how the asset performs in relative macro terms over time.
When the MVO line for Gold (yellow) moves below the neutral zone (0), it reflects relative weakness against gold. When it rises above +80, it indicates relative strength or potential overheating compared to gold. The same concept applies to USD (blue) and Bond (purple) lines.
The indicator highlights macro-rotation behavior, showing periods when assets outperform (green) or underperform (red) in relative value. It is mainly intended for daily charts, providing a clear visual framework for assessing long-term macro relationships and timing within broader market cycles.
VCP ScreenerThis screener:
• Detect tight price contraction using ATR
• Check for volume contraction
• Confirm trend strength using moving averages
• Flag stocks near recent resistance
Intraday Intensity Percent (IIP) by CoryP1990 – Quant ToolkitThe Intraday Intensity Percent (IIP) quantifies buying vs. selling pressure within each bar by combining price position inside the range and trading volume. It’s essentially a volume-weighted order-flow indicator, showing whether volume concentrates near highs (buying pressure) or lows (selling pressure).
How it works
Computes the Intraday Intensity (II) = ((Close − Low) − (High − Close)) / (High − Low) × Volume.
Then compares total “intensity” to total volume over a look-back window to produce a normalized percentage.
Lime line: IIP rising → accumulation / increasing buy pressure.
Red line: IIP falling → distribution / increasing sell pressure.
Background: Green tint = heavy buying, Red tint = heavy selling.
Use cases
Identify accumulation or distribution phases early.
Confirm momentum with volume-backed pressure.
Detect divergences between price and volume flow.
Defaults
Length = 14
High-pressure threshold = +5 %
Low-pressure threshold = −5 %
Example — AAPL (2H)
Late July into early August shows sustained distribution as IIP sinks below −5% (deep red), marking heavy sell pressure during the drop. From early to mid-August, IIP flips positive and holds > +5% (green background), aligning with the rebound. After a brief mid-September shakeout, late Sep–mid Oct features renewed accumulation with repeated green surges. Most recently, IIP prints around −33%, indicating dominant selling pressure into the latest two-hour bars.
Part of the Quant Toolkit — transparent, open-source indicators for modern quantitative analysis. Built by CoryP1990.
Fractal Dimension Index (FDI) by CoryP1990 – Quant ToolkitThe Fractal Dimension Index (FDI) quantifies how directional or choppy price movement is; in other words, it measures the “roughness” of a trend. FDI values near 1.0–1.3 indicate strong directional trends, while values near 1.5–2.0 reflect chaotic or range-bound behavior. This makes FDI a powerful tool for detecting trend vs. mean-reversion regimes.
How it works
Calculates the ratio of average price changes over full and half-length windows to estimate the fractal dimension of price movement.
Teal line = FDI decreasing → trending behavior (market smoother, more directional).
Orange line = FDI increasing → choppiness or consolidation.
Background:
Green tint = trend-friendly regime (FDI below low threshold).
Orange tint = choppy regime (FDI above high threshold).
Use cases
Detect when markets shift from trend-following to mean-reverting conditions.
Filter trades: favor trend strategies when FDI < 1.3 and reversion setups when FDI > 1.7.
Combine with momentum or volatility metrics to classify regimes.
Defaults
Length = 20
High-FDI threshold = 1.8
Low-FDI threshold = 1.2
Example — TSLA (1D, 2021)
Early 2021 trades choppy to sideways with FDI swinging up toward 1.5, then the index drops below 1.2 as Tesla transitions into a persistent trend-friendly regime through the second half of the year (green background). During the Q4 breakout, FDI holds ~1.0–1.2, confirming strong directionality; brief pullbacks lift FDI back toward the mid-range before trending pressure resumes. At the right edge, FDI sits well below the low threshold, signaling that price remains in a trend-supportive state.
Part of the Quant Toolkit — transparent, open-source indicators for modern quantitative analysis. Built by CoryP1990.
Tonmoys Ict UnicornA flipped version of the ICT Turtle Soup indicator. Reverses buy/sell logic and TP/SL directions for contrarian testing. Includes adaptive entries, dynamic/fixed risk modes, alerts, and a built-in backtest dashboard
My Smart Volume Profile – Fixed
Title: 🔹 My Smart Volume Profile – Fixed
Description:
Lightweight custom Volume Profile showing POC, VAH, and VAL levels from recent bars. Highlights the value area, marks price touches, and supports optional alerts.
Developer Note:
Created with precision and simplicity by Magnergy
Power Law BTC IndicatorPOWER LAW BTC indicator:
A long-term price model that suggests Bitcoin's price follows a power law function over time. Unlike traditional stock market models that assume linear or exponential growth, the power law model suggests that Bitcoin's price scales in a predictable, non-random way over the long run
Time & Session Dividers### indicator Summary
This indicator is a powerful utility designed to help you visualize time-based market structure by drawing customizable vertical lines on your chart. It allows you to clearly mark the beginning of new timeframes (like hours, days, or weeks) and highlight specific trading sessions or time slots (like the London open or a news event).
It comes with **6 independent dividers** that you can configure to your exact needs:
* **3 Timeframe Dividers**
* **3 Custom Time Slot Dividers**
### Key Features
* **Timeframe Separators:** Set up to 3 different higher timeframes (e.g., 1H, 4H, 1D). The indicator will automatically draw a vertical line at the start of each new bar for that timeframe, helping you easily see hourly, daily, or weekly boundaries.
* **Custom Time Slots (Sessions):** Define up to 3 specific time windows (e.g., "09:30-16:00" for the New York session). The indicator will draw a line at the **start** of this session and another line at the **end**, allowing you to isolate specific periods of market activity.
* **Full Customization:** Each of the 6 dividers is fully independent and can be customized with:
* A simple toggle to turn it on or off.
* A unique color.
* A line style (Solid, Dotted, or Dashed).
* A toggle to show or hide its text label.
* **Smart Labels:** Labels for timeframe dividers display the timeframe (e.g., "4H"), while labels for time slots automatically format to show the precise start or end time (e.g., "09:30" and "16:00").
### How to Use
1. Add the "Timeframe Vertical Lines" indicator to your chart.
2. Open the indicator's **Settings** panel.
3. **To add a timeframe line (e.g., Daily):**
* Go to the "Timeframe Divider 1" group.
* Check the "Show Divider 1" box.
* Set the "Timeframe 1" to "1D".
* Adjust the color, style, and text visibility to your liking.
4. **To add a session line (e.g., London Session):**
* Go to the "Time Slot Divider 1" group.
* Check the "Show Time Slot Divider 1" box.
* Set the "Time Slot 1" to your desired session, e.g., "0800-1700".
* Adjust the color and style. The script will now draw lines at 08:00 and 17:00 (based on the chart's timezone).
5. Repeat the process using the other available divider slots to build a complete temporal map of your chart.
💸 DCA Accumulation Strategy (USD‑Based Scaling)Buy when blue arrow appears, if the next arrow is lower than the last increase your position. This will pull your average cost down slowly over time.
Inyerneck UT Bot with 9 EMA Filter With Signals (Tight) v: 4.20this script is a customized version of the UT bot, enhanced with 9ema trend filter for cleaner entries.designed for short term traders to reduce noise and avoid false signals during choppy price action. youll only see signals when price action confirms momentum aligned with trend as defined by EMA. try adjusting sensitivity and ATR period to your liking. my current setting is ATR 6,Sensitivity 3.8,EMA 9 to 11...
Candle Close IndicatorCandle Close IndicatorDescription:
Simple indicator for alerts on candle closes in a selected timeframe. Sends a concise message: " - candle close - price " (e.g., "solana - 1 H candle close - price 187.2"). Ideal for multi-timeframe trading without noise.Key Features: Alerts: Only ticker, timeframe & close price. Uses alert.freq_once_per_bar_close.
Visuals: Optional markers & close price line.
Table: Compact info panel (timeframe, status, last close, symbol).
Compatibility: Pine v5, all assets.
Instructions: Add to chart & set timeframe (default: 15m).
Create alert with "Candle Close" condition.
Enable markers for visuals if desired.
Accurate ATR Stop Loss Distance — Risk Management ToolAccurate ATR Stop Loss Distance — Risk Management Tool
This indicator calculates an accurate Stop Loss distance in pips using the Average True Range (ATR) multiplied by a user-defined multiplier.
It automatically detects the correct pip size based on the instrument type (Forex, Crypto, Stocks, Indices, Futures), adjusting for 2-, 3-, 4-, or 5-digit quotes — ensuring professional-grade precision that matches institutional ATR-based risk systems.
📊 Features:
Uses ATR × Multiplier to determine precise SL distance in pips.
Automatically adjusts pip value depending on the asset type (handles 5-digit Forex brokers).
Clean and minimal design — displays only one info box in the top-right corner.
Fully customizable text and background colors.
Includes alert condition for automated SL updates.
⚙️ How to use:
Set your preferred ATR period and multiplier.
The indicator instantly displays your Stop Loss distance in pips at the top-right of the chart.
Combine with your entry strategy to calculate lot size or risk per trade.
💡 Ideal for traders who want consistent, objective SL distances derived from volatility rather than arbitrary points or emotions.
Note: Educational and informational tool only. Does not execute trades or give financial advice.
Tristan's Tri-band StrategyTristan's Tri-band Strategy - Confluence Trading System
Strategy Overview:
This strategy combines three powerful technical indicators - RSI, Williams %R, and Bollinger Bands - into a single visual trading system. Instead of cluttering your chart with separate indicator panels, all signals are displayed directly on the price chart using color-coded gradient overlays, making it easy to spot high-probability trade setups at a glance.
How It Works:
The strategy identifies trading opportunities when multiple indicators align (confluence), suggesting strong momentum shifts:
📈 Long Entry Signals:
RSI drops to 30 or below (oversold)
Williams %R reaches -80 to -100 range (oversold)
Price touches or breaks below the lower Bollinger Band
All three conditions must align during your selected trading session
📉 Short Entry Signals:
RSI rises to 70 or above (overbought)
Williams %R reaches 0 to -20 range (overbought)
Price touches or breaks above the upper Bollinger Band
All three conditions must align during your selected trading session
Visual Indicators:
(faint) Green gradients below candles = Bullish oversold conditions (buying opportunity)
(faint) Red/Orange gradients above candles = Bearish overbought conditions (selling opportunity)
Stacked/brighter gradients = Multiple indicators confirming the same signal (higher probability) will stack and show brighter / less faint
Blue Bollinger Bands = Volatility boundaries and mean reversion zones
Exit Strategy:
Long trades exit when price reaches the upper Bollinger Band OR RSI becomes overbought (≥70)
Short trades exit when price reaches the lower Bollinger Band OR RSI becomes oversold (≤30)
Key Features:
✅ Session Filters - Trade only during NY (9:30 AM-4 PM), London (3 AM-11:30 AM), or Asia (7 PM-1 AM EST) sessions
✅ No Repainting - Signals are confirmed on candle close for realistic backtesting and live trading
✅ Customizable Parameters - Adjust RSI levels, BB standard deviations, Williams %R periods, and gradient visibility
✅ Visual Clarity - See all three indicators at once without switching between panels
✅ Built-in Alerts - Get notified when entry and exit conditions are met
How to Use Effectively:
Choose Your Trading Session - For day trading US stocks, enable only the NY session. For forex or 24-hour markets, select the sessions that match your schedule.
Look for Gradient Stacking - The brightest, most visible gradients occur when both RSI and Williams %R signal together. These are your highest-probability setups.
Confirm with Price Action - Wait for the candle to close before entering. The strategy enters on the next bar's open to prevent repainting.
Respect the Bollinger Bands - Entries occur at the outer bands (price extremes), and exits occur at the opposite band or when momentum reverses.
Backtest First - Test the strategy on your preferred instruments and timeframes. Works best on liquid assets with clear trends and mean reversion patterns (stocks, major forex pairs, indices).
Adjust Gradient Visibility - Use the "Gradient Strength" slider (lower = more visible) to make signals stand out on your chart style.
Best Timeframes: 5-minute to 1-hour charts for intraday trading; 4-hour to daily for swing trading (I have also found the 3 hour timeframe to work really well for some stocks / ETFs.)
Best Markets: Liquid instruments with volatility - SPY, QQQ, major stocks, EUR/USD, GBP/USD, major indices
Risk Management: This is a mean reversion strategy that works best in ranging or choppy markets. In strong trends, signals may appear less frequently. Always use proper position sizing and stop losses based on your risk tolerance.
----------------------------------------------
Note: Past performance does not guarantee future results. This strategy is provided for educational purposes. Always backtest thoroughly and practice proper risk management before live trading.RetryClaude can make mistakes. Please double-check responses. Sonnet 4.5
High and low statisticsHigh/Low Pattern Analyzer (All Timeframes)
Ever wonder if there's a hidden pattern in the market?
Does the high of the week usually happen on a Tuesday?
Does the low of the month always form in the first week?
Which 15-minute candle really sets the high for the entire day?
This indicator is a powerful statistical tool designed to answer these questions by analyzing historical price action to find patterns in when the high and low of a period are formed.
The Core Idea: Daily High & Low of the Week
The simplest and most popular feature of this indicator is the "Daily high and low of the week" analysis.
What it does:
It looks back over your chosen number of weeks (e.g., the last 100) and finds out which day of the week (Monday, Tuesday, Wednesday, etc.) made the final high and which day made the final low for each of those weeks.
How to use it:
Go to the script settings.
Enable the "Daily High/Low of the Week" module.
Set your chart to the 1D (Daily) timeframe.
A table will appear on your chart (bottom-right by default) showing the exact count and percentage for each day. This lets you see at a glance if there's a strong tendency for the market you're watching.
Advanced Analysis: Other Timeframes
This script goes far beyond just the daily chart. It includes four other independent analysis modules:
1. 4-Hour High/Low of the Week
What it does: For intraday and swing traders. This module finds which 4-hour candle session (e.g., the 08:00 candle, the 16:00 candle) tends to form the high or low of the entire week.
Key Feature (DST Aware): This table is "season-aware." It knows that the 08:00 "summertime" (DST) candle is the same trading session as the 07:00 "wintertime" (STD) candle. It groups them together so your data is never split or messy.
2. Weekly High/Low of the Month
What it does: For a monthly perspective. This module finds which week of the month (Week 1, 2, 3, 4, or 5) is most likely to form the monthly high or low.
How to use: Enable it and set your chart to the 1W (Weekly) timeframe.
3. Monthly High/Low of the Year
What it does: The ultimate "big picture" view. This module finds which month (Jan, Feb, Mar, etc.) most frequently forms the high or low for the entire year.
How to use: Enable it and set your chart to the 1M (Monthly) timeframe.
The Power User Module: Custom Timeframe Analysis
This is the most powerful feature. It lets you analyze any timeframe combination you want.
What it does: It finds out which "Lower Timeframe" (LTF) candle made the high or low of any "Higher Timeframe" (HTF) you choose.
Example: Do you want to know which 15-minute candle makes the Daily high?
Set your chart to the 15M timeframe.
Go to the "Custom Timeframe Analysis" settings.
Set the "Higher Timeframe" to "1D".
The script will draw a "season-aware" table (just like the 4H module) showing you the exact 15-minute candles (09:15, 09:30, etc.) that are statistically most likely to form the day's high or low.
Other Features
Show Labels: Each module has an option to "Show labels," which will draw a label (e.g., "Daily High of the Week") directly on the chart at the exact bar that made the high or low.
Custom Dividers: Each module has its own optional, color-customizable divider (e.g., weekly, monthly) that you can toggle on to see the periods more clearly.
Clean Settings: All modules are disabled by default (except for "Daily") to keep your chart clean. You only need to enable the specific analysis you want to see.
This tool was built to turn your curiosity about market patterns into actionable, statistical data. Enjoy!
VIX/VVIX Spike RiskVIX/VVIX Spike Risk Analyzer
The VIX/VVIX Spike Risk Analyzer analyzes historical VIX behavior under similar market conditions to forecast future VIX spike risk.
By combining current VIX and VVIX levels as dual filters, it identifies historical precedents and calculates the probability and magnitude of VIX spikes over the next 1, 5, and 10 trading days.
IMPORTANT: This indicator must be applied to the VIX chart (CBOE:VIX) to function correctly.
Methodology
1. Dual-Filter Pattern Matching
The indicator uses both VIX and VVIX as simultaneous filters to identify historically analogous market conditions:
By requiring BOTH metrics to match historical levels, the indicator creates more precise market condition filters than using VIX alone. This dual-filter approach significantly improves predictive accuracy because:
VIX alone might be at 15, but VVIX can tell us if that 15 is stable (low VVIX) or explosive (high VVIX)
High VVIX + Low VIX often precedes major spikes
Low VVIX + Low VIX suggests sustained calm
2. Tolerance Settings
VIX Matching (Default: ±10% Relative)
Uses relative percentage matching for consistency across different VIX regimes
Example: VIX at 15 matches 13.5-16.5 (±10%)
Can switch to absolute tolerance (±5 points) if preferred
VVIX Matching (Default: ±10 Points Absolute)
Uses absolute point matching as VVIX scales differently
Example: VVIX at 100 matches 90-110
Can switch to relative percentage if preferred
3. Historical Analysis Window
The indicator scans up to 500 bars backward (limited by VVIX data availability) to find all historical periods where both VIX and VVIX were at similar levels. Each match becomes a "sample" for statistical analysis.
4. Forward-Looking Spike Analysis
For each historical match, the indicator measures VIX behavior over the next 1, 5, and 10 days
Display Metrics Explained
Average Highest Spike
Shows the average of the maximum VIX spikes observed.
Highest Single Spike
Shows the single largest spike ever recorded
Probability No 10% Spike
Shows what percentage of historical cases stayed BELOW a 10% spike:
Probability No 20% Spike
Shows what percentage of historical cases stayed BELOW a 20% spike:
Note : You'll see many more shaded bars than the sample count because each match creates up to 5 consecutive shaded bars (bars 1-5 after the match all "look back" and see it).
Short Volatility Strategies:
Enter when there's a LOW probability of big vol spikes based on today's metrics
Long Volatility Strategies
Enter when there's a HIGH probability of big vol spikes based on today's metrics
OpenVWAP Stop-Hunt Short – v6 (failsafe) ZorzOpenVWAP Stop-Hunt Short (Micro/Nano Caps)
Intraday short framework for low-float gappers (NASDAQ/NYSE), optimized for 1m (optional 15s). The script anchors VWAP to Premarket and Regular sessions, tracks PM High (PM HOD) and Open VWAP, and flags liquidity grabs.
Signal logic
SHORT when a stop-hunt above PM HOD or an Open VWAP fakeout occurs and the bar closes below Open VWAP (optional confirmation: crossunder VWMA*0.985 “long50”).
CLOSE when price reclaims Open VWAP or crosses above long50.
Inputs
Min wick%, volume spike vs SMA20, range vs ATR(1)
No-trade bars after the open (filters first noisy minutes)
Toggle ACW confirmation (VWMA*0.985)
Notes
Turn Extended Hours ON; session times are ET.
Best on micro/nano-cap gappers with high PM volume; supports alerts (“Open Short”, “Close Short”).
For research/education only; not financial advice.
KeyzoneKeyzone is a dynamic support and resistance framework that identifies price reaction zones using the highest and lowest values over specific lookback periods.
It consists of four pairs of upper and lower lines:
– Keyzone 3 (light green): short-term micro swing zones
– Keyzone 8 (dark green): short-term intraday zones
– Keyzone 21 (orange): medium-term structural zones
– Keyzone 89 (red): long-term major zones
Each Keyzone adapts automatically to price movement, helping traders see where market participants are likely to react. The shorter zones (3, 8) capture quick pullbacks, while the longer zones (21, 89) reveal deeper institutional levels. This makes Keyzone a clear, multi-layered visual map of market structure that adjusts with every new candle.
Monday 1H BODY Range → End of Week (solid + levels)lines marking out monday range with fibonacci extensions






















