MA 250 & 1250 + OverextensionThis indicator is designed for  long-term and macro traders  who use moving averages to identify structural support levels and potential overextended tops.
It plots two key simple moving averages:
 
 250-day SMA  (≈1-year average)
 1250-day SMA  (≈5-year average)
 
While the  1250-day MA often acts as strong support during major market bottoms, the 250-day MA serves as a dynamic reference for identifying potential tops. 
The core innovation of this script is the addition of  user-defined overextension zones  above the 250-day MA:
 
 +30% zone:  highlights potential cyclical tops (ideal for less volatile assets)
 +50% zone:  marks extreme overextension levels (useful for volatile instruments)
 
You can independently choose which background zone to display:
 
 "+30% only"
 "+50% only"
 "Both" (with +50% taking visual priority)
 "None"
 
Visual cues include:
 
 Colored circles when price enters each overextension zone
 Optional semi-transparent background highlighting active zones
 Clean, non-repainting logic based on closing prices
 
 Use cases: 
 
 Confirming structural support near the 1250-day MA during deep corrections
 Assessing risk/reward when price moves far above the 250-day MA
 Avoiding late long entries in euphoric market phases
 Identifying potential distribution zones in long-term uptrends
 
 Note:  This tool does not generate buy/sell signals on its own. It is intended as a  contextual filter  to complement price action, volume, momentum, and macro analysis.
簡單移動平均線(SMA)
Goldencross & Deathcross Highlights (50/200 SMA) - Fixed dailyThis indicator visualizes major long-term trend shifts in the market 
by tracking the daily 50-day and 200-day Simple Moving Averages (SMAs)
— regardless of your current chart timeframe.
🟩 A green flash (Golden Cross) appears when the 50-day SMA crosses 
above the 200-day SMA — signaling potential long-term bullish momentum.
🟥 A red flash (Death Cross) appears when the 50-day SMA crosses 
below the 200-day SMA — suggesting potential long-term bearish pressure.
Unlike typical SMA overlays, this script:
  • Pulls daily data directly (fixed to daily timeframe)
  • Works cleanly on any chart timeframe (5m, 1h, 4h, etc.)
  • Avoids clutter by hiding moving average lines
  • Shows only short, subtle flashes and one clean marker per event
Multi-Timeframe SMA + AlertsThis indicator displays the Simple Moving Average (SMA) across multiple timeframes simultaneously on your chart. It helps traders quickly visualize trend direction across different intervals without switching charts.
 Features: 
 
 Multi-Timeframe SMA: Shows SMA for multiple timeframes (1m, 3m, 5m, 15m, 30m by default; visibility customizable).
 Customizable SMA Length: Choose any SMA length to suit your trading strategy.
 Colored SMAs: Each timeframe is represented with a distinct color for easy differentiation.
 Price vs SMA Table: Displays SMA values and whether the current price is Above, Below, or At the SMA for each timeframe.
 Chart Labels: Marks the last SMA values on the chart for quick reference.
 Alerts: Set alerts when price crosses above or below any timeframe’s SMA, with clear messages indicating the timeframe and price.
 Customizable Inputs: Select which SMAs to display and define the SMA length.
 
 Use Cases: 
 
 Identify short-term vs. longer-term trend alignment.
 Spot potential entry or exit points when price crosses the SMA on multiple timeframes.
 Keep track of SMA relationships without constantly switching timeframes.
 
 How to Use: 
 
 Add the indicator to any chart.
 Choose which timeframes’ SMAs to display.
 Set the SMA length according to your strategy.
 Optionally, set alerts for crossovers or crossunders.
 Use the table and labels to monitor SMA levels at a glance.
 
 Tips: 
 
 Combine with other indicators for confirmation of trend direction.
 Use alerts to avoid constantly watching the chart.
TradeBee Vol-Pr SentimentThis indicator analyzes volume-weighted price sentiment and short-term scalp potential. It calculates buying vs. selling pressure based on intrabar price positioning and overlays a sentiment label ("Buy", "Sell", or "WAIT") depending on price behavior relative to a moving average. Additionally, it detects scalp setups using percent movement, slope, and volume acceleration — ideal for short-term momentum traders.
The sentiment and scalp signals are displayed in a floating table on the chart, with customizable position and label size.
- Vol-Price Sentiment:
  "Buy" → Price above MA and buying pressure dominant
  "Sell" → Price below MA and selling pressure dominant
  "WAIT" → No clear bias
