Contrarian RSIContrarian RSI Indicator
Pairs nicely with Contrarian 100 MA (optional hide/unhide buy/sell signals)
Description
The Contrarian RSI is a momentum-based technical indicator designed to identify potential reversal points in price action by combining a unique RSI calculation with a predictive range model inspired by the "Contrarian 5 Levels" logic. Unlike traditional RSI, which measures price momentum based solely on price changes, this indicator integrates a smoothed, weighted momentum calculation and predictive price ranges to generate contrarian signals. It is particularly suited for traders looking to capture reversals in trending or range-bound markets.
This indicator is versatile and can be used across various timeframes, though it performs best on higher timeframes (e.g., 1H, 4H, or Daily) due to reduced noise and more reliable signals. Lower timeframes may require additional testing and careful parameter tuning to optimize performance.
How It Works
The Contrarian RSI combines two primary components:
Predictive Ranges (5 Levels Logic): This calculates a smoothed price average that adapts to market volatility using an ATR-based mechanism. It helps identify significant price levels that act as potential support or resistance zones.
Contrarian RSI Calculation: A modified RSI calculation that uses weighted momentum from the predictive ranges to measure buying and selling pressure. The result is smoothed and paired with a user-defined moving average to generate clear signals.
The indicator generates buy (long) and sell (exit) signals based on crossovers and crossunders of user-defined overbought and oversold levels, making it ideal for contrarian trading strategies.
Calculation Overview
Predictive Ranges (5 Levels Logic):
Uses a custom function (pred_ranges) to calculate a dynamic price average (avg) based on the ATR (Average True Range) multiplied by a user-defined factor (mult).
The average adjusts only when the price moves beyond the ATR threshold, ensuring responsiveness to significant price changes while filtering out noise.
This calculation is performed on a user-specified timeframe (tf5Levels) for multi-timeframe analysis.
Contrarian RSI:
Compares consecutive predictive range values to calculate gains (g) and losses (l) over a user-defined period (crsiLength).
Applies a Gaussian weighting function (weight = math.exp(-math.pow(i / crsiLength, 2))) to prioritize recent price movements.
Computes a "wave ratio" (net_momentum / total_energy) to normalize momentum, which is then scaled to a 0–100 range (qrsi = 50 + 50 * wave_ratio).
Smooths the result with a 2-period EMA (qrsi_smoothed) for stability.
Moving Average:
Applies a user-selected moving average (SMA, EMA, WMA, SMMA, or VWMA) with a customizable length (maLength) to the smoothed RSI (qrsi_smoothed) to generate the final indicator value (qrsi_ma).
Signal Generation:
Long Entry: Triggered when qrsi_ma crosses above the oversold level (oversoldLevel, default: 1).
Long Exit: Triggered when qrsi_ma crosses below the overbought level (overboughtLevel, default: 99).
Entry and Exit Rules
Long Entry: Enter a long position when the Contrarian RSI (qrsi_ma) crosses above the oversold level (default: 1). This suggests the asset is potentially oversold and due for a reversal.
Long Exit: Exit the long position when the Contrarian RSI (qrsi_ma) crosses below the overbought level (default: 99), indicating a potential overbought condition and a reversal to the downside.
Customization: Adjust overboughtLevel and oversoldLevel to fine-tune sensitivity. Lower timeframes may benefit from tighter levels (e.g., 20 for oversold, 80 for overbought), while higher timeframes can use extreme levels (e.g., 1 and 99) for stronger reversals.
Timeframe Considerations
Higher Timeframes (Recommended): The indicator is optimized for higher timeframes (e.g., 1H, 4H, Daily) due to its reliance on predictive ranges and smoothed momentum, which perform best with less market noise. These timeframes typically yield more reliable reversal signals.
Lower Timeframes: The indicator can be used on lower timeframes (e.g., 5M, 15M), but signals may be noisier and require additional confirmation (e.g., from price action or other indicators). Extensive backtesting and parameter optimization (e.g., adjusting crsiLength, maLength, or mult) are recommended for lower timeframes.
Inputs
Contrarian RSI Length (crsiLength): Length for RSI momentum calculation (default: 5).
RSI MA Length (maLength): Length of the moving average applied to the RSI (default: 1, effectively no MA).
MA Type (maType): Choose from SMA, EMA, WMA, SMMA, or VWMA (default: SMA).
Overbought Level (overboughtLevel): Upper threshold for exit signals (default: 99).
Oversold Level (oversoldLevel): Lower threshold for entry signals (default: 1).
Plot Signals on Main Chart (plotOnChart): Toggle to display signals on the price chart or the indicator panel (default: false).
Plotted on Lower:
Plotted on Chart:
5 Levels Length (length5Levels): Length for predictive range calculation (default: 200).
Factor (mult): ATR multiplier for predictive ranges (default: 6.0).
5 Levels Timeframe (tf5Levels): Timeframe for predictive range calculation (default: chart timeframe).
Visuals
Contrarian RSI MA: Plotted as a yellow line, representing the smoothed Contrarian RSI with the applied moving average.
Overbought/Oversold Lines: Red line for overbought (default: 99) and green line for oversold (default: 1).
Signals: Blue circles for long entries, white circles for long exits. Signals can be plotted on the main chart (plotOnChart = true) or the indicator panel (plotOnChart = false).
Usage Notes
Use the indicator in conjunction with other tools (e.g., support/resistance, trendlines, or volume) to confirm signals.
Test extensively on your chosen timeframe and asset to optimize parameters like crsiLength, maLength, and mult.
Be cautious with lower timeframes, as false signals may occur due to market noise.
The indicator is designed for contrarian strategies, so it works best in markets with clear reversal patterns.
Disclaimer
This indicator is provided for educational and informational purposes only. Always conduct thorough backtesting and risk management before using any indicator in live trading. The author is not responsible for any financial losses incurred.
Educational
MTF Dashboard 9 Timeframes + Signals📊 MTF Dashboard — Multi-Timeframe Market Signal Matrix
Overview
The MTF Dashboard is an open-source Pine Script tool that enables traders to monitor key trend and momentum indicators across nine timeframes simultaneously—ranging from 1 minute to monthly—within a single unified view. This script is designed to support both discretionary and rules-based traders by improving efficiency in multi-timeframe analysis.
✅ Key Features
🔄 Multi-Timeframe Coverage
1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W, 1M supported
Toggle individual timeframes on/off as per your trading style
📈 Built-in Technical Indicators
Trend Detection: Based on moving average (EMA) crossovers
Momentum Evaluation: Using Relative Strength Index (RSI)
MACD Status: Displays histogram trend
Volume Confirmation: Compares current volume to average
Confluence Rating: Optional logic combining indicator signals
🎨 Custom Dashboard Appearance
Supports light/dark chart modes
Adjustable panel positioning (Top/Bottom/Center Left/Right)
Multiple text size options
Color settings for bullish, bearish, and neutral signals
🔔 Optional Alerts
Alert conditions for confluence setups or trend changes (user must configure manually)
Use Cases
Identify trend alignment across short, medium, and long timeframes
Confirm entry or exit signals with high-confidence confluence
Detect early shifts in trend direction using EMA, RSI, MACD divergence
Quickly assess overall market sentiment in one glance
Limitations:
This script does not provide financial advice or guaranteed signals
Not intended for automatic trading or strategy backtesting
Users should interpret dashboard signals in the context of price structure and risk management
How to Use:
Add the script to your chart from your favorites
Open the settings panel:
Enable only the timeframes you want to analyze
Customize colors, position, and table layout
Optionally, right-click the script to configure alerts based on confluence or indicator changes
Technical Notes
EMA settings can be adjusted to match your trading system
Designed for visual clarity and performance with multiple timeframes enabled
Credits
This tool was developed to help the TradingView community simplify MTF analysis. Inspired by institutional-grade dashboards and adapted for manual charting use by retail traders.
Tags
#multi-timeframe #EMA #RSI #MACD #volume #confluence #dashboard #trend #momentum #open-source #pine-script #tradingview
License
Published as open-source under the TradingView community sharing model. Users are encouraged to modify, improve, and credit respectfully.
Open Range Breakout (ORB) with Alerts
🚀 ChartsAlgo – Open Range Breakout (ORB) with Alerts
The Open Range Breakout (ORB) Indicator by ChartsAlg is designed for intraday traders looking to capitalize on price movements after the market’s opening range. This tool is especially effective for futures (MNQ, MES) and high-volatility stocks or crypto where initial volatility sets the tone for the session.
This indicator identifies a user-defined opening range window, plots the high/low lines of that range, and visually alerts users when price breaks out above or below the range — with options to customize breakout repetitions, background fill, and alerts.
💡 What is an Open Range Breakout (ORB)?
The opening range represents the high and low established during the first few minutes of the trading session — usually 15 or 30 minutes. Many intraday strategies are based on the idea that breaking out of this initial range often signals strong momentum and trend continuation.
Traders often enter:
Long when price breaks above the range high.
Short when price breaks below the range low.
⚙️ How It Works
You define a session window (e.g., 09:30–09:45 EST).
The indicator tracks the high and low during this time.
Once the session ends, the high and low become your range breakout levels.
The indicator then:
Plots lines for visual clarity
Optionally fills background between the range
Triggers breakout signals if price crosses the levels
Provides alerts when breakouts occur
🛠️ Settings Breakdown
🔹 Session Settings
Range Session: Set your preferred window (e.g., 0930–0945). Can be premarket, first 30 mins, or any custom time.
Time zone: Use "America/New York" for EST (default) or change to "GMT+0" for international traders.
🔹 Breakout Settings
Bullish Breakout Signals: Number of allowed breakout alerts above the range.
Bearish Breakout Signals: Number of allowed breakout alerts below the range.
This prevents repeated alerts once breakout has been confirmed.
🔹 Display Settings
Show Background Fill: Fills area between high/low of the range for easier visual analysis.
Show Breakout Signals: Triangle markers plotted on the chart when breakouts happen.
Only Show Today’s Range: Keeps the chart clean by showing only the most current day’s range.
🔹 Color Settings
Range High/Low Line Colors: Choose any color for clarity.
Range Fill Color: Customize the highlight area for your chart style.
📊 Chart Features
Range High/Low Lines: Automatically plotted after range session ends.
Visual Fill Box: Optional background shading between the opening range.
Triangle Breakout Markers: Appear at the breakout candle.
Alerts: Can be used with TradingView’s alert system to notify you of breakouts in real-time.
🔔 Alerts
Two alert conditions are built in:
Bullish Breakout: Triggers when price breaks above the high of the range.
Bearish Breakout: Triggers when price breaks below the low of the range.
Example Alert Message:
📈 “Bullish Breakout above Open Range on AAPL!”
To activate:
Click “🔔 Alerts” on TradingView.
Set condition to this script.
Choose “ORB Breakout Up” or “ORB Breakout Down”.
Choose alert frequency and notification method.
⚠️ DISCLAIMER
ChartsAlgo tools are for informational and educational purposes only.
They are not financial advice or signals. Past performance does not guarantee future results. Use at your own risk and always implement solid risk management.
By using this indicator, you agree that you are solely responsible for any trades or decisions made based on the information provided.
PH, PD High/LowWhen applied, this script draws the previous day's high and low lines. It also plots the open price of the current 1-hour and 4-hour candles. Additionally, it displays the high and low of the previous 1-hour and 4-hour candles. Please note that 4-hour lines are shown only on the 15-minute and 4-hour charts, while 1-hour lines are shown only on the 5-minute and 1-hour charts.
Steez's Timeframe TableSimple timeframe indicator which can assist with daily bias or draw on liquidity.
Shows all timeframes from 1 minute to 1 day.
Shows close time and if the candle is currently bearish or bullish.
Boxed EMA + Volume PanelBoxed EMA - where Numbers show the price distance from each EMA.
RVOL
VOL percentage + contraction
Average 50 day volume
todays volume
✅ 200 EMA + RSI Pullback + Volume Surge (Full Strategy)200 EMA Trend + RSI Pullback + Volume Surge Strategy (Advanced)
📖 Strategy Description:
This strategy is designed to identify high-probability entries in trending markets using a combination of trend-following and momentum re-entry principles. It works effectively for intraday and swing trading on equities, indices, and crypto.
🔍 Entry Logic:
✅ Long Entry Conditions:
Trend Confirmation:
Price must be above the 200 EMA, indicating a bullish trend.
RSI Pullback:
RSI must drop below a defined level (default 40), indicating a healthy pullback in an uptrend.
Volume Surge:
Current volume must be above 1.5× the 20-period average, confirming strong buying activity.
Entry Triggered on Candle Close:
Ensures reliable confirmation instead of premature entries.
Short Entry Conditions (reverse logic):
Price below the 200 EMA
RSI above threshold (default 60)
Volume surge
Entry only after candle close
Exit Conditions:
Take Profit (TP):
Book profits at 2% move (configurable).
Stop Loss (SL):
Protect capital at 1% loss (configurable).
Trailing Stop Loss (TSL):
Follows the price with a 1.5% trail to lock in profits.
Time-Based Exit:
Closes position automatically after a fixed number of candles (default: 5 bars).
Alerts:
Built-in alerts notify when a Long or Short setup is triggered, allowing traders to act or automate execution.
Best Used On:
Timeframes: 15-minute, 1-hour, or Daily
Markets: NIFTY, BANKNIFTY, RELIANCE, INFY, BTC/USD, ETH/USD
Styles: Intraday, Swing, Trend-followinG
Ideal For:
Traders who follow pullback entries in strong trends
Users looking for automated alerts and exits
Strategies requiring volume confirmation + trend bias
WMA cross with filtered Signals [Dr.K.C.Prakash]WMA cross with filtered Signals
📌 Description
This indicator is designed to generate trend-filtered Buy and Sell signals based on the crossover of two Weighted Moving Averages (WMAs), with confirmation from a long-term EMA trend filter.
It helps traders avoid false signals in choppy markets by trading only in the direction of the broader trend.
✅ Features
Fast WMA (?) and Slow WMA (?)
Core crossover logic for detecting local trend shifts.
EMA Trend Filter (?)
Confirms overall trend direction.
Buy signals only occur when price is above the EMA ? (uptrend).
Sell signals only occur when price is below the EMA ? (downtrend).
Signal Markers on Chart
BUY label below bar for valid bullish crossovers.
SELL label above bar for valid bearish crossunders.
EMA 200 Line
Clearly plotted to visualize the trend filter level.
Customizable Length Inputs
Users can adjust Fast WMA, Slow WMA, and EMA filter length.
Lines for both WMAs and the EMA trend filter.
Signal labels on valid Buy/Sell events.
✅ Use Cases
Trend-following traders who want cleaner entries.
Avoiding counter-trend signals.
Works on any timeframe (but EMA 200 is best for larger trend context).
DTC AIO [India]✨ DTC AIO — The Ultimate All-in-One Market Intelligence Suite
DTC AIO isn’t just another indicator—it’s a complete market intelligence dashboard, purpose-built for Indian equities. Designed for traders who demand more than just signals, DTC AIO fuses professional-grade analytics, pattern recognition, and actionable insights into a single, visually stunning overlay.
✨ What Makes DTC AIO Unique?
All-in-One Dashboard: No more juggling multiple indicators. DTC AIO brings together volatility, volume, trend, momentum, pattern recognition, and even earnings data—right on your chart.
Dynamic Visuals: Modern, theme-adaptive tables and color-coded highlights make complex data instantly readable, whether you prefer dark or light mode.
Pattern Powerhouse: Go beyond the basics with advanced pattern detection—mini-coils, inside bars (with candle coloring!), pocket pivots, and strict shakeout logic.
Burst Ranker: Proprietary “Power Gauge” quantifies explosive price action (+5%, +10%, +17% days) and visualizes it with a unique scoring system.
Earnings Intelligence: See quarterly EPS and sales, with YoY and optional QoQ growth, in a clean, auto-updating table—no more hunting for fundamentals.
Sector/Industry Awareness: Instantly know the context of any stock with sector and industry tags, right on your chart.
Customizable Everything: From moving average types to table positions and text sizes, DTC AIO adapts to your workflow.
🚀 Feature Highlights
Main Metrics Table: ADR%, Relative Volume, 50D Avg Volume, U/D Ratio, and RS vs. custom benchmarks.
Momentum Table: See price distance from key EMAs and 52-week highs/lows, color-coded for clarity.
Pattern Recognition: Mini-coil, inside bar (with painted colored bar), pocket pivot, and shakeout detection—each with visual cues.
Burst Ranker Table: Track and score high-momentum days over your chosen lookback period.
Earnings & Sales Table: Quarterly EPS and sales, YoY and optional QoQ growth, all in one place.
Sector/Industry Table: Know the bigger picture at a glance.
🛠️ Built for the Demanding Trader
DTC AIO is engineered for those who want a true edge—combining technical, fundamental, and behavioral analytics in a single, elegant package. Whether you’re scanning for breakouts, tracking momentum, or analyzing earnings, DTC AIO is your all-in-one solution.
Ready to level up your trading? Add DTC AIO to your chart and experience the difference.
Tuga SupertrendDescription
This strategy uses the Supertrend indicator enhanced with commission and slippage filters to capture trends on the daily chart. It’s designed to work on any asset but is especially effective in markets with consistent movements.
Use the date inputs to set the backtest period (default: from January 1, 2018, through today, June 30, 2025).
The default input values are optimized for the daily chart. For other timeframes, adjust the parameters to suit the asset you’re testing.
Release Notes
June 30, 2025
• Updated default backtest period to end on June 30, 2025.
• Default commission adjusted to 0.1 %.
• Slippage set to 3 ticks.
• Default slippage set to 3 ticks.
• Simplified the strategy name to “Tuga Supertrend”.
Default Parameters
Parameter Default Value
Supertrend Period 10
Multiplier (Factor) 3
Commission 0.1 %
Slippage 3 ticks
Start Date January 1, 2018
End Date June 30, 2025
Multi Horizontal Lines 1000 Bars
This indicator is not my code, I have copied this from another user and extened the lines so they go back 1000 bars for back testing.
I use this indicator to trade Crude Oil and set the horizontal lines to 20 cents increments, 0.2 is 20 cents. You can change the horizontal lines to any price distance to suit your style of trading.
My idea is when price crosses over a horizontal line I will enter a trade long or short looking to secure 20 cents.
DaringBull Arvind MACD GAPS MA CrossoverTo generate buy and sell signals based on a combination of MACD crossover events and histogram behavior, particularly around the zero line. This is used to identify early momentum reversals for entry and exit points in the market.
📐 MACD Setup
Uses customizable MACD parameters (defaults: Fast = 12, Slow = 26, Signal = 9).
Calculates:
MACD Line
Signal Line
Histogram (difference between MACD and Signal)
✅ Buy Conditions
A buy signal is plotted when all three of the following occur:
MACD Line crosses above Signal Line (bullish crossover).
MACD Line is still below or near the zero line (< 0.05) – indicates early reversal from a bearish zone.
First green histogram bar appears (current bar is > 0 and previous was ≤ 0) – confirming momentum shift.
➡️ When these align, a blue circle is plotted below the price bar.
❌ Sell Conditions
A sell signal is plotted when all three of the following occur:
MACD Line crosses below Signal Line (bearish crossover).
MACD Line is still above or near the zero line (> -0.05) – indicates early weakness after a bullish move.
First red histogram bar appears (current bar is < 0 and previous was ≥ 0) – confirming loss of momentum.
➡️ When these align, a red circle is plotted above the price bar.
📊 Visualization
Buy/Sell markers appear on the price chart for visual entry/exit cues.
MACD line, Signal line, and Zero line are optionally plotted for deeper analysis.
📌 Key Insights
This script aims to enter trades early in trend reversals by using MACD in conjunction with histogram shifts near the zero line.
It's especially useful in gap trading, mean reversion, or breakout confirmation setups.
The optional plot toggle allows switching between overlay and non-overlay views.
MACD GAPS PivotLabels MAIt provides with dots where the MACD is either highest or lowest. Identify the gaps in the chart. Pivot labels are to read the numeric value of the candle high or low and an option to select moving averages
ALP AT + KAMA Crossover This indicator is a powerful combination of two adaptive trend-following concepts: the AlphaTrend by Kivanc Ozbilgic and the Kaufman's Adaptive Moving Average (KAMA), often credited to Perry Kaufman (with the specific implementation based on HPotter's interpretation of KAMA).
The primary goal of this indicator is to provide a robust trend detection and dynamic support/resistance system, adapting to market volatility.
How it Works:
AlphaTrend Component: The green/red line is the AlphaTrend. It dynamically adjusts to market volatility (using ATR) and momentum (using MFI or RSI, configurable). It provides faster signals for trend changes.
KAMA Component: The black line is the Kaufman's Adaptive Moving Average. KAMA is designed to filter out market noise during choppy periods and follow the price closely during trending periods, making it a smoother and more reliable long-term trend indicator.
Color-Coded Trend Zones: The AlphaTrend line is color-coded to visually represent the current market condition based on the price's position relative to both AlphaTrend and KAMA:
Strong Uptrend (Lime Green): Price is above both AlphaTrend and KAMA.
Strong Downtrend (Red): Price is below both AlphaTrend and KAMA.
Uptrend Uncertainty (Orange): Price is above KAMA but below AlphaTrend (suggests consolidation or weakening uptrend).
Downtrend Uncertainty (Blue): Price is below KAMA but above AlphaTrend (suggests consolidation or strengthening downtrend within a downtrend).
Gray: Default/unclassified state.
The underlying logic is based on:
Bullish Crossover (Potential Buy Signal): When the AlphaTrend line crosses above the KAMA line.
Bearish Crossover (Potential Sell Signal): When the AlphaTrend line crosses below the KAMA line.
These crossovers indicate a shift in the adaptive trend momentum.
Customization:
Users can customize various parameters in the indicator's settings, including:
AlphaTrend Multiplier and Common Period.
KAMA Lengths and Alpha values.
All the color codes for different trend zones and lines, allowing for full personalization of the visual output.
Disclaimer:
This indicator is for informational and educational purposes only and should not be considered as financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct your own thorough research and analysis before making any trading or investment decisions. This indicator is NOT a buy/sell/hold recommendation. Use it as a tool to aid your analysis, not as a sole basis for your trades.
ADT MSI TableKey Features:
1. Market Smith Methodology
Composite Rating: Combines price and volume strength
Relative Strength Rating: Measures stock performance vs benchmark
Base Pattern Detection: Identifies consolidation patterns
Breakout Signals: Detects valid breakouts with volume confirmation
2. Indian Market Adaptations
INR Currency Formatting: Displays prices in ₹, Lakhs, and Crores
Indian Benchmarks: NIFTY, SENSEX, NIFTY500 options
Market Cap Display: Formatted in Indian currency standards
Trading Hours Compatibility: Works with NSE/BSE data
3. Comprehensive Data Table
Real-time Metrics: Current price, daily change, volume analysis
Technical Indicators: MA positions, RS rating, composite rating
Performance Tracking: 3M, 6M, 12M returns
Signal Generation: BUY/SELL/HOLD recommendations
4. Visual Elements
Multiple Moving Averages: 10, 20, 50, 200 period MAs
Support/Resistance Levels: Dynamic pivot-based levels
Volume Analysis: Color-coded volume bars with surge detection
Trend Background: Color-coded background based on trend strength
Breakout Markers: Visual signals for valid breakouts
5. Customizable Parameters
Adjustable Periods: All timeframes can be modified
Table Positioning: 9 different table positions
Alert System: Customizable breakout and volume alerts
Display Options: Toggle any component on/off
6. Indian Market Specific
No Errors: Fully compatible with Indian stock data
Proper Formatting: All values in Indian currency format
Market Hours: Optimized for Indian trading sessions
Volume Calculations: Adapted for Indian market volume patterns
MFI Candles MTF TableMFI Candles + Multi-Timeframe Table | by julzALGO
This open-source script visualizes the Money Flow Index (MFI) in a new format — as candles instead of a traditional oscillator line. It provides a clean, volume-driven view of momentum and pressure, ideal for traders seeking more actionable and visual cues than a typical MFI plot.
What Makes It Unique:
• Plots "MFI Candles" — synthetic candles based on smoothed MFI values using a selected timeframe (default: 1D), giving a new way to read volume flow.
• Candles reflect momentum: green if MFI rises, red if it falls.
• Background turns red when MFI is overbought (≥ 80) or green when oversold (≤ 20).
Multi-Timeframe Strength Table:
• Displays MFI values from 15m, 1h, 4h, and 1D timeframes — all in one dashboard.
• Color-coded for quick recognition: 🔴 Overbought, 🟢 Oversold.
• Values are smoothed with linear regression for better clarity.
Custom Settings:
• MFI calculation length
• Smoothing factor
• Candle source timeframe
• Toggle table and OB/OS background
How to Use:
- Use MFI Candles to monitor momentum shifts based on money flow.
- Use the Multi-Timeframe Table to identify when multiple timeframes align — helpful for timing entries and exits.
- Watch the background for extreme conditions (OB/OS) that may signal upcoming reversals or pressure exhaustion.
Happy Trading!
BTC/Fiat Divergence & Spread Monitor📄 BTC/Fiat Divergence & Spread Monitor
This indicator visualizes Bitcoin’s relative performance across multiple fiat currencies and highlights periods of unusual divergence. It helps traders assess which fiat pairs BTC has outperformed or underperformed over a configurable lookback period and monitor the dynamic spread between the strongest and weakest pairs.
Features:
Relative Performance Matrix:
Ranks BTC returns in 6 fiat pairs, displaying a color-coded table of percentage changes and ranks.
Divergence Spread Oscillator:
Calculates the spread between the top and bottom performing pairs and normalizes this using a Z-Score. The oscillator helps identify when fiat pricing divergence is unusually high or compressed.
Dynamic Smoothing:
Optional Hull Moving Average smoothing to reduce noise in the spread signal.
Customizable Inputs:
Lookback period for percent change.
Z-Score normalization window.
Smoothing length.
Symbol selection for each fiat pair.
Visual Mode Toggle:
Switch between relative performance lines and spread oscillator view.
Potential Use Cases:
Fiat Rotation:
Identify which fiat is relatively weak or strong to optimize your exit currency when taking BTC profits.
Volatility Detection:
Use the spread Z-Score to detect periods of high divergence across fiat pairs, signaling macro FX volatility or dislocations.
Regime Analysis:
Track when fiat spreads are converging or expanding, potentially signaling market regime shifts.
Risk Management:
When divergence is extreme (Z-Score > +1), consider reducing position sizing or waiting for reversion.
Disclaimer:
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security or asset. Always do your own research and consult a qualified financial professional before making trading decisions. Use at your own risk.
Tip:
Experiment with different lookback periods and smoothing settings to adapt the indicator to your timeframe and trading style.
Volume Overbought/Oversold Zones📊 What You’ll See on the Chart
Red Background or Red Triangle ABOVE a Candle
🔺 Means: Overbought Volume
→ Volume on that bar is much higher than average (as defined by your settings).
→ Suggests strong activity, possible exhaustion in the trend or an emotional spike.
→ It’s a warning: consider watching for signs of reversal, especially if price is already stretched.
Green Background or Green Triangle BELOW a Candle
🔻 Means: Oversold Volume
→ Volume on that bar is much lower than normal.
→ Suggests the market may be losing momentum, or few sellers are left.
→ Could signal an upcoming reversal or recovery if confirmed by price action.
Orange Line Below the Candles (Volume Moving Average)
📈 Shows the "normal" average volume over the last X candles (default is 20).
→ Helps you visually compare each bar’s volume to the average.
Gray Columns (Actual Volume Bars)
📊 These are your regular volume bars — they rise and fall based on how active each candle is.
🔍 What This Indicator Does (In Simple Words)
This indicator looks at trading volume—which is how many shares/contracts were traded in a given period—and compares it to what's considered "normal" for recent history. When volume is unusually high or low, it highlights those moments on the chart.
It tells you:
• When volume is much higher than normal → market might be overheated or experiencing a buying/selling frenzy.
• When volume is much lower than normal → market might be quiet, potentially indicating lack of interest or indecision.
These conditions are marked visually, so you can instantly spot them.
💡 How It Helps You As a Trader
1. Spotting Exhaustion in Trends (Overbought Signals)
If a market is going up and suddenly volume spikes way above normal, it may mean:
• The move is getting crowded (lots of buyers are already in).
• A reversal or pullback could be near because smart money may be taking profits.
Trading idea: Wait for high-volume up bars, then look for price weakness to consider a short or exit.
2. Identifying Hidden Opportunities (Oversold Signals)
If price is falling but volume drops unusually low, it might mean:
• Panic is fading.
• Sellers are losing energy.
• A bounce or trend reversal could happen soon.
Trading idea: After a volume drop in a downtrend, watch for bullish price patterns or momentum shifts to consider a buy.
3. Confirming or Doubting Breakouts
Volume is critical for confirming breakouts:
• If price breaks a key level with strong volume, it's more likely to continue.
• A breakout without volume could be a fake-out.
This indicator highlights volume surges that can help you confirm such moves.
📈 How to Use It in Practice
• Combine it with candlestick patterns, support/resistance, or momentum indicators.
• Use the background colors or shapes as a visual cue to pause and analyze.
• Adjust the sensitivity to suit fast-moving markets (like crypto) or slow ones (like large-cap stocks).
Gold Power Hours StrategyStrategy: XAUUSD Gold Power Hours
(ideal for Tuesday to Thursday, 8:00–11:30 am NY and 1:30–3:30 pm NY)
Strategy Rules
1️⃣ Timeframe
Trade on 15 min and 1 hour charts
Confirm with the 4 h chart (trend direction)
2️⃣ Entry Conditions
✅ Main trend (confirmation):
50-period Simple Moving Average (SMA50) on the 4h chart
price above = only look for longs
price below = only look for shorts
✅ Momentum (confirmation):
RSI(14) on the 15 min chart
above 55 = bullish strength
below 45 = bearish strength
✅ Volume (validation):
Increasing volume (bar higher than previous) during NY open (8–9 am) or at 1:30 pm
confirms institutional interest
3️⃣ Entry Setup
🟢 Longs (buys):
Price above 4h SMA50
15 min RSI > 55
break of previous resistance (e.g., last hour’s high)
rising volume on the entry candle
👉 Enter on breakout + 2 pips of margin
🔴 Shorts (sells):
Price below 4h SMA50
15 min RSI < 45
break of previous support
rising volume on the entry candle
👉 Enter on breakout – 2 pips of margin
4️⃣ Trade Exits / Management
✅ Take profit (TP):
2 × the risk taken (e.g., SL 20 pips → TP 40 pips)
or the next significant support/resistance on H1
✅ Stop loss (SL):
below the last impulse candle (for longs)
or above the last impulse candle (for shorts)
minimum 15–20 pips to avoid stop hunts
✅ Break-even
move SL to entry point once +15 pips profit is reached
5️⃣ Additional Filters
✅ Avoid trading during red news (NFP, FOMC) until the first spike finishes.
✅ Avoid trading outside these windows:
8:00–11:30 am NY
1:30–3:30 pm NY
-----------
Estrategia: XAUUSD Gold Power Hours
(ideal para martes a jueves, 8:00 – 11:30 am NY y 1:30 – 3:30 pm NY)
Reglas de la estrategia
1️⃣ Marco temporal
Operar en gráficos de 15 min y 1 hora
Confirmaciones con gráfico de 4 h (dirección de tendencia)
2️⃣ Condiciones de entrada
✅ Tendencia principal (confirmación):
Media Móvil Simple de 50 (SMA50) en gráfico 4h
precio por encima = solo buscar compras
precio por debajo = solo buscar ventas
✅ Momentum (confirmación):
RSI(14) en gráfico de 15 min
sobre 55 = fuerza alcista
debajo de 45 = fuerza bajista
✅ Volumen (validación):
Volumen creciente (barra más alta que la anterior) en la apertura NY (8–9 am) o a la 1:30 pm
confirma que hay interés institucional
3️⃣ Setup de entrada
🟢 Largos (compras):
Precio arriba de SMA50 4h
RSI 15 min > 55
rompimiento de resistencia previa (ej. alto de la última hora)
volumen creciente en la vela de entrada
👉 Entrada en rompimiento + 2 pips de margen
🔴 Cortos (ventas):
Precio debajo de SMA50 4h
RSI 15 min < 45
rompimiento de soporte previo
volumen creciente en la vela de entrada
👉 Entrada en rompimiento – 2 pips de margen
4️⃣ Salidas / gestión del trade
✅ Take profit (TP):
2 × riesgo asumido (por ejemplo, SL 20 pips → TP 40 pips)
o siguiente soporte/resistencia mayor en H1
✅ Stop loss (SL):
debajo de la última vela de impulso (para compras)
o encima de la última vela de impulso (para ventas)
mínimo 15–20 pips para evitar barridas
✅ Break-even
mover el SL a punto de entrada cuando se alcance +15 pips de ganancia
5️⃣ Filtros adicionales
✅ Evita operar durante noticias rojas (NFP, FOMC) hasta que el primer spike termine.
✅ Evita operar fuera de las ventanas:
8:00 – 11:30 am NY
1:30 – 3:30 pm NY
Day of Week HighlighterThis Indicator Helps Indian Traders or Any Traders to see Charts Days Highlights in their Charts..
AshishBediSPLThis Pine Script indicator, "AshishBediSPL," is designed to help you visualize and analyze the combined premium of a short straddle strategy using Call and Put options. It fetches real-time and historical data for your chosen index or stock (NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY, SENSEX, BANKEX, or RELIANCE) and a specified expiry date and strike price.
You can opt to view the combined premium of both Call and Put options, or analyze just the Call or Put premium individually. The indicator then allows you to overlay and generate trading signals based on a selection of popular technical indicators, including:
EMA Crossover: Identify trend changes with configurable fast and slow Exponential Moving Averages.
Supertrend: Determine the prevailing trend direction and potential reversal points.
VWAP (Volume Weighted Average Price): Track the average price traded based on volume, resetting daily.
RSI (Relative Strength Index): Gauge momentum and potential overbought/oversold conditions (note: RSI buy/sell logic is set to trigger on overbought/oversold levels, which can be interpreted for contrarian or trend-following strategies depending on your approach).
SMA (Simple Moving Average): Smooth price data to identify support and resistance.
The indicator plots the combined premium as a dynamic line, changing color based on its opening and closing values. Buy and Sell signals are clearly marked on the chart, and you can set up alerts to notify you of these trading opportunities.
This tool is ideal for traders looking to monitor straddle premiums and integrate multiple indicator-based signals into their analysis.
CLMM Vault策略回测 (专业版) v5Explanation of the CLMM (Concentrated Liquidity - Market Maker) Strategy Backtesting Model Developed for the Sui Chain Vaults Protocol
Why Are We Doing This?
Conducting strategy backtesting is a crucial step for us to make data-driven decisions, validate the feasibility of strategies, and manage potential risks before committing real funds and significant development resources. A strategy that appears to have a high APY may perform entirely differently once real-world frictional costs (such as rebalancing fees and slippage) are deducted. The goal of this backtesting model is to quickly and cost-effectively identify which strategy parameter combinations have the potential to be profitable and which ones pose risks before formal development, thereby avoiding significant losses and providing data support for the project's direction.
Core Features of the Backtesting Model
We have built a "pro version" (v5) strategy simulator using TradingView's Pine Script. It can quickly simulate the core performance of our auto-compounding and rebalancing Vaults on historical price data, with the following main features:
Auto-Compounding: Continuously adds the generated fee income to the principal based on the set profit range (e.g., 0.01%).
Auto-Rebalancing: Simulates automatic rebalancing actions when the price exceeds the preset profit range and deducts the corresponding costs.
Smart Filtering Mechanism: To make the simulation closer to our ideal "smart" decision-making, it integrates three freely combinable filtering mechanisms:
Buffer Zone: Tolerates minor and temporary breaches of the profit range to avoid unnecessary rebalancing.
Breakout Confirmation: Requires the price to be in the trigger zone for N consecutive candles to confirm a breakout, filtering out market noise from "false breakouts."
Time Cooldown: Enforces a minimum time interval between two rebalances to prevent value-destroying high-frequency trading in extreme market conditions.
Important: Simplifications and Assumptions of the Model
To quickly prototype and iterate on the TradingView platform, we have made some key simplifications to the model.
A fully accurate backtest would require a deep simulation of on-chain liquidity pools (Pool Pair), calculating the price impact (Slippage) and impermanent loss (IL) caused by each rebalance on the pool. Since TradingView cannot access real-time on-chain liquidity data, we have made the following simplifications:
Simplified Rebalancing Costs: Instead of simulating real transaction slippage, we use a unified input parameter of single rebalance cost (%) to "bundle" and approximate the total of Gas fees, slippage, and realized impermanent loss.
Simplified Fee Income: Instead of calculating fees based on real-time trading volume, we directly input an average fee annualized return (%) as the core income assumption for our strategy.
How to Use and Test
Team members can load this script and test different strategies by adjusting the input parameters on the panel. The most critical parameters include: position profit range, average fee annualized return, single rebalance cost, and the switches and corresponding values of the above three smart filters.
Previous 2 Days High/LowCan you give me a summary of this indicator
The "Previous 2 Days High/Low" indicator, written in Pine Script v5 for TradingView, plots horizontal lines representing the combined high and low prices of the previous two trading days on a chart. Here's a summary of its functionality, purpose, and key features:
Purpose
The indicator helps traders identify significant price levels by displaying the highest high and lowest low from the previous two days, which can act as potential support or resistance levels. These levels are plotted as lines that extend across the current trading day, making it easier to visualize key price zones for trading decisions.
Key Features
Calculates Combined High and Low:
Retrieves the high and low prices of the previous day and the day before using request.security on the daily timeframe ("D").
Computes the combined high as the maximum of the two days' highs and the combined low as the minimum of the two days' lows.
Dynamic Line Plotting:
Draws two horizontal lines:
Red Line: Represents the combined high, plotted at the highest price of the previous two days.
Green Line: Represents the combined low, plotted at the lowest price of the previous two days.
Lines are created at the start of a new trading day and extended to the right edge of the chart using line.set_x2, ensuring they span the entire current day.
Labels for Clarity:
Adds labels to the right of the chart, displaying the exact price values of the combined high ("Combined High: ") and combined low ("Combined Low: ").
Labels are updated to move with the lines, maintaining alignment at the current bar.
Clutter Prevention:
Deletes old lines and labels at the start of each new trading day to avoid overlapping or excessive objects on the chart.
Dynamic Requests:
Uses dynamic_requests=true in the indicator() function to allow request.security calls within conditional blocks (if ta.change(time("D"))), enabling daily data retrieval within the script's logic.