Auto-Fibonacci Levels [ChartWhizzperer]Auto-Fibonacci Levels
Discover one of the most elegant and flexible Fibonacci indicators for TradingView – fully automatic, tastefully understated, and built entirely in Pine Script V6.
Key Features:
- Automatically detects the most recent swing high and swing low.
- Plots Fibonacci retracement levels and extensions (including 161.8%, 261.8%) perfectly aligned
to the prevailing trend.
- Distinctive, dashed lines with crystal-clear price labels right at the price scale
for maximum clarity.
- Line length and label offset are fully customisable for your charting preference.
- Absolutely no repainting: Only confirmed swings are used for reliable signals.
- Parameter: "Swing Detection Length"
The “Swing Detection Length” parameter determines how many bars must appear to the left and right of a potential high or low for it to be recognised as a significant swing point.
- Higher values make the script less sensitive (only major turning points are detected).
- Lower values make it more responsive to minor fluctuations (more fibs, more signals).
For best results, adjust this setting according to your preferred timeframe and trading style.
Pro Tip:
Fibonacci levels refresh automatically whenever a new swing is confirmed.
Ideal for price action enthusiasts and Fibonacci purists alike.
Licence:
// Licence: CC BY-NC-SA 4.0 – Non-commercial use only, attribution required.
// © ChartWhizzperer
指標和策略
RSI + EMA/WMA + MACD + Volume/OBV (Tùy chỉnh đầy đủ)🧭 Indicator Name: RSI + EMA/WMA + MACD + Volume/OBV (Fully Customizable)
🔍 Purpose:
This indicator combines several key technical analysis tools in one custom panel (separate tab):
RSI with EMA & WMA smoothing
MACD + divergence detection
Volume or OBV Oscillator (toggle option)
Complete input customization for all components
📐 Included Components:
✅ RSI + EMA/WMA
RSI calculated with user-defined period (default: 7)
Two moving averages applied to RSI:
EMA (default: 9)
WMA (default: 45)
Both plotted on the RSI chart
RSI background zone colors:
Overbought/oversold: 80/70 and 30/20
Neutral zone: 40–60 gray background
✅ EMA vs WMA Cross Alerts on RSI
Alert when WMA crosses above EMA (bullish)
Alert when WMA crosses below EMA (bearish)
✅ MACD
MACD line = EMA(fast) − EMA(slow)
Signal line = EMA(MACD)
Histogram = MACD − Signal
Optional bullish and bearish divergence detection using lookback candles
✅ Volume or OBV Oscillator
Choose between:
Standard volume histogram, or
OBV Oscillator (EMA(12) − EMA(26) of OBV)
⚙️ Customizable Inputs:
You can modify:
RSI length
EMA/WMA length for RSI
MACD fast/slow/signal lengths
Divergence lookback candles
Choose to show/hide: RSI, EMA, WMA, MACD, Volume, or OBV Oscillator
📌 Display Info:
This indicator plots in a separate pane, not overlayed on price
Clear visual styling for analysis zones, lines, and histograms
Works well with other overlayed indicators like multi-timeframe dashboards
Would you like a merged version of this with your RSI Multi-Timeframe Table on chart?
Let me know and I’ll combine them cleanly into one script.
RSI & EMA/WMA trạng thái đa khung (nâng cấp)🧠 Main Function
This indicator helps you track the relationship between RSI, EMA, and WMA across multiple timeframes, all displayed in a visual table overlayed on the price chart.
📋 Displayed Components
Row Content
🟦 Row 1 Timeframe labels: 1m, 5m, 15m, 1h, 4h, 1D, 4D
🟩 Row 2 Colored dot for RSI status:
– 🟢 RSI is above both EMA and WMA
– 🔴 RSI is below both EMA and WMA
– 🟡 RSI is between EMA and WMA
📈 Row 3 Actual RSI value on that timeframe
🟠 Row 4 Colored dot for EMA vs WMA position:
– 🟢 EMA is above WMA
– 🔴 EMA is below WMA
– ⚪ EMA is nearly equal to WMA
🔤 Row 5 Which moving average is on top: shows "EMA" or "WMA"
⚙️ Custom Inputs
In the input panel, you can adjust:
RSI length (default: 14)
EMA length (default: 9) → Treated as fast MA
WMA length (default: 45) → Treated as slow MA
Custom colors for all status dots (RSI position & EMA/WMA position)
⏱️ Supported Timeframes
1m, 5m, 15m, 1h, 4h, 1D, 4D
→ You can modify these as needed.
✅ Practical Uses
Quickly monitor RSI trends across multiple timeframes
Identify when RSI is trending strong or weakening
Visually track crossovers between fast and slow MAs
Supports faster, clearer trading decisions
Ticker Pulse Meter BasicPairs nicely with the Contrarian 100 MA located here:
and the Enhanced Stock Ticker with 50MA vs 200MA located here:
Description
The Ticker Pulse Meter Basic is a dynamic Pine Script v6 indicator designed to provide traders with a visual representation of a stock’s price position relative to its short-term and long-term ranges, enabling clear entry and exit signals for long-only trading strategies. By calculating three normalized metrics—Percent Above Long & Above Short, Percent Above Long & Below Short, and Percent Below Long & Below Short—this indicator offers a unique "pulse" of market sentiment, plotted as stacked area charts in a separate pane. With customizable lookback periods, thresholds, and signal plotting options, it empowers traders to identify optimal entry points and profit-taking levels. The indicator leverages Pine Script’s force_overlay feature to plot signals on either the main price chart or the indicator pane, making it versatile for various trading styles.
Key Features
Pulse Meter Metrics:
Computes three percentages based on short-term (default: 50 bars) and long-term (default: 200 bars) lookback periods:
Percent Above Long & Above Short: Measures price strength when above both short and long ranges (green area).
Percent Above Long & Below Short: Indicates mixed momentum (orange area).
Percent Below Long & Below Short: Signals weakness when below both ranges (red area).
Flexible Signal Plotting:
Toggle between plotting entry (blue dots) and exit (white dots) signals on the main price chart (location.abovebar/belowbar) or in the indicator pane (location.top/bottom) using the Plot Signals on Main Chart option.
Entry/Exit Logic:
Long Entry: Triggered when Percent Above Long & Above Short crosses above the high threshold (default: 20%) and Percent Below Long & Below Short is below the low threshold (default: 40%).
Long Exit: Triggered when Percent Above Long & Above Short crosses above the profit-taking level (default: 95%).
Visual Enhancements:
Plots stacked area charts with semi-transparent colors (green, orange, red) for intuitive trend analysis.
Displays threshold lines for entry (high/low) and profit-taking levels.
Includes a ticker and timeframe table in the top-right corner for quick reference.
Alert Conditions: Supports alerts for long entry and exit signals, integrable with TradingView’s alert system for automated trading.
Technical Innovation: Combines normalized price metrics with Pine Script v6’s force_overlay for seamless signal integration on the price chart or indicator pane.
Technical Details
Calculation Logic:
Uses confirmed bars (barstate.isconfirmed) to calculate metrics, ensuring reliability.
Short-term percentage: (close - lowest(low, lookback_short)) / (highest(high, lookback_short) - lowest(low, lookback_short)).
Long-term percentage: (close - lowest(low, lookback_long)) / (highest(high, lookback_long) - lowest(low, lookback_long)).
Derived metrics:
pct_above_long_above_short = (pct_above_long * pct_above_short) * 100.
pct_above_long_below_short = (pct_above_long * (1 - pct_above_short)) * 100.
pct_below_long_below_short = ((1 - pct_above_long) * (1 - pct_above_short)) * 100.
Signal Plotting:
Entry signals (long_entry) use ta.crossover to detect when pct_above_long_above_short crosses above entryThresholdhigh and pct_below_long_below_short is below entryThresholdlow.
Exit signals (long_exit) use ta.crossover for pct_above_long_above_short crossing above profitTake.
Signals are plotted as tiny circles with force_overlay=true for main chart or standard plotting for the indicator pane.
Performance Considerations: Optimized for efficiency by calculating metrics only on confirmed bars and using lightweight plotting functions.
How to Use
Add to Chart:
Copy the script into TradingView’s Pine Editor and apply it to your chart.
Configure Settings:
Short Lookback Period: Adjust the short-term lookback (default: 50 bars) for sensitivity.
Long Lookback Period: Set the long-term lookback (default: 200 bars) for broader context.
Entry Thresholds: Modify high (default: 20%) and low (default: 40%) thresholds for entry conditions.
Profit Take Level: Set the exit threshold (default: 95%) for profit-taking.
Plot Signals on Main Chart: Check to display signals on the price chart; uncheck for the indicator pane.
Interpret Signals:
Long Entry: Blue dots indicate a strong bullish setup when price is high relative to both lookback ranges and weakness is low.
Long Exit: White dots signal profit-taking when strength reaches overbought levels.
Use the stacked area charts to assess trend strength and momentum.
Set Alerts:
Create alerts for Long Entry and Long Exit conditions using TradingView’s alert system.
Customize Visuals:
Adjust colors and thresholds via TradingView’s settings for better visibility.
The ticker table displays the symbol and timeframe in the top-right corner.
Example Use Cases
Swing Trading: Use entry signals to capture short-term bullish moves within a broader uptrend, exiting at profit-taking levels.
Trend Confirmation: Monitor the green area (Percent Above Long & Above Short) for sustained bullish momentum.
Market Sentiment Analysis: Use the stacked areas to gauge bullish vs. bearish sentiment across timeframes.
Notes
Testing: Backtest the indicator on your chosen market and timeframe to validate its effectiveness.
Compatibility: Built for Pine Script v6 and tested on TradingView as of June 20, 2025.
Limitations: Signals are long-only; adapt the script for short strategies if needed.
Enhancements: Consider adding a histogram for the difference between metrics or additional thresholds for nuanced trading.
Acknowledgments
Inspired by public Pine Script examples and designed to simplify complex market dynamics into a clear, actionable tool. For licensing or support, contact Chuck Schultz (@chuckaschultz) on TradingView. Share feedback in the comments, and happy trading!
MA Cross with 5‑MA Exit (15m Chart)entry on 9 ma over 21 15m chart exit when price closes below 5 ma
Advanced Crypto Trend Line Strategysimple trend line strategy with rsi, macd, demand and supply and volume confluence.
XRP Alert Strategy - 3X CycleBottom Watch → $1.60 and $1.50 triggers
Reversal Signals → RSI breakout & EMA crossover
Profit Zone Targets → $3.00 and $4.50 levels
(Optional): Volume spike logic for top signal
Cycle Composite 3.6 WeightedThe Cycle Composite is a multi-factor market cycle model designed to classify long-term market behavior into distinct phases using normalized and weighted data inputs.
It combines ten key on-chain, dominance, volatility, sentiment, and trend-following metrics into a single composite output. The goal is to provide a clearer understanding of where the market may stand in the broader cycle (e.g., accumulation, early bull, late bull, or euphoria).
This version (3.4) introduces flexible weighting, trend strength markers, and additional context-aware signals such as risk-on confirmations and altseason flags.
Phases Identified:
The model categorizes the market into one of five zones:
Euphoria (> 85)
Late Bull (70 – 85)
Mid Bull (50 – 70)
Early Bull (30 – 50)
Fear (< 30)
Each phase is determined by a smoothed EMA of the weighted composite score.
Data Sources and Metrics Used (10 total):
BTC Dominance (CRYPTOCAP:BTC.D)
Stablecoin Dominance (USDT + USDC average) (inverted for risk-on)
ETH Dominance (CRYPTOCAP:ETH.D)
BBWP (normalized Bollinger Band Width % over 1-year window)
WVF (Williams VIX Fix for volatility spike detection)
NUPL (Net Unrealized Profit/Loss, external source)
CMF (Chaikin Money Flow, smoothed volume accumulation)
CEX Open Interest (custom input from DAO / external source)
Whale Inflows (custom input from whale exchange transfer data)
Google Trends Average (BTC, Crypto, Altcoin terms)
All inputs are normalized over a 200-bar window and combined via weighted averaging, where each weight is user-configurable.
Additional Features:
Phase Labels: Labels are printed only when a new phase is entered.
Bull Continuation Marker: Triangle up when composite makes higher highs and NUPL increases.
Weakening Marker: Triangle down when composite rolls over in Late Bull and NUPL falls.
Risk-On Signal: Green circle appears when CMF and Google Trends are both rising.
Altseason Flag: Orange diamond appears when dominance of "others.d" exceeds BTC.D and ETH.D and composite is above 50.
Background Shading: Each phase is shaded with a semi-transparent background color.
Timeframe-Aware Display: All markers and signals are shown only on weekly timeframe for clarity.
Intended Use:
This script is intended for educational and macro-trend analysis purposes.
It can be used to:
Identify macro cycle position (accumulation, bull phases, euphoria, etc.)
Spot long-term trend continuation or weakening signals
Add context to price action with external on-chain and sentiment data
Time rotation events such as altseason risk
Disclaimer:
This script does not constitute financial advice.
It is intended for informational and research purposes only.
Users should conduct their own due diligence and analysis before making investment decisions.
MNQ/NQ Risk Management ToolThis tool helps MNQ and NQ futures traders automatically calculate position size based on either a fixed dollar risk or a percentage of account balance.
Simply enter your stop loss level and choose whether to risk a set dollar amount or a percentage of your account. The script will display how many contracts to trade based on your setup.
Features:
Calculates contracts based on stop loss and risk size
Toggle between dollar-based or percent-of-account risk
Works with both MNQ ($2/point) and NQ ($20/point)
Automatically updates based on current price and direction (long or short)
Displays a clean info box on your chart with risk, contracts, and settings
This tool is ideal for intraday or swing traders who want to stay consistent with risk management across trades.
Impulsive Candle Detector TRW [3-in-1]Impulsive Candle Detector
Description: professor Michael impulsive candle but 3 -1 code by me
The Impulsive Candle Detector is a powerful tool designed to identify and highlight three different types of impulsive candles on your TradingView chart—all in a single, customizable indicator. Each impulsive candle type uses its own configurable settings, allowing traders to easily visualize various market dynamics without crowding their charts with multiple indicators.
How it works:
The indicator detects “impulsive” candles based on custom thresholds for candle range, volume, and body-to-wick ratio.
Each of the three types is independently configurable with its own parameters (length for averages, size multiplier, volume multiplier, body ratio, and color).
When an impulsive candle is detected, the corresponding bar is colored and can optionally display a label above the candle indicating its type.
Separate alerts can be set for each impulsive candle type, enabling you to react to different market conditions instantly.
Features:
Three independent impulsive candle detection types, all in one indicator
Adjustable settings for each type (range, volume, body ratio, and color)
Clean, uncluttered chart view
Custom bar coloring and optional labels for instant visual recognition
Supports individual alert notifications for each impulsive candle type
Perfect for:
Traders looking to spot strong market moves or volatility spikes
Those who want to monitor multiple impulsive candle patterns without overlapping indicators
Anyone who values clean and customizable charting solutions
VWAP Rejection Strategy XAUUSDhi made this strategy of vwap rejection as iam a personally a big fan of vwap this strategy works on any tf and its best suited for xauusd..
15min PD Array//@version=5
indicator("15min PD Array", overlay=true)
// Timeframe inputs
tf = "15"
// Get previous day's high, low, close
var float pdh = na
var float pdl = na
var float pdc = na
t = request.security(syminfo.tickerid, tf, time)
h = request.security(syminfo.tickerid, tf, high)
l = request.security(syminfo.tickerid, tf, low)
c = request.security(syminfo.tickerid, tf, close)
is_new_day = ta.change(time("D"))
var float temp_high = na
var float temp_low = na
var float temp_close = na
if is_new_day
pdh := temp_high
pdl := temp_low
pdc := temp_close
temp_high := na
temp_low := na
temp_close := na
temp_high := na(temp_high) ? h : math.max(temp_high, h)
temp_low := na(temp_low) ? l : math.min(temp_low, l)
temp_close := c
// Midpoint (EQ)
eq = (pdh + pdl) / 2
// Plotting
plot(pdh, color=color.green, title="PDH", linewidth=1, style=plot.style_linebr)
plot(pdl, color=color.red, title="PDL", linewidth=1, style=plot.style_linebr)
plot(pdc, color=color.gray, title="PDC", linewidth=1, style=plot.style_linebr)
plot(eq, color=color.orange, title="EQ (Mid)", linewidth=1, style=plot.style_linebr)
Intermarket Correlation Oscillator (ICO)The Intermarket Correlation Oscillator (ICO) is a TradingView indicator that helps traders analyze the relationship between two assets, such as stocks, indices, or cryptocurrencies, by measuring their price correlation. It displays this correlation as an oscillator ranging from -1 to +1, making it easy to spot whether the assets move together, oppositely, or independently. A value near +1 indicates strong positive correlation (assets move in the same direction), near -1 shows strong negative correlation (opposite movements), and near 0 suggests no correlation. This tool is ideal for confirming trends, spotting divergences, or identifying hedging opportunities across markets.
How It Works?
The ICO calculates the Pearson correlation coefficient between the chart’s primary asset (e.g., Apple stock) and a secondary asset you choose (e.g., SPY for the S&P 500) over a specified number of bars (default: 20). The oscillator is plotted in a separate pane below the chart, with key levels at +0.8 (overbought, strong positive correlation) and -0.8 (oversold, strong negative correlation). A midline at 0 helps gauge neutral correlation. When the oscillator crosses these levels or the midline, labels ("OB" for overbought, "OS" for oversold) and alerts notify you of significant shifts. Shaded zones highlight extreme correlations (red for overbought, green for oversold) if enabled.
Why Use the ICO?
Trend Confirmation: High positive correlation (e.g., SPY and QQQ both rising) confirms market trends.
Divergence Detection: Negative correlation (e.g., DXY rising while stocks fall) signals potential reversals.
Hedging: Identify negatively correlated assets to balance your portfolio.
Market Insights: Understand how assets like stocks, bonds, or crypto interact.
Easy Steps to Use the ICO in TradingView
Add the Indicator:
Open TradingView and load your chart (e.g., AAPL on a daily timeframe).
Go to the Pine Editor at the bottom of the TradingView window.
Copy and paste the ICO script provided earlier.
Click "Add to Chart" to display the oscillator below your price chart.
Configure Settings:
Click the gear icon next to the indicator’s name in the chart pane to open settings.
Secondary Symbol: Choose an asset to compare with your chart’s symbol (e.g., "SPY" for S&P 500, "DXY" for USD Index, or "BTCUSD" for Bitcoin). Default is SPY.
Correlation Lookback Period: Set the number of bars for calculation (default: 20). Use 10-14 for short-term trading or 50 for longer-term analysis.
Overbought/Oversold Levels: Adjust thresholds (default: +0.8 for overbought, -0.8 for oversold) to suit your strategy. Lower values (e.g., ±0.7) give more signals.
Show Midline/Zones: Check boxes to display the zero line and shaded overbought/oversold zones for visual clarity.
Interpret the Oscillator:
Above +0.8: Strong positive correlation (red zone). Assets move together.
Below -0.8: Strong negative correlation (green zone). Assets move oppositely.
Near 0: No clear relationship (midline reference).
Labels: "OB" or "OS" appears when crossing overbought/oversold levels, signaling potential correlation shifts.
Set Up Alerts:
Right-click the indicator, select "Add Alert."
Choose conditions like "Overbought Alert" (crossing above +0.8), "Oversold Alert" (crossing below -0.8), or zero-line crossings for bullish/bearish correlation shifts.
Configure notifications (e.g., email, SMS) to stay informed.
Apply to Trading:
Use positive correlation to confirm trades (e.g., buy AAPL if SPY is rising and correlation is high).
Spot divergences for reversals (e.g., stocks dropping while DXY rises with negative correlation).
Combine with other indicators like RSI or moving averages for stronger signals.
Tips for New Users
Start with related assets (e.g., SPY and QQQ for tech stocks) to see clear correlations.
Test on a demo account to understand signals before trading live.
Be aware that correlation is a lagging indicator; confirm signals with price action.
If the secondary symbol doesn’t load, ensure it’s valid on TradingView (e.g., use correct ticker format).
The ICO is a powerful, beginner-friendly tool to explore intermarket relationships, enhancing your trading decisions with clear visual cues and alerts.
LMAsLibrary "LMAs"
Credits
Thank you to @QuantraSystems for dynamic calculations.
Introduction
This lightweight library offers dynamic implementations of popular moving averages that adapt their length automatically as new bars are added to the chart.
Each function is built on a dynamic length formula:
len = math.min(maxLength, bar_index + 1)
This approach ensures that calculations begin as early as the first bar, allowing for smoother initialization and more consistent behavior across all timeframes. It’s especially useful in custom scripts that run from bar 0 or when historical data is limited.
Usage
You can use this library as a drop-in replacement for standard moving averages. It provides more flexibility and stability in live or backtesting environments where fixed-length indicators may delay or fail to initialize properly.
Why Use This?
• Works from the very first bar
• Avoids na values during early bars
• Great for real-time indicators, strategies, and bar-replay
• Clean and efficient code with dynamic behavior
How to Use
Import the library into your script and call any of the included functions just like you would with their native counterparts.
Summary
A lightweight Pine Script™ library offering dynamic moving averages that work seamlessly from the very first bar. Ideal for strategies and indicators requiring robust initialization and adaptive behavior.
SMA(sourceData, maxLength)
Dynamic SMA
Parameters:
sourceData (float)
maxLength (int)
EMA(src, length)
Dynamic EMA
Parameters:
src (float)
length (int)
DEMA(src, length)
Dynamic DEMA
Parameters:
src (float)
length (int)
TEMA(src, length)
Dynamic TEMA
Parameters:
src (float)
length (int)
WMA(src, length)
Dynamic WMA
Parameters:
src (float)
length (int)
HMA(src, length)
Dynamic HMA
Parameters:
src (float)
length (int)
VWMA(src, volsrc, length)
Dynamic VWMA
Parameters:
src (float)
volsrc (float)
length (int)
SMMA(src, length)
Dynamic SMMA
Parameters:
src (float)
length (int)
LSMA(src, length, offset)
Dynamic LSMA
Parameters:
src (float)
length (int)
offset (int)
RMA(src, length)
Dynamic RMA
Parameters:
src (float)
length (int)
ALMA(src, length, offset_sigma, sigma)
Dynamic ALMA
Parameters:
src (float)
length (int)
offset_sigma (float)
sigma (float)
ZLSMA(src, length)
Dynamic ZLSMA
Parameters:
src (float)
length (int)
FRAMA(src, length)
Parameters:
src (float)
length (int)
KAMA(src, length)
Dynamic KAMA
Parameters:
src (float)
length (int)
JMA(src, length, phase)
Dynamic JMA
Parameters:
src (float)
length (int)
phase (float)
T3(src, length, volumeFactor)
Dynamic T3
Parameters:
src (float)
length (int)
volumeFactor (float)
Top-Center Range BoxTop-Center Range Box Indicator
This indicator calculates and displays:
The current bar’s range (High minus Low)
The average range over a specified number of previous bars
The percentage of the current range compared to that average
The result is shown in a floating label near the top of the chart.
2 EMA + 2 SMA Signals with EMA Crossovers (1-Day Timeframe)Simple Ema or Sma allowing to choose custom intervals
Dynamic EMA Ribbon SystemThis Pine Script v6 indicator creates a multi-EMA ribbon that dynamically changes color based on market conditions. It includes 16 EMAs (21 to 66 in 3-period increments) and a thick 200 EMA for long-term trend reference. The indicator automatically detects bullish, bearish, and sideways markets, adjusting the EMA colors accordingly for clear visual interpretation.
Key Features
1. Multi-EMA Ribbon (21 to 66)
16 EMAs plotted distinctly (21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66).
Each EMA is individually visible (not clubbed together).
Adjustable line thickness (1-3 pixels).
2. Dynamic Color System
Green EMAs:
Price is above all EMAs.
EMAs are stacked ascendingly (21 > 24 > 27 > ... > 66).
Red EMAs:
Price is below all EMAs.
EMAs are stacked descendingly (21 < 24 < 27 < ... < 66).
Gray EMAs:
Market is sideways (price range within threshold).
EMAs are not properly stacked (no clear trend).
3. 200 EMA Reference Line
Thick black line (3px width).
Broken line style for better visibility.
Trend confirmation:
"▲ Trend Start" label when price crosses above 200 EMA.
"▼ Trend End" label when price crosses below 200 EMA.
4. Market State Detection
Sideways Market Condition:
Detected when price range is < user-defined threshold (default: 1.5%).
Background turns light gray.
Trending Market Condition:
Bullish: Background turns light green.
Bearish: Background turns light red.
5. Visual Enhancements
Price Position Line:
Blue line showing recent price movement (last 20 bars).
Clear Labels:
Large "Trend Start" / "Trend End" alerts.
No Repainting:
Uses confirmed signals to avoid false alerts.
Input Parameters
Parameter Description Default Range
Show 200 EMA Toggles the 200 EMA reference line true true/false
EMA Line Thickness Adjusts thickness of EMAs (1-3px) 1 1-3
Sideways Threshold (%) Price range % to consider market sideways 1.5% 0.1-10%
Sideways Period Bars analyzed for sideways condition 20 5-100
How to Use in Trading
Bullish Market (Green EMAs)
Entry Signal:
Price above all EMAs + EMAs stacked upward.
Confirmation: Price crosses above 200 EMA ("▲ Trend Start").
Exit Signal:
EMAs turn red or price drops below key EMAs.
Bearish Market (Red EMAs)
Entry Signal:
Price below all EMAs + EMAs stacked downward.
Confirmation: Price crosses below 200 EMA ("▼ Trend End").
Exit Signal:
EMAs turn green or price rises above key EMAs.
Sideways Market (Gray EMAs)
Strategy:
Avoid trend trades.
Look for breakouts (price exits range with EMA color change).
Code Highlights
✔ Optimized Performance – Uses arrays for EMA calculations.
✔ No Repainting – Signals are confirmed before display.
✔ Professional Visuals – Clean labels, dynamic colors, and intuitive design.
Final Notes
This indicator is perfect for:
✅ Trend-following strategies (swing/day trading).
✅ Breakout confirmation (sideways → trending shifts).
✅ Multi-timeframe analysis (works on all timeframes).
Installation:
Copy the Pine Script code.
Paste into TradingView’s Pine Editor.
Apply to any chart.
Patrik BTC Exponential Model v.2A MULTI-ANCHOR EULER'S EXPONENTIAL REGRESSION MODEL v2.0
Implements Euler's exponential growth model: BTC(t) = a × e^(r × t)
Based on Euler's number (e ≈ 2.71828) for natural exponential growth
- a = Initial coefficient (y-intercept in log space)
- r = Growth rate (slope in log space)
- t = Years since anchor date
FEATURES:
- Exponential regression line with ±2 SD bands
- R-squared for model fit assessment
- Log/linear regression modes
- Real-time deviation tracking
- Customizable anchor date
- BUY/SELL SIGNALS: Background zones & bar colors
- Green = Buy (below trend), Red = Sell (above trend)
- Darker colors = Stronger signals (±2 SD)
IMPORTANT CAVEATS:
⚠️ ANCHOR BIAS: Selecting "best fit" dates introduces look-ahead bias
⚠️ NOT PREDICTIVE: High R² shows historical fit, not future reliability
⚠️ For analysis only - NOT investment advice
TIPS:
- Use log scale (right-click price axis → "Logarithmic")
- ±2σ bands ≈ 95% confidence assuming normal distribution
- Signals: Strong Buy <-2σ | Buy <-1σ | Neutral | Sell >+1σ | Strong Sell >+2σ
- Note @GallantCryptoYT has a much more sophisticated exit / entry
CREDITS:
@GallantCryptoYT (Patreon: Gallant Crypto)
Bitcoin Power Law Clock [LuxAlgo]The Bitcoin Power Law Clock is a unique representation of Bitcoin prices proposed by famous Bitcoin analyst and modeler Giovanni Santostasi.
It displays a clock-like figure with the Bitcoin price and average lines as spirals, as well as the 12, 3, 6, and 9 hour marks as key points in the cycle.
🔶 USAGE
Giovanni Santostasi, Ph.D., is the creator and discoverer of the Bitcoin Power Law Theory. He is passionate about Bitcoin and has 12 years of experience analyzing it and creating price models.
As we can see in the above chart, the tool is super intuitive. It displays a clock-like figure with the current Bitcoin price at 10:20 on a 12-hour scale.
This tool only works on the 1D INDEX:BTCUSD chart. The ticker and timeframe must be exact to ensure proper functionality.
According to the Bitcoin Power Law Theory, the key cycle points are marked at the extremes of the clock: 12, 3, 6, and 9 hours. According to the theory, the current Bitcoin prices are in a frenzied bull market on their way to the top of the cycle.
🔹 Enable/Disable Elements
All of the elements on the clock can be disabled. If you disable them all, only an empty space will remain.
The different charts above show various combinations. Traders can customize the tool to their needs.
🔹 Auto scale
The clock has an auto-scale feature that is enabled by default. Traders can adjust the size of the clock by disabling this feature and setting the size in the settings panel.
The image above shows different configurations of this feature.
🔶 SETTINGS
🔹 Price
Price: Enable/disable price spiral, select color, and enable/disable curved mode
Average: Enable/disable average spiral, select color, and enable/disable curved mode
🔹 Style
Auto scale: Enable/disable automatic scaling or set manual fixed scaling for the spirals
Lines width: Width of each spiral line
Text Size: Select text size for date tags and price scales
Prices: Enable/disable price scales on the x-axis
Handle: Enable/disable clock handle
Halvings: Enable/disable Halvings
Hours: Enable/disable hours and key cycle points
🔹 Time & Price Dashboard
Show Time & Price: Enable/disable time & price dashboard
Location: Dashboard location
Size: Dashboard size
Instrument Pair Reverse Candle AlertCompares price candles of two markets price candle divergence alert
Multi-EMA with Daily EMA OverlayThe Multi-EMA with Daily EMA Overlay shows the 8,13,21,50,200 EMAs on the current timeframe. In addition shows the 50,200 Daily EMAs on every other timeframes.