- Scalp Signal:
  "Long Scalp" → Strong upward move with slope and volume confirmation
  "Short Scalp" → Strong downward move with slope and volume confirmation
  "No Setup" → No qualifying scalp conditions
Its optimal to have Wait/Buy and Long Scalp showing when entering a trade. 
EMA6 or SMA6 Touch AlertThis script monitors the market and notifies you whenever the price touches either the 6-period EMA or the 6-period SMA.
It helps identify potential pullbacks, reaction points, or entry zones, as price interaction with these moving averages often signals short-term market shifts.
What the script does:
Calculates the EMA 6 and SMA 6
Detects if price touches either moving average within the candle
Plots both lines on the chart for visibility
Allows you to set alerts to receive automatic notifications
Best suited for:
Scalping
Day Trading
Pullback Entries
Short-term trend reactions
Simple Moving Average (SMA)## Overview and Purpose
The Simple Moving Average (SMA) is one of the most fundamental and widely used technical indicators in financial analysis. It calculates the arithmetic mean of a selected range of prices over a specified number of periods. Developed in the early days of technical analysis, the SMA provides traders with a straightforward method to identify trends by smoothing price data and filtering out short-term fluctuations. Due to its simplicity and effectiveness, it remains a cornerstone indicator that forms the basis for numerous other technical analysis tools.
## What’s Different in this Implementation
- **Constant streaming update:**  
  On each bar we:
  1) subtract the value leaving the window,  
  2) add the new value,  
  3) divide by the number of valid samples (early) or by `period` (once full).
- **Deterministic lag, same as textbook SMA:**  
  Once full, lag is `(period - 1)/2` bars—identical to the classic SMA. You just **don’t lose the first `period-1` bars** to `na`.
- **Large windows without penalty:**  
  Complexity is constant per tick; memory is bounded by `period`. Very long SMAs stay cheap.
## Behavior on Early Bars
- **Bars < period:** returns the arithmetic mean of **available** samples.  
  Example (period = 10): bar #3 is the average of the first 3 inputs—not `na`.
- **Bars ≥ period:** behaves exactly like standard SMA over a fixed-length window.
> Implication: Crosses and signals can appear earlier than with `ta.sma()` because you’re not suppressing the first `period-1` bars.
## When to Prefer This
- Backtests needing early bars: You want signals and state from the very first bars.
- High-frequency or very long SMAs: O(1) updates avoid per-bar CPU spikes.
- Memory-tight scripts: Single circular buffer; no large temp arrays per tick.
## Caveats & Tips
Backtest comparability: If you previously relied on na gating from ta.sma(), add your own warm-up guard (e.g., only trade after bar_index >= period-1) for apples-to-apples.
Missing data: The function treats the current bar via nz(source); adjust if you need strict NA propagation.
Window semantics: After warm-up, results match the textbook SMA window; early bars are a partial-window mean by design.
## Math Notes
Running-sum update:
sum_t = sum_{t-1} - oldest + newest
SMA_t = sum_t / k where k = min(#valid_samples, period)
Lag (full window): (period - 1) / 2 bars.
## References
- Edwards & Magee, Technical Analysis of Stock Trends
- Murphy, Technical Analysis of the Financial Markets
Malama's MTF MA Alignment ScannerMalama's Multi-Timeframe Moving Average Alignment Scanner (MTF MA Scanner) is an overlay indicator designed to simplify trend analysis by evaluating the alignment of multiple moving averages (MAs) across user-defined timeframes. It scans for bullish (MAs stacked ascending), bearish (descending), or mixed/neutral configurations, incorporating a VWAP (Volume Weighted Average Price) filter to contextualize price position relative to volume-based equilibrium. The result is a compact dashboard table summarizing signals from up to three timeframes, helping traders spot confluence for entries or reversals without manually switching charts. This tool draws from classic MA ribbon concepts but adds flexible MA types, dynamic sorting, and an overall trend score for quicker multi-TF insights.
 Core Mechanics 
The indicator processes data in layers to detect alignment and bias:
Moving Average Calculation: Supports five customizable MAs per timeframe, with types including Simple (SMA), Exponential (EMA), Double Exponential (DEMA for reduced lag), Smoothed (SMMA), or Butterworth 2-Pole filter (a low-lag recursive smoother approximating Ehlers' design for cleaner signals). Defaults use EMAs at lengths 6, 9, 21, 56, and 200—shorter for fast trends, longer for structure. Users enable/disable each independently.
Alignment Detection: For enabled MAs, it dynamically sorts them by length (shortest first) and checks their relative order: All ascending (shortest MA > longest) signals "Bullish" (uptrend strength); all descending signals "Bearish" (downtrend); otherwise "Mixed" or "Neutral" (if <2 MAs). This avoids bias from unsorted plots.
VWAP Integration: Computes session-anchored VWAP (daily/weekly/monthly) as a volume-weighted mean, classifying price as "Above" (bullish bias) or "Below" (bearish) to filter alignments—e.g., bullish MA stack above VWAP strengthens longs.
Multi-Timeframe Aggregation: Pulls MA and VWAP data from up to three timeframes (e.g., current, 5m, 15m) using secure requests without lookahead bias. It consolidates into a table: Per-TF rows show alignment status (with icons: ✅ Bullish, ❌ Bearish, ⚠️ Mixed, ➖ Neutral), VWAP icon/status (📈 Above, 📉 Below), current price, and optional MA values (e.g., "9 EMA: 1.2345").
Overall Summary: Counts bullish/bearish TFs for a net score (e.g., 2/3 bullish = "Weak Bullish"), highlighting confluence in the final row.
This setup emphasizes regime detection: Aligned short-term MAs confirm momentum, while longer ones validate structure, all filtered by VWAP for volume context.
 Why This Adds Value & Originality 
Standard MA crossovers or ribbons often clutter charts or require manual TF switches, leading to analysis fatigue. Here, the mashup of diverse MA types (e.g., lag-reduced DEMA with smooth Butterworth) into a sortable alignment check creates a "trend thermometer" that's adaptable—e.g., EMAs for responsiveness in forex, SMAs for stocks. The VWAP layer adds a fair-value anchor absent in pure MA tools, while the dashboard condenses MTF data into one glanceable view with a net score, reducing cognitive load. It's not a simple merge: Dynamic UDT-based sorting ensures consistent evaluation regardless of user tweaks, and optional value display aids precise level targeting. This makes it uniquely practical for confluence trading, evolving basic alignment into a scannable system without repainting risks.
 How to Use 
Setup: Add to your chart (overlay=true). In inputs: Enable TFs (e.g., 1H for structure, 15m/5m for entries); customize MAs (e.g., switch to DEMA for volatile crypto); set VWAP anchor (Daily for intraday). Toggle table position/size and chart plots.
Interpret the Dashboard (top-right default):
Per-TF Rows: Green cells for Bullish (long bias); red for Bearish (short); orange for Mixed (caution); gray for Neutral/low data. Check VWAP for confirmation—e.g., Bullish + Above = strong buy setup.
MA Values Column (if enabled): Lists current levels (e.g., "21 EMA: 4500.50") for support/resistance pulls.
Overall Row: "Strong Bullish" (all green) for aggressive longs; "Weak" variants for scaled entries. Score like "2/3" shows TF agreement.
Trading Application: On a 1H chart, look for 3/3 Bullish with price above VWAP for longs—enter on pullback to shortest MA. Use alerts (e.g., "All Timeframes Bullish") for notifications. Best on liquid assets (e.g., EURUSD, SPX) across 15m-4H. Combine with price action for edges.
Customization Tips: Disable unused MAs to declutter; test Butterworth on noisy data for smoother aligns.
Limitations & Disclaimer
Alignments lag by MA lengths and TF resolutions, so they're directional filters—not precise entries (pair with candlesticks). VWAP resets on anchors, potentially skewing mid-session. In sideways markets, "Mixed" dominates—avoid forcing trades. No built-in risk management; backtest on your symbols (e.g., via Strategy Tester) to validate. Results use historical data without guarantees—markets evolve. Not financial advice; trade at your own risk. For feedback, comment publicly.1.1s
Kameniczki RSI MASTERKAMENICZKI RSI MASTER is a professional trading indicator based on RSI (Relative Strength Index) with advanced features for precise identification of trading opportunities. The indicator combines classic RSI analysis with intelligent Zig Zag system and smoothing techniques for maximum signal accuracy.
Features:
RSI Analysis with Gradient Display
The indicator displays RSI in the lower panel with color gradient - blue for overbought zones and pink for oversold zones. RSI is calculated with adjustable period (recommended 14 for daily charts, 7-9 for shorter timeframes).
Zig Zag Signal System
Intelligent Zig Zag system generates BUY and SELL signals based on RSI extremes. The system automatically identifies swing points and creates clear visual markings with blue BUY and pink SELL labels.
Smoothing Moving Average
Advanced smoothing techniques supporting SMA, EMA, SMMA, WMA and VWMA. MA is displayed in price chart with dual-color system - blue for rising trend, pink for falling trend.
Bollinger Bands Integration
Optional Bollinger Bands around RSI and price for volatility identification and potential breakouts. Bands automatically adapt to market conditions.
Comprehensive Alert System
Extensive alert system includes Zig Zag signals, RSI levels, MA direction changes, BB touches and combined strong signals for maximum trading accuracy.
Real-Time Trend Analysis
Instant trend identification with priority for actual price direction. System displays current trend (BUY/SELL/WAIT) and risk analysis with visual table.
Risk Management
Automatic volatility and risk level analysis with percentage expression. System identifies high and low risk periods for safer trading.
Recommended Timeframes:
-  1H, 4H, 1D - optimal for swing trading
- 15M, 30M - for day trading
- 1W - for position trading
Success Rate:
- Zig Zag signals: 75-85% accuracy
- Combined strong signals: 80-90% accuracy
- Trend identification: 70-80% accuracy
- Overall system success: 75-85% with proper settings
⚠️ IMPORTANT WARNING: Zig Zag signals may cause repainting on lower timeframes. For live trading, use higher timeframes (15M, 1H+) or wait for signal confirmation to avoid false signals.
The indicator is suitable for all types of traders - from beginners to professionals, with detailed parameter adjustment options according to individual needs.
EdgeBox: MA DistanceEdgeBox: MA Distance adds a clean HUD showing the percentage distance from the current close to your selected moving averages (default: SMA 100/150/200/250). Values are positive when MAs are above price and negative when below. Also includes ATR% (volatility) and RSI(14). Fully customizable: corner position, font sizes, and text/background colors. A fast context panel for trend and volatility at a glance.
Institutional DMAs (50/100/200) – with AlertsTitle
D1 DMAs (50/100/200) – Alerts for Trend & Trend Stoppers
Summary
Plots the 50/100/200-day moving averages (DMAs) strictly from the Daily (D1) timeframe and projects them onto any chart timeframe. Comes with a focused alert engine for price↔DMA crosses and DMA↔DMA crosses (Golden/Death Cross). Designed to identify trend direction, potential regime shifts, and “trend stoppers” (dynamic S/R).
What it does
– Computes the 50/100/200 DMAs on D1 only (no matter your chart timeframe)
– Alerts for:
1. Price crossing D1 50/100/200 DMAs
2. DMA crossovers between 50/100/200 (D1-confirmed Golden/Death Cross)
   – Optional “close-only” confirmation to reduce noise on price↔DMA alerts
Why DMAs (and why D1)?
DMAs (Daily SMAs) are widely tracked by institutional players—banks, hedge funds, CTAs, pensions—as trend filters and dynamic support/resistance.
– 50 DMA: short-term momentum bias
– 100 DMA: medium-term trend anchor/mean
– 200 DMA: long-term regime line (above = bullish, below = bearish)
Crossover events (e.g., 50>200 Golden Cross, 50<200 Death Cross) are often read as regime changes. D1 confirmation aligns with how institutions evaluate trends and filters intraday noise.
How it helps your trading
– Trend detection: Price above 200 DMA with 50>100>200 = healthy uptrend stacking
– Trend stoppers: Strong reactions at 100/200 DMA often precede pullbacks, pauses, or reversals
– Intraday timing: See D1 levels on lower TFs to plan entries/exits at “big picture” lines
Alerts (selection)
– Price crosses ABOVE/BELOW D1 50 DMA
– Price crosses ABOVE/BELOW D1 100 DMA
– Price crosses ABOVE/BELOW D1 200 DMA
– D1 50 crosses ABOVE/BELOW D1 100
– D1 50 crosses ABOVE/BELOW D1 200
– D1 100 crosses ABOVE/BELOW D1 200
Note: DMA↔DMA alerts are confirmed on the Daily close (fewer false signals).
How to set alerts
1. Add the indicator to your chart
2. Click “Alert” → “+”
3. Condition = this indicator → choose the desired alert line (e.g., “Price crosses ABOVE D1 200 DMA”)
4. Customize message/webhook if needed → Create
Settings
– Colors: 50 = Yellow, 100 = Green, 200 = Red (editable)
– Line width
– “Only alert on bar close” for price↔DMA (recommended for robustness)
– Enable/disable price-cross alerts
– Enable/disable DMA-cross alerts (D1-confirmed)
Best practices
– Trend follow: Favor longs when price is above the 200 DMA; favor shorts below
– Pullback entries: Watch 50/100 DMAs for reactions; add structure/volume confluence
– Regime filter: Use Golden/Death Cross alerts as a high-level bias, refine entries on lower TF signals
Technical notes
– Uses lookahead_off (no future leak)
– DMA cross logic computed and confirmed on D1
– Price↔DMA logic runs on your active timeframe with optional close confirmation
Keywords
DMA, Daily SMA, 50 100 200 MA, Golden Cross, Death Cross, Trend Filter, Dynamic Support Resistance, Institutional Levels, Regime Change, Alert Signals, Intraday with Daily Bias, Hedge Funds, Banks
Glork-SMA20D
50D
200D
200W
50W
Works on all time frames. Prints to the current candle
Colors are adjustable
Short TimeFrame MAs with momentum cloudsThis indicator displays multiple moving averages to help identify short- and mid-term trends.
It includes four SMAs (9, 50, 150, 200) and two EMAs (21, 55) with color changes showing bullish or bearish momentum.
The area between the EMAs is filled to highlight trend direction.
An optional smoothing layer lets you apply different MA types or Bollinger Bands for additional clarity.
It’s designed to give a clear visual of overall trend strength, direction, and volatility on any timeframe.
Bollinger Bands Breakout StrategyHey guys check out this strategy script.
Chart plotting:
I use a classic plot of Bollinger Bands to define a consolidation zone, I also use a separate Trend Filter (SMA).
Logic:
When the price is above the SMA and above the Bollinger Upper Band the strategy goes Long. When the price is below the SMA and below the Bollinger Lower Band the strategy goes Short. Simple.
Exits:
TP and SL are a percentage of the price.
Notes: This simple strategy can be used at any timeframe (I prefer the 15min for day trading). It avoids consolidation, when the price is inside the Bollinger Bands, and has a good success rate. Adjust the Length of the BB to suit your style of trading (Lower numbers=more volatile, Higher numbers=more restrictive). Also you can adjust the Trend Filter SMA, I presonally chose the 50 SMA. Finally the SL/TP can be also adjusted from the input menu.
Test it for yourself! 
Have great trades!
Multi Fixed MAMulti Fixed MA Indicator
This Pine Script indicator displays up to three customizable Moving Averages (MAs) on the chart, allowing users to analyze price trends across different timeframes. Each MA can be independently configured for type, length, timeframe, and colors for bullish and bearish slopes.
Features:
MA Types: Choose from Simple (SMA), Exponential (EMA), Weighted (WMA), or Linear Regression (Linear) MAs.
Customizable Timeframes: Select from a range of timeframes (1min to 1M) for each MA.
Show/Hide MAs: Enable or disable each of the three MAs via checkboxes.
Dynamic Coloring: Each MA changes color based on its slope (bullish or bearish), with user-defined bull and bear colors.
Flexible Lengths: Set individual lengths for each MA.
Usage:
Configure the MA type, length, and timeframe for each of the three MAs.
Toggle visibility for each MA using the "Show" checkboxes.
Customize bull and bear colors for each MA to visually distinguish trends.
The indicator plots MAs on the chart, with colors reflecting whether the current MA value is higher (bullish) or lower (bearish) than the previous value, maintaining the prior color when equal.
Ideal for traders analyzing trends across multiple timeframes with tailored visual cues.
Moving Averages: 09-21-55-200 - Multiple Times Frames v2This is a multi-timeframe 9ema, 21ema, 55ema and the 200 SMA for the 1 minute, 2minute, 5 minute and 15 minute timeframes. SO when you are on any of these time-frames it will show the EMAs and SMAs for the other levels.
MTF 200 SMAMulti-Timeframe (MTF) 200 SMA: Your Universal Trend Guide
Tired of switching timeframes just to check the major moving averages?
The MTF 200 SMA indicator is a powerful, customizable tool designed to give you a clear, comprehensive view of the trend across multiple timeframes, all on a single chart. It's built on Pine Script v6 for stability and performance.
Key Features:
9 MTF Lines: Simultaneously plot the 200 Simple Moving Average (SMA) for 30m, 1h, 2h, 3h, 4h, 6h, 8h, Daily, and Weekly charts. Understand the overall market structure at a glance.
Single-Click Toggle: Use the 'Current Chart TF Only' checkbox to instantly switch from the crowded MTF view to showing only the standard 200 SMA for your current chart resolution. Perfect for focusing on immediate price action.
Dynamic Highlighting: The 'Highlight Current Chart TF' option (default ON) emphasizes the SMA corresponding to your current chart, making it stand out with a bright Aqua color and a thicker line when in MTF mode.
Full Customization: Easily adjust the SMA Length and the MTF SMA Line Color directly in the indicator settings.
How to Use It:
Trend Confirmation: When all MTF lines (especially the Daily and Weekly) are aligned and moving in the same direction, it provides high-confidence trend confirmation.
Dynamic S/R: The MTF SMAs often act as strong dynamic Support and Resistance levels, even when viewing a lower timeframe like the 5-minute chart.
Clean Analysis: Use the 'Current Chart TF Only' option when you need to declutter your chart and focus on the primary trend of your active trading session.
Elevate your trend analysis today with the MTF 200 SMA!
Puell Multiple Variants [OperationHeadLessChicken]Overview 
This script contains three different, but related indicators to visualise Bitcoin miner revenue.
 
 The classical  Puell Multiple : historically, it has been good at signaling Bitcoin cycle tops and bottoms, but due to the diminishing rewards miners get after each halving, it is not clear how you determine overvalued and undervalued territories on it. Here is how the other two modified versions come into play:
 Halving-Corrected Puell Multiple : The idea is to multiply the miner revenue after each halving with a correction factor, so overvalued levels are made comparable by a horizontal line across cycles. After experimentation, this correction factor turned out to be around 1.63. This brings cycle tops close to each other, but we lose the ability to see undervalued territories as a horizontal region. The third variant aims to fix this:
 Miner Revenue Relative Strength Index (Miner Revenue RSI) : It uses RSI to map miner revenue into the 0-100 range, making it easy to visualise over/undervalued territories. With correct parameter settings, it eliminates the diminishing nature of the original Puell Multiple, and shows both over- and undervalued revenues correctly.
 
 Example usage 
The goal is to determine cycle tops and bottoms. I recommend using it on high timeframes, like  monthly  or  weekly . Lower than that, you will see a lot of noise, but it could still be used. Here I use  monthly  as the example.
 
  The classical  Puell Multiple  is included for reference. It is calculated as  Miner Revenue  divided by the  365-day Moving Average of the Miner Revenue . As you can see in the picture below, it has been good at signaling tops at 1,3,5,7.
The problems:
- I have to switch the Puell Multiple to a logarithmic scale
- Still, I cannot use a horizontal oversold territory
- 5 didn't touch the trendline, despite being a cycle top
- 9 touched the trendline despite not being a cycle top 
 Halving-Corrected Puell Multiple  (yellow): Multiplies the Puell Multiple by 1.63 (a number determined via experimentation) after each halving. In the picture below, you can see how the  Classical  (white) and  Corrected  (yellow) Puell Multiples compare:
Advantages:
- Now you can set a constant overvalued level (12.49 in my case)
- 1,3,7 are signaled correctly as cycle tops
- 9 is correctly not signaled as a cycle top
Caveats:
- Now you don't have bottom signals anymore
- 5 is still not signaled as cycle top
Let's see if we can further improve this:
 Miner Revenue RSI  (blue):
On the monthly, you can see that an RSI period of 6, an overvalued threshold of 90, and an undervalued threshold of 35 have given historically pretty good signals.
Advantages:
- Uses two simple and clear horizontal levels for undervalued and overvalued levels
- Signaling 1,3,5,7 correctly as cycle tops
- Correctly does not signal 9 as a cycle top
- Signaling 4,6,8 correctly as cycle bottoms
Caveats:
- Misses two as a cycle bottom, although it was a long time ago when the Bitcoin market was much less mature
- In the past, gave some early overvalued signals
 
 Usage 
Using the example above, you can apply these indicators to any timeframe you like and tweak their parameters to obtain signals for overvalued/undervalued BTC prices
 
 You can show or hide any of the three indicators individually
 Set overvalued/undervalued thresholds for each => the background will highlight in green (undervalued) or red (overvalued)
 Set special parameters for the given indicators: correction factor for the Corrected Puell and RSI period for Revenue RSI
 Show or hide halving events on the indicator panel
 All parameters and colours are adjustable
ORBs, EMAs, SMAs, AVWAPThis is an update to a previously published script. In short the difference is the added capability to adjust the length of EMAs. Also added 3 customizable SMAs. Enjoy! Let me know what you think of the script please. This is only second one I have ever done. Through practice and people like @LuxAlgo and other Pinescripters this isn't possible. Tedious hrs with ChatGPT to correct nuances, who doesnt seem to learn from (insert pronoun) mistakes
This all-in-one indicator combines key institutional tools into a unified framework for intraday and swing trading. Designed for traders who use multi-session analysis and dynamic levels, it automatically maps out global session breakouts, moving averages, and volume-weighted anchors with high clarity.
Features include:
🕓 Tokyo, London, and New York ORBs (Opening Range Breakouts) — 30-minute configurable range boxes that persist until the next New York open.
📈 Anchored VWAP with Standard Deviation Bands — dynamically anchorable to session, week, or month for institutional-grade price tracking.
📊 Exponential Moving Averages (9, 20, 113, 200) — for short-, mid-, and long-term momentum structure.
📉 Simple Moving Averages (20, 50, 100) — fully customizable lengths, colors, and visibility toggles for trend confirmation.
🏁 Prior High/Low Levels (PDH/PDL, PWH/PWL, PMH/PML) — automatically plotted from previous day, week, and month, with labels placed at each session’s midpoint.
🎛️ Session-Aligned Time Logic — all time calculations use New York session anchors with DST awareness.
💡 Clean Visualization Options — every component can be toggled on/off, recolored, or customized for your workflow.
Best used for:
ORB break-and-retest setups
VWAP and EMA rejections
Confluence-based trading around key session levels
Multi-session momentum tracking
ORBs, EMAs, AVWAPThis Pine Script (version 6) is a multi-session trading indicator that combines Opening Range Breakouts (ORBs), Exponential Moving Averages (EMAs), and an Anchored VWAP (AVWAP) system — all in one overlay script for TradingView.
Here’s a clear breakdown of its structure and functionality:
🕒 1. Session Logic and ORB Calculation
Purpose: Identify and plot the high and low of the first 30 minutes (default) for the Tokyo, London, and New York trading sessions.
Session Anchors (NY time):
Tokyo → 20:00
London → 03:00
New York → 09:30
(All configurable in inputs.)
ORB Duration: Default is 30 minutes (orbDurationMin), also user-configurable.
Resets:
London and NY ORBs reset at the start of each new New York trading day (17:00 NY time).
Tokyo ORB resets independently using a stored timestamp.
Process:
For each session:
While the time is within the ORB window, the script captures the session’s high and low.
Once the window closes, those levels remain plotted until reset.
Plot Colors:
Tokyo → Yellow (#fecc02)
London → Gray (#8c9a9c)
New York → Magenta (#ff00c8)
These form visible horizontal lines marking the prior session ranges — useful for breakout or retest trading setups.
📈 2. EMA System
Purpose: Provide trend and dynamic support/resistance guidance.
It calculates and plots four EMAs:
EMA	Period	Color	Purpose
EMA 9	Short-term	Green	Fast signal
EMA 20	Short-term	Red	Confirms direction
EMA 113	Medium	Aqua	Trend filter
EMA 200	Long-term	Orange	Macro trend baseline
Each EMA is plotted directly on the price chart for visual confluence with ORB and VWAP levels.
⚖️ 3. Anchored VWAP (AVWAP)
Purpose: Display a volume-weighted average price anchored to specific timeframes or events, optionally with dynamic deviation or percentage bands.
Features:
Anchor Options:
Time-based: Session, Week, Month, Quarter, Year, Decade, Century
Event-based: Earnings, Dividends, Splits
VWAP resets when the chosen anchor condition is met (e.g., new month, new earnings event, etc.).
Bands:
Up to three levels of symmetric upper/lower bands.
Choose between Standard Deviation or Percentage-based widths.
Display Toggles:
Each band’s visibility is optional.
VWAP can be hidden on 1D+ timeframes (hideonDWM option).
Color Scheme:
VWAP: Fuchsia (magenta-pink) line
Bands: Green / Olive / Teal with light-filled zones
⚙️ 4. Technical Highlights
Uses ta.vwap() with built-in band calculations.
Handles instruments with or without volume (errors if missing volume).
Uses time-zone aware timestamps (timestamp(NY_TZ, …)).
Uses timeframe.change() to detect new anchors for the VWAP.
Employs persistent variables (var) to maintain session state across bars.
💡 In Practice
This indicator is designed for multi-session intraday traders who:
Trade Tokyo, London, or NY open breakouts or retests.
Use EMA stacking and crossovers for trend confirmation.
Use Anchored VWAP as a fair-value or mean-reversion reference.
Need clear visual structure across different market sessions.
It provides strong session separation, trend context, and volume-weighted price reference — making it ideal for discretionary or semi-systematic trading strategies focused on liquidity zones and session momentum.
200W MA Valuation ZonesInspired by "Crypto Currently" 
📈 200-Week MA Valuation Zones Indicator
This script visualizes long-term valuation zones based on the 200-week moving average (MA) — a widely followed metric for identifying major market cycle bottoms and tops.
It divides price levels into five distinct zones relative to the 200W MA:
🟦 Very Cheap — Below 200W MA
🟩 Cheap — 1.0× to 1.5× 200W MA
🟨 Fair Value — 1.5× to 2.0× 200W MA
🟧 Expensive — 2.0× to 2.5× 200W MA
🟥 Very Expensive — Above 2.5× 200W MA
You can choose to  anchor zones to the current price  or display full historical bands.
Color-coded regions and labels make it easy to identify when an asset is historically undervalued or overvalued based on long-term moving averages.
SPY200SMA (+4%/-3%) TQQQ/QQQ STRATEGYSummary of the Improved Strategy: When the price of  AMEX:SPY  is +4% above the 200SMA BUY  NASDAQ:TQQQ  and when the price of SPY drops to -3% under the SPY 200SMA SELL everything and slowly DCA into  NASDAQ:QQQ   over the next 6-12 months or until price returns to +4% above the SPY 200SMA at which point you will go back into 100% TQQQ. 
Note: (if the price of QQQ goes 30% above the 200SMA of QQQ deleverage to QQQ or Sell to protect yourself from dot com level event)
More info and stats -https://www.reddit.com/r/LETFs/comments/1nhye66/spy_200sma_43_tqqqqqq_long_term_investment/
Short-Term Capitulation Oscillator (STCO, Diodato 2019)Description:
This script is a faithful implementation of the Short-Term Capitulation Oscillator (STCO) from Chris Diodato's 2019 CMT paper, "Making The Most Of Panic". It's a tactical breadth and volume oscillator designed to "fish for market bottoms" by identifying short-term investor capitulation.
What It Is
The STCO combines the 10-day moving averages of NYSE up-volume and advancing issues. It measures the ratio of advancing momentum (in both volume and number of issues) relative to the total traded momentum. The result is a raw, un-normalized oscillator that typically ranges from 0 to 200.
How to Interpret
The STCO is a tactical tool for identifying near-term oversold conditions and potential bounces.
Low Readings: Indicate that sellers have likely exhausted themselves in the short term, creating a potential entry point for a bounce. The paper found that readings below 90, 85, and 80 were often followed by strong market performance over the next 5-20 days.
Overbought/Oversold Lines: Use the customizable overbought/oversold lines to define your own capitulation zones and potential entry areas.
Settings
Data Sources: Allows toggling the use of "Unchanged" issues/volume data.
Thresholds: You can set the overbought and oversold levels based on the paper's research or your own testing.
Long-Term Capitulation Oscillator (LTCO, Diodato 2019)Description:
This script is a faithful implementation of the Long-Term Capitulation Oscillator (LTCO) from Chris Diodato's award-winning 2019 CMT paper, "Making The Most Of Panic". It is a strategic, market-wide breadth and volume oscillator designed to identify major, long-term market bottoms.
What It Is
The LTCO combines long-term moving averages (34, 55, 89, 144, and 233-day) of NYSE advancing/declining issues and up/down volume. It uses a unique "average of averages" method to create a responsive yet strategic long-term indicator. This script plots the raw, un-normalized value as described in the paper, which typically oscillates in the 700-1100 range.
How to Interpret
The LTCO is a strategic tool for identifying potentially significant market turning points.
Extremely Low Readings: Suggest that a long-term period of selling has reached a point of exhaustion, potentially marking a major bear market low or a generational buying opportunity. The paper backtested various thresholds, with values below 950, 925, and especially 875 showing historically strong forward returns over the next 6-24 months.
Overbought/Oversold Lines: The script includes customizable overbought/oversold lines to help you visually identify these critical zones.
Settings
Data Sources: Allows toggling the use of "Unchanged" issues/volume data for the calculation.
Thresholds: You can set the overbought and oversold levels to your preference, based on the paper's findings or your own research.






















