Adaptive MVRV & RSI Strategy V6 (Dynamic Thresholds)Strategy Explanation
This is an advanced Dollar-Cost Averaging (DCA) strategy for Bitcoin that aims to adapt to long-term market cycles and changing volatility. Instead of relying on fixed buy/sell signals, it uses a dynamic, weighted approach based on a combination of on-chain data and classic momentum.
Core Components:
Dual-Indicator Signal: The strategy combines two powerful indicators for a more robust signal:
MVRV Ratio: An on-chain metric to identify when Bitcoin is fundamentally over or undervalued relative to its historical cost basis.
Weekly RSI: A classic momentum indicator to gauge long-term market strength and identify overbought/oversold conditions.
Dynamic, Self-Adjusting Thresholds: The core innovation of this strategy is that it avoids fixed thresholds (e.g., "sell when RSI is 70"). Instead, the buy and sell zones are dynamically calculated based on a long-term (2-year) moving average and standard deviation of each indicator. This allows the strategy to automatically adapt to Bitcoin's decreasing volatility and changing market structure over time.
Weighted DCA (Scaling In & Out): The strategy doesn't just buy or sell a fixed amount. The size of its trades is scaled based on conviction:
Buying: As the MVRV and RSI fall deeper into their "undervalued" zones, the percentage of available cash used for each purchase increases.
Selling: As the indicators rise further into "overvalued" territory, the percentage of the current position sold also increases.
This creates an adaptive system that systematically accumulates during periods of fear and distributes during periods of euphoria, with the intensity of its actions directly tied to the extremity of market conditions.
Oscillators
Average True Range %The ATR% oscillator measures market volatility as a percentage of the closing price, smooths it using a chosen method (RMA, SMA, EMA, or WMA), and compares it to the threshold levels of 0.95% and 1.20%.
EDWARDS 3MIN DOW STRATEGYSqueeze Momentum Strategy with EMA780 Trend Filter, ATR-SL, PT, EMA5 Exit Filter, and 3:57 PM Close
RSI, CCI, ADX Panel (Custom TF for Each)RSI, CCI, ADX Panel (Custom TF for Each)
This indicator combines RSI, CCI, and ADX into a single panel, allowing traders to view three key momentum/trend signals together. Each indicator can be calculated on its own custom timeframe, making it useful for multi-timeframe analysis.
Features:
RSI (Relative Strength Index): Measures momentum, useful for identifying overbought/oversold conditions.
CCI (Commodity Channel Index): Detects cyclical movements and potential reversals.
ADX (Average Directional Index): Evaluates trend strength without regard to direction.
Independent timeframe selection for RSI, CCI, and ADX.
Distinct colors for each indicator (RSI = Blue, CCI = Orange, ADX = Purple).
Single consolidated panel for compact analysis.
This tool is designed to give a multi-perspective view of market strength, momentum, and trend in one place.
Becak I-series: Indicator Floating Panels v.80Becak I-series: Floating Panels v.80th (Indonesia Independence Days)
What it does:
This indicator creates three floating overlay panels that display MACD, RSI, and Stochastic oscillators directly on your price chart. Unlike traditional separate panes, these panels hover over your chart with customizable positioning and transparency, providing a clean, space-efficient way to monitor multiple technical indicators simultaneously.
When to use:
When you need to monitor momentum, trend strength, and overbought/oversold conditions without cluttering your workspace
Perfect for traders who want quick visual access to multiple oscillators while maintaining focus on price action
Ideal for any timeframe and asset class (stocks, crypto, forex, commodities)
How it works:
The script calculates standard MACD (12,26,9), RSI (14), and Stochastic (14,3,3) values, then renders them as floating panels with:
MACD Panel: Shows MACD line (blue), Signal line (orange), and histogram (green/red bars)
RSI Panel: Displays RSI line (purple) with overbought (70) and oversold (30) reference levels
Stochastic Panel: Shows %K (blue) and %D (orange) lines with optional buy/sell signals and highlighted overbought/oversold zones
Customization options:
Position: Choose Top, Bottom, or Auto-Center placement
Size: Adjust panel height (15-35% of chart) and spacing between panels
Positioning: Fine-tune vertical center offset and horizontal positioning
Appearance: Toggle panel backgrounds and adjust transparency (50-95%)
Parameters: Modify all indicator lengths and overbought/oversold levels
Signals: Enable/disable Stochastic crossover signals
Display: Control lookback period (30-100 bars) and right margin spacing
Universal compatibility: Works seamlessly across all asset types with automatic range detection and scaling.
DIRGAHAYU HARI KEMERDEKAAN KE 80 - INDONESIA ... MERDEKA!!!!!
Institution Accumulation/DistributionLeveraging the Williams%R oscillator, the script has been optimized to pick out key turning point in the market specifically at Resistance (Overbought) or Support (Oversold)
The algo has been programmed to print both buy and sell alerts at extremes/when conditions flip eg a long position will be closed simultaneously opening a short position above resistance.
Best used as a scalping tool targeting 30m and below works well with currency pairs
RSI Bands With RSI - ATR Trend LineRSI Bands With RSI - ATR Trend Line (Smoothed Baseline)
Overview
A trend-following tool that fuses RSI-based regime detection with a smoothed baseline and ATR bands. Trend line aims to stay with the RSI move, cut random noise, and flip cleanly. The line draws green in bulls and red in bears; signals fire only on candle close confirmed flips.
Key Features
✅ Dynamic Trend Detection
RSI (>50 / <50) sets bullish/bearish regime
Smoothed baseline adapts to price while damping whipsaw
ATR-based bands expand/contract with volatility
✅ Precise Signal Generation
Buy when trend flips to bullish (close confirms above the upper band)
Sell when trend flips to bearish (close confirms below the lower band)
Flips require a real band break → fewer false transitions
✅ Visual Clarity
Green line = bullish trend, Red line = bearish trend
✅ Customizable Settings
RSI Length (default 14)
Baseline Smoothing (default 26)
ATR Length (default 14)
ATR Multiplier (default 1.4)
Toggles for Signals and Labels
✅ TradingView Alerts
Built-in Buy & Sell alerts (recommend Once per bar close)
How It Works
Algorithm Logic
RSI Regime: RSI above/below 50 sets bull/bear. At exactly 50, the prior target is carried forward.
Target & Smoothing: A per-bar target is built from the bar’s range and RSI, then smoothed with an EMA-style filter (Baseline Smoothing) to form the baseline.
ATR Bands: Upper/Lower = baseline ± (ATR × Multiplier).
Flip Rule (Supertrend-like):
Close above upper band → bullish flip; trend line tracks the lower band (green).
Close below lower band → bearish flip; trend line tracks the upper band (red).
Between bands → prior trend line persists.
Signals/Alerts: A flip event generates a Buy/Sell signal and alert.
Best Use Cases
Trending Markets – Built to ride sustained moves in either direction.
Multiple Timeframes – Works from intraday to higher TFs; higher TFs usually produce cleaner flips.
Various Asset Classes – Forex, Indices, Stocks, Crypto, Commodities; ATR adapts to volatility.
Recommended Settings
Conservative (Lower Frequency)
RSI 14–20 • Baseline 34 • ATR 14–21 • Multiplier 1.8–2.2
Use for swing/position trading; calmer signal stream.
Balanced (Default)
RSI 14 • Baseline 26 • ATR 14 • Multiplier 1.4
Good general-purpose setup for swing or active intraday.
Aggressive (Higher Frequency)
RSI 10–14 • Baseline 13–21 • ATR 10–14 • Multiplier 1.1–1.3
For scalping/day trading; earlier but noisier flips.
🎨 Visual Elements
RSI Smooth baseline (soft blue)
Upper/Lower ATR Bands (faint blue)
Trend Line (Bull/Bear) drawn only in the active regime (green/red)
Optional Buy/Sell arrows and labels
⚠️ Important Notes
Signals on Close
Flips confirm on bar close. Intrabar crosses can revert; wait for confirmation.
Risk Management
Size positions appropriately; many traders trail beyond the opposite band/line.
Factor in spread, slippage, sessions, and news.
Confirmation & Testing
Combine with structure/volume/HTF bias if desired.
Backtest and forward-test per instrument and timeframe.
For research/education only; not financial advice.
Ultimate Bot v5 (Full Visual + Reversal + Sustained Signals)Ultimate Bot v5 is a powerful, all-in-one Pine Script strategy designed for traders who want both clarity and precision in their charts. It combines classic momentum indicators, volatility filters, and reversal logic to highlight high-probability trade opportunities.
🔹 Key Features
Full Visual Mode – Clean and easy-to-read buy/sell markers with large arrows and labels.
EMA Trend Detection – Fast & slow EMA crossovers for trend direction.
RSI + MACD Confirmation – Confirms entries with momentum & strength checks.
Reversal Alerts – Detects sharp drops or spikes for rebound/reversal plays.
Sustained Signal Mode – Highlights stronger continuation trends, not just short-term flips.
ADX Strength Filter (optional) – Filters out weak/noisy signals during sideways markets.
ATR Dynamic Positioning – Arrows adapt to volatility so they’re always visible.
Custom Alerts – Works with TradingView alerts for buy, sell, and reversal signals.
🔹 Why Use It?
This bot is designed to help traders:
✅ Spot early reversals and potential bounce opportunities
✅ Confirm strong momentum moves with multi-indicator checks
✅ Avoid false signals in choppy markets
✅ Trade with confidence using visual clarity
TrendPilot AI v2 — Adaptive Trend Day Trading StrategyOverview
TrendPilot AI v2 is a structured, rules-based day trading strategy that identifies and follows market momentum using a sophisticated blend of technical indicators. Optimized for 15-minute and higher timeframes on high market cap cryptocurrencies (AAVE, SOL, ETH, BCH, BTC) to minimize manipulation risks, it adapts to changing market conditions with dynamic risk management and controlled re-entry logic to maximize trend participation while minimizing noise.
Core Logic
Multiple EMA Trend Confirmation — Uses three Exponential Moving Averages (fast, medium, slow) to detect robust bullish, bearish, or neutral trends, ensuring trades align with the prevailing market direction.
ADX Momentum Filter — Employs an ADX-based filter to confirm strong trends, avoiding entries in choppy or low-momentum markets.
Smart Entry Filter — Optional ATR-based buffer (period 14, multiplier 1.5) around the fast EMA prevents entries at overextended prices, enhancing trade precision.
Flexible Exit System — Offers multiple exit options: fixed take-profit (default 1.7 offset), trend-reversal exits, or ATR-based trailing stops (period 14, multiplier 2.0), with secure modes requiring candle closes for confirmation to gain Max Profit.
Controlled Re-Entry Logic — Allows re-entries after take-profit or price-based stop-loss with configurable wait periods (default 6 bars), max attempts (default 2), and EMA touch requirements (fast, medium, or slow).
State-Aware Risk Management — Tracks trend states and recent exits to adapt entries, with daily trade limits (default 5 long/short) and loss cooldowns (default 2 stop-losses) for disciplined trading.
How to Use & Configuration
Markets & Timeframes
Works with high market cap cryptocurrencies (AAVE, SOL, ETH, BCH, BTC).
Optimized for intraday charts (15m–4h) but adaptable to higher timeframes (e.g., 1h, 4h).
Trade Direction Settings
Dual Trades — Trades both long and short, quickly re-aligning after trend reversals.
Long Only — Ignores bearish signals, ideal for bullish markets or strong uptrends.
Short Only — Ignores bullish signals, suited for bearish markets or downtrends.
Risk Management Settings
Stop Loss Types
Trend Reversal — Closes positions when an opposite trend signal is confirmed (default).
Fixed Offset — Static stop at 3.5 offset from entry price (adjustable).
ATR Based — Dynamic trailing stop using ATR (period 14, multiplier 2.0), adjusting to market volatility.
Secure SL Mode — Optional setting to trigger price-based stops only on candle closes, reducing false exits.
Maximum recommended risk per trade is 5–10% of account equity.
Trade size is configurable (default 20 units) to match individual risk appetite.
Take Profit Options
Fixed Offset — Predefined target at 1.7 offset from entry (adjustable, e.g., 2.5 for SOL).
Secure TP Mode — Exits only when a candle closes beyond the target, ensuring reliable profit capture.
Trend Reversal — Exits on opposite trend signals when fixed TP is disabled, ideal for riding longer trends.
Trade Management Controls
Smart Entry Filter — Optional ATR-based buffer (period 14, multiplier 1.5) prevents chasing overextended prices.
Max Re-Entries — Limits continuation trades per trend cycle (default 2).
Daily Trade Limits — Caps long/short trades per day (default 5 each) for disciplined trading.
Daily Loss Cooldown — Pauses trading after a set number of stop-losses (default 2) per day.
Max Bars in Trade — Closes positions after a set duration (default 1440 bars) to prevent stale trades.
Configuration Steps
Apply the strategy to your chosen symbol (e.g., AAVE/USDT, SOL/USDT) and timeframe (15m or higher).
Select Trade Direction mode (Dual, Long Only, or Short Only).
Set Stop Loss (Trend Reversal, Fixed Offset, or ATR Based) and Take Profit (fixed or trend-reversal).
Adjust Smart Entry Filter, Max Re-Entries, Daily Limits, and Loss Cooldown as needed.
Test across multiple market conditions using the performance panel (top-right, showing Total Trades, Wins, Losses, Win Rate).
Enables automated trading via webhook integration with platforms like Binance Futures.
Set up alerts for long/short entries (🟢 Long, 🔴 Short) and exits (🎯 Max TP, 🛑 Max SL, 🚨 Force Exit).
Backtesting Guidance
Use realistic commission (default 0.01%) and slippage (default 2 ticks) matching your broker and instrument.
Validate performance over long historical periods (e.g., 3–6 months) to ensure >100 trades across different market regimes.
Avoid curve-fitting by testing on multiple high market cap coins (AAVE, SOL, ETH, BCH, BTC) and avoiding over-optimization.
EMA and ATR parameters are set to balanced, industry-standard values for realistic backtesting.
Best Practices, Defaults & Disclaimer
Best Practices
Use consistent and conservative position sizing (default 20 units).
Match commission and slippage to your broker’s actual rates.
Enable secure TP/SL modes for entries and exits to reduce false signals.
Test across different symbols, timeframes, and market phases before live trading.
Keep parameters simple to avoid overfitting.
Default Settings (Recommended Starting Point)
Initial Capital: $10,000
Order Size: Fixed, 20 units
Commission: 0.01%
Slippage: 2 ticks
Take Profit Offset: 1.7 (adjustable, e.g., 2.5 for SOL)
Stop Loss Type: Trend Reversal (default), Fixed Offset (3.5), or ATR Based (period 14, multiplier 2.0)
Smart Entry Filter: ATR period 14, multiplier 1.5 (optional)
Max Re-Entries: 2 per trend cycle
Daily Trade Limits: 5 long, 5 short
Daily Loss Cooldown: 2 stop-losses
Max Bars in Trade: 1440 bars
Subscription Information
TrendPilot AI v2 is an invite-only strategy, accessible only to approved subscribers.
Benefits include full access to all features, priority support, and regular updates.
Access is limited to ensure a high-quality user experience.
Compliance Status
No functional warnings in the script.
The script uses closed candle logic, ensuring no repainting or lookahead issues.
Designed for realistic backtesting with a $10,000 account and sustainable risk (≤5–10% per trade).
Disclaimer
This strategy is intended for educational and analytical purposes only. Trading involves substantial risk, and past performance does not guarantee future results. You are solely responsible for your own trading decisions and risk management.
Developed by: TrendPilotAI Team
For questions, setup guidance, or enhancement suggestions, contact TrendPilotAI Team via TradingView.
Nifty Power -> Nifty 50 chart + EMA of RSI + avg volume strategyThis strategy works in 1 hour candle in Nifty 50 chart. In this strategy, upward trade takes place when there is a crossover of RSI 15 on EMA50 of RSI 15 and volume is greater than volume based EMA21. On the other hand, lower trade takes place when RSI 15 is less than EMA50 of RSI 15. Please note that there is no stop loss given and also that the trade will reverse as per the trend. Sometimes on somedays, there will be no trades. Also please note that this is an Intraday strategy. The trade if taken closes on 15:15 in Nifty 50. This strategy can be used for swing trading. Some pine script code such as supertrend and ema21 of close is redundant. Try not to get confused as only EMA50 of RSI 15 is used and EMA21 of volume is used. I am using built-in pinescript indicators and there is no special calculation done in the pine script code. I have taken numbars variable to count number of candles. For example, if you have 30 minuite chart then numbars variable will count the intraday candles accordingly and the same for 1 hour candles.
Currency Strength v3.0Currency Strength v3.0
Summary
The Currency Strength indicator is a powerful tool designed to gauge the relative strength of major and emerging market currencies. By plotting the True Strength Index (TSI) of various currency indices, it provides a clear visual representation of which currencies are gaining momentum and which are losing it. This indicator automatically detects the currency pair on your chart and highlights the corresponding strength lines, simplifying analysis and helping you quickly identify potential trading opportunities based on currency dynamics.
Key Features
Comprehensive Currency Analysis: Tracks the strength of 19 currencies, including major pairs and several emerging market currencies.
Automatic Pair Detection: Intelligently identifies the base and quote currency of the active chart, automatically highlighting the relevant strength lines.
Dynamic Coloring: The base currency is consistently colored blue, and the quote currency is colored gold, making it easy to distinguish between the two at a glance.
Non-Repainting TSI Calculation: Uses the True Strength Index (TSI) for smooth and reliable momentum readings that do not repaint.
Customizable Settings: Allows for adjustment of the fast and slow periods for the TSI calculation to fit your specific trading style.
Clean Interface: Features a minimalist legend table that only displays the currencies relevant to your current chart, keeping your workspace uncluttered.
How It Works
The indicator pulls data from major currency indices (like DXY for the US Dollar and EXY for the Euro). For currencies that don't have a dedicated index, it uses their USD pair (e.g., USDCNY) and inverts the calculation to derive the currency's strength relative to the dollar. It then applies the True Strength Index (TSI) to this data. The TSI is a momentum oscillator that is less volatile than other oscillators, providing a more reliable measure of strength. The resulting values are plotted on the chart, allowing you to see how different currencies are performing against each other in real-time.
How to Use
Trend Confirmation: When the base currency's line is rising and above the zero line, and the quote currency's line is falling, it can confirm a bullish trend for the pair. The opposite would suggest a bearish trend.
Identifying Divergences: Look for divergences between the currency strength lines and the price action of the pair. For example, if the price is making higher highs but the base currency's strength is making lower highs, it could signal a potential reversal.
Crossovers: A crossover of the base and quote currency lines can signal a shift in momentum. A bullish signal occurs when the base currency line crosses above the quote currency line. A bearish signal occurs when it crosses below.
Overbought/Oversold Levels: The horizontal dashed lines at 0.5 and -0.5 can be used as general guides for overbought and oversold conditions, respectively. Strength moving beyond these levels may indicate an unsustainable move that is due for a correction.
Settings
Fast Period: The short-term period for the TSI calculation. Default is 7.
Slow Period: The long-term period for the TSI calculation. Default is 15.
Index Source: The price source used for the calculations (e.g., Close, Open). Default is Close.
Base Currency Color: The color for the base currency line. Default is Royal Blue.
Quote Currency Color: The color for the quote currency line. Default is Goldenrod.
Disclaimer
This indicator is intended for educational and analytical purposes only. It is not financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct your own research and risk management before making any trading decisions.
Q-Stochastic RSI (0–100) — RSI Divergence Addedtesting divergence, and momentum detection with both RSI raw and stoch rsi, pivot point always shown on RAW RSI
RSI + MACD Combo (sajadbagheri)The "RSI+MACD Persian Combo" integrates two classic oscillators with smart normalization. It detects overbought/oversold zones, MACD/RSI convergences, and highlights high-probability reversals using Z-Score scaling. Customizable alerts provide trade-ready signals.
Created by: Sajad Bagheri
SatoshiMultiFrame RSI SatoshiMultiFrame 📈
SatoshiMultiFrame is an advanced, multi-timeframe version of the RSI indicator, designed to look and feel like the built-in TradingView RSI — but with more customization options and professional visual enhancements.
🎯 Features
Multi-Timeframe (MTF) Support – choose any timeframe for RSI calculation.
Customizable RSI Line – change color, thickness, and style (Solid / Dashed / Dotted).
Editable 30 / 50 / 70 Bands – fully customizable in the Style tab.
Smooth Gradient Fill for OB/OS Zones:
🟢 Green shading above Overbought (70)
🔴 Red shading below Oversold (30)
Customizable background for the entire panel.
No repainting – stable and reliable data.
⚙️ Inputs
RSI Length – default 14.
Source – select the price source (Close, Open, etc.).
RSI Timeframe – pick a higher or lower timeframe.
RSI Line Style – choose between Solid / Dashed / Dotted.
Dash Period & Dash Length – adjust the look of dashed lines.
🎨 Style Tab :
Change RSI line color, thickness, and optional MA line.
Edit colors and styles of 30 / 50 / 70 bands.
Enable/disable and recolor OB/OS gradient fills.
Adjust background color and transparency.
📌 How to Use :
Add the indicator to your chart.
In Inputs, set your preferred timeframe, RSI length, and line style.
In Style, adjust colors, thickness, and gradient effects to your preference.
Use the 50 line as a trend reference and monitor RSI behavior in OB/OS zones.
⚠️ Disclaimer: This tool is for educational purposes only and should not be considered financial advice. Always practice proper risk management.
BOOM Deal by PK - Complete Trading SystemTesting this also. will rectify and modify further. just test and give me feedback.
Jitendra: MTF AIO Technical Indicators with Trend ▲▼Jitendra: MTF AIO Technical Indicators with Trend ▲▼
Why We Designed this Indicator
we build this indicator to Analysis Multi-timeframe Technical Data in dashboard to get Better and Quick Data in which Time Frame where it is in Momentum or in Swing,
By combining multiple technical indicators with trend direction arrows and displaying them in a customizable table.
It also optionally plots some indicators EMA, VWAP, Supertrend, Bollinger Bands on the chart.
Traders who want a compact technical summary across multiple timeframes without switching charts.
Quickly assess trend strength, momentum, divergence, volume pressure in one glance.
Combine with price action to make higher-confidence entries/exits.
How to Use This Indicator
In setting there are Two parts
First Part - for Plot Multi EMA, Bollinger Band, Supertrend 10,2 & 10, 3 factorial
Second Part- To get Data on Table for Quick Analysis
Chart Plots With Enable Disable Toggle in Setting
VWAP (optional)
4 EMAs (lengths configurable)
Bollinger Bands (optional)
Two separate Supertrend indicators with custom ATR period and multiplier
Indicators Data in Table
For each selected timeframe:
VWAP position (price above/below)
MACD value + trend arrow
MACD Histogram (optional)
RSI value + arrow (rising/falling)
ADX value + arrow (strength rising/falling)
+DI / -DI values + trend arrows
RSI Divergence detection (regular + hidden)
EMA levels (up/down relative to price)
EMA crossover (EMA1 vs EMA2 arrow)
Stochastic %K
Volume Matrix:
Raw volume
20 SMA volume
Volume % change from SMA
Multi-Timeframe Support
Current timeframe + up to 5 user-defined timeframes (e.g., 1H, 4H, Daily, Weekly, Monthly)
Customizable Toggles
Enable/disable any indicator
Choose which EMAs to show
Show/hide trend arrows
Choose which volume metrics to display
Choose table position (top_left, top_right, etc.)
Choose table text size
Trend Arrows & Colors
Green ▲ = bullish / rising trend
Red ▼ = bearish / falling trend
Gray – = neutral/no change
Background colors indicate overbought/oversold, trend strength, or volume surge.
Indicator Data Fetch PINE CODE Short Summary
request.security() → pulls data from the selected timeframe (tf).
Each indicator’s calculation can be wrapped inside request.security() so the values are computed on that timeframe.
//@version=5
// === 1. VWAP ===
vwap_htf = request.security(syminfo.tickerid, tf, ta.vwap)
// === 2. MACD ===
macd_src = request.security(syminfo.tickerid, tf, close)
macd_val = ta.ema(macd_src, 12) - ta.ema(macd_src, 26)
macd_sig = ta.ema(macd_val, 9)
macd_hist = macd_val - macd_sig
// === 3. RSI ===
rsi_htf = request.security(syminfo.tickerid, tf, ta.rsi(close, 14))
// === 4. ADX & DI ===
adx_htf = request.security(syminfo.tickerid, tf, ta.adx(14))
plusDI = request.security(syminfo.tickerid, tf, ta.plus_di(14))
minusDI = request.security(syminfo.tickerid, tf, ta.minus_di(14))
// === 5. Supertrend ===
= request.security(syminfo.tickerid, tf, ta.supertrend(3, 7))
// === 6. Bollinger Bands ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
bb_up = request.security(syminfo.tickerid, tf, basis + dev * 2)
bb_low = request.security(syminfo.tickerid, tf, basis - dev * 2)
// === 7. Stochastic ===
k = ta.sma(ta.stoch(close, high, low, 14), 3)
d = ta.sma(k, 3)
stochK = request.security(syminfo.tickerid, tf, k)
stochD = request.security(syminfo.tickerid, tf, d)
// === 8. EMA ===
ema20 = request.security(syminfo.tickerid, tf, ta.ema(close, 20))
ema50 = request.security(syminfo.tickerid, tf, ta.ema(close, 50))
// === 9. Historical Volatility (HV) ===
logReturns = math.log(close / close )
hv = request.security(syminfo.tickerid, tf, ta.stdev(logReturns, 20) * math.sqrt(252))
plot(vwap_htf, "VWAP")
plot(macd_val, "MACD", color=color.blue)
plot(rsi_htf, "RSI", color=color.purple)
Correlation Heatmap Matrix [TradingFinder] 20 Assets Variable🔵 Introduction
Correlation is one of the most important statistical and analytical metrics in financial markets, data mining, and data science. It measures the strength and direction of the relationship between two variables.
The correlation coefficient always ranges between +1 and -1 : a perfect positive correlation (+1) means that two assets or currency pairs move together in the same direction and at a constant ratio, a correlation of zero (0) indicates no clear linear relationship, and a perfect negative correlation (-1) means they move in exactly opposite directions.
While the Pearson Correlation Coefficient is the most common method for calculation, other statistical methods like Spearman and Kendall are also used depending on the context.
In financial market analysis, correlation is a key tool for Forex, the Stock Market, and the Cryptocurrency Market because it allows traders to assess the price relationship between currency pairs, stocks, or coins. For example, in Forex, EUR/USD and GBP/USD often have a high positive correlation; in stocks, companies from the same sector such as Apple and Microsoft tend to move similarly; and in crypto, most altcoins show a strong positive correlation with Bitcoin.
Using a Correlation Heatmap in these markets visually displays the strength and direction of these relationships, helping traders make more accurate decisions for risk management and strategy optimization.
🟣 Correlation in Financial Markets
In finance, correlation refers to measuring how closely two assets move together over time. These assets can be stocks, currency pairs, commodities, indices, or cryptocurrencies. The main goal of correlation analysis in trading is to understand these movement patterns and use them for risk management, trend forecasting, and developing trading strategies.
🟣 Correlation Heatmap
A correlation heatmap is a visual tool that presents the correlation between multiple assets in a color-coded table. Each cell shows the correlation coefficient between two assets, with colors indicating its strength and direction. Warm colors (such as red or orange) represent strong negative correlation, cool colors (such as blue or cyan) represent strong positive correlation, and mid-range tones (such as yellow or green) indicate correlations that are close to neutral.
🟣 Practical Applications in Markets
Forex : Identify currency pairs that move together or in opposite directions, avoid overexposure to similar trades, and spot unusual divergences.
Crypto : Examine the dependency of altcoins on Bitcoin and find independent movers for portfolio diversification.
Stocks : Detect relationships between stocks in the same industry or find outliers that move differently from their sector.
🟣 Key Uses of Correlation in Trading
Risk management and diversification: Select assets with low or negative correlation to reduce portfolio volatility.
Avoiding overexposure: Prevent opening multiple positions on highly correlated assets.
Pairs trading: Exploit temporary deviations between historically correlated assets for arbitrage opportunities.
Intermarket analysis: Study the relationships between different markets like stocks, currencies, commodities, and bonds.
Divergence detection: Spot when two typically correlated assets move apart as a possible trend change signal.
Market forecasting: Use correlated asset movements to anticipate others’ behavior.
Event reaction analysis: Evaluate how groups of assets respond to economic or political events.
❗ Important Note
It’s important to note that correlation does not imply causation — it only reflects co-movement between assets. Correlation is also dynamic and can change over time, which is why analyzing it across multiple timeframes provides a more accurate picture. Combining correlation heatmaps with other analytical tools can significantly improve the precision of trading decisions.
🔵 How to Use
The Correlation Heatmap Matrix indicator is designed to analyze and manage the relationships between multiple assets at once. After adding the tool to your chart, start by selecting the assets you want to compare (up to 20).
Then, choose the Correlation Period that fits your trading strategy. Shorter periods (e.g., 20 bars) are more sensitive to recent price movements, making them suitable for short-term trading, while longer periods (e.g., 100 or 200 bars) provide a broader view of correlation trends over time.
The indicator outputs a color-coded matrix where each cell represents the correlation between two assets. Warm colors like red and orange signal strong negative correlation, while cool colors like blue and cyan indicate strong positive correlation. Mid-range tones such as yellow or green suggest correlations that are close to neutral. This visual representation makes it easy to spot market patterns at a glance.
One of the most valuable uses of this tool is in portfolio risk management. Portfolios with highly correlated assets are more vulnerable to market swings. By using the heatmap, traders can find assets with low or negative correlation to reduce overall risk.
Another key benefit is preventing overexposure. For example, if EUR/USD and GBP/USD have a high positive correlation, opening trades on both is almost like doubling the position size on one asset, increasing risk unnecessarily. The heatmap makes such relationships clear, helping you avoid them.
The indicator is also useful for pairs trading, where a trader identifies assets that are usually correlated but have temporarily diverged — a potential arbitrage or mean-reversion opportunity.
Additionally, the tool supports intermarket analysis, allowing traders to see how movements in one market (e.g., crude oil) may impact others (e.g., the Canadian dollar). Divergence detection is another advantage: if two typically aligned assets suddenly move in opposite directions, it could signal a major trend shift or a news-driven move.
Overall, the Correlation Heatmap Matrix is not just an analytical indicator but also a fast, visual alert system for monitoring multiple markets at once. This is particularly valuable for traders in fast-moving environments like Forex and crypto.
🔵 Settings
🟣 Logic
Correlation Period : Number of bars used to calculate correlation between assets.
🟣 Display
Table on Chart : Enable/disable displaying the heatmap directly on the chart.
Table Size : Choose the table size (from very small to very large).
Table Position : Set the table location on the chart (top, middle, or bottom in various alignments).
🟣 Symbol Custom
Select Market : Choose the market type (Forex, Stocks, Crypto, or Custom).
Symbol 1 to Symbol 20: In custom mode, you can define up to 20 assets for correlation calculation.
🔵 Conclusion
The Correlation Heatmap Matrix is a powerful tool for analyzing correlations across multiple assets in Forex, crypto, and stock markets. By displaying a color-coded table, it visually conveys both the strength and direction of correlations — warm colors for strong negative correlation, cool colors for strong positive correlation, and mid-range tones such as yellow or green for near-zero or neutral correlation.
This helps traders select assets with low or negative correlation for diversification, avoid overexposure to similar trades, identify arbitrage and pairs trading opportunities, and detect unusual divergences between typically aligned assets. With support for custom mode and up to 20 symbols, it offers high flexibility for different trading strategies, making it a valuable complement to technical analysis and risk management.
Wolf long or short this indicator is based on RSI, Stoch, BB , this indicator is giving a better understanding of short or long combined with 3 indicator
Linda Raschke - PF3This is PF3 indicator where there are confluence agreement of 3 oscillators. Means the market is giving its most!
BB next+2This indicator extends the standard Bollinger Bands by allowing you to project future Bollinger Bands based on assumed closing prices for the next trading day (+1) and the day after (+2).
Key Features:
Plots standard Bollinger Bands (supports SMA, EMA, etc.)
Allows manual input of assumed closing prices for the next trading day (+1) and the day after (+2)
Displays projected Bollinger Bands (basis, upper, and lower) based on the input values
Option to restrict display to the latest bar or confirmed bars only
5 Min Scalping Oscillator### Overview
The 5 Min Scalping Oscillator is a custom oscillator designed to provide traders with a unified momentum signal by fusing normalized versions of the Relative Strength Index (RSI), Stochastic RSI, and Commodity Channel Index (CCI). This combination creates a more balanced view of market momentum, overbought/oversold conditions, and potential reversals, while incorporating adaptive smoothing, dynamic thresholds, and market condition filters to reduce noise and false signals. Unlike standalone oscillators, the 5 Min Scalping Oscillator adapts to trending or sideways regimes, volatility levels, and higher timeframe biases, making it particularly suited for short-term charts like 5-minute timeframes where quick, filtered signals are valuable.
### Purpose and Originality of the Fusion
Traditional oscillators like RSI measure momentum but can lag in volatile markets; Stochastic RSI adds sensitivity to RSI extremes but often generates excessive noise; and CCI identifies cyclical deviations but may overreact to minor price swings. The 5 Min Scalping Oscillator addresses these limitations by weighting and blending their normalized outputs (RSI at 45%, Stochastic RSI at 35%, and CCI at 20%) into a single raw oscillator value. This weighted fusion creates a hybrid signal that balances lag reduction with noise filtering, resulting in a more robust indicator for identifying reversal opportunities.
The originality lies in extending this fusion with:
- **Adaptive Smoothing via KAMA (Kaufman's Adaptive Moving Average):** Adjusts responsiveness based on market efficiency, speeding up in trends and slowing in ranges—unlike fixed EMAs, this helps preserve signal integrity without over-smoothing.
- **Dynamic Overbought/Oversold Thresholds:** Calculated using rolling percentiles over a user-defined lookback (default 200+ periods), these levels adapt to recent oscillator behavior rather than relying on static values like 70/30, making the indicator more responsive to asset-specific volatility.
- **Multi-Factor Filters:** Integrates ADX for trend detection, ATR percentiles for volatility confirmation, and optional higher timeframe RSI bias to ensure signals align with broader market context. This layered approach reduces false positives (e.g., ignoring low-volatility crossovers) and adds a confidence score based on filter alignment, which is not typically found in simple mashups.
This design justifies the combination: it's not a mere overlay of indicators but a purposeful integration that enhances usefulness by providing context-aware signals, helping traders avoid common pitfalls like trading against the trend or in low-volatility chop. The result is an original tool that performs better in diverse conditions, especially on 5-minute charts for intraday trading, where rapid adaptations are key.
### How It Works
The 5 Min Scalping Oscillator processes price data through these steps:
1. **Normalization and Fusion:**
- RSI (default length 10) is normalized to a -1 to +1 scale using a tanh transformation for bounded output.
- Stochastic RSI (default length 14) is derived from RSI highs/lows and scaled similarly.
- CCI (default length 14) is tanh-normalized to align with the others.
- These are weighted and summed into a raw value, emphasizing RSI for core momentum while using Stochastic RSI for edge sensitivity and CCI for cycle detection.
2. **Smoothing and Signal Line:**
- The raw value is smoothed (default KAMA with fast/slow periods 2/30 and efficiency length 10) to reduce whipsaws.
- A shorter signal line (half the smoothing length) is added for crossover detections.
3. **Filters and Enhancements:**
- **Trend Regime:** ADX (default length 14, threshold 20) classifies markets as trending (ADX > threshold) or sideways, allowing signals in both but prioritizing alignment.
- **Volatility Check:** ATR (default length 14) percentile (default 85%) ensures signals only trigger in above-average volatility, filtering out flat markets.
- **Higher Timeframe Bias:** Optional RSI (default length 14 on 60-minute timeframe) provides bull/neutral/bear bias (above 55, 45-55, below 45), requiring signal alignment (e.g., bullish signals only if bias is neutral or bull).
- **Dynamic Levels:** Percentiles (default OB 85%, OS 15%) over recent oscillator values set adaptive overbought/oversold lines.
4. **Signal Generation:**
- Bullish (B) signals on upward crossovers of the smoothed line over the signal line, filtered by conditions.
- Bearish (S) signals on downward crossunders.
- Each signal includes a confidence score (0-100) based on factors like trend alignment (25 points), volatility (15 points), and bias (20 points if strong, 10 if neutral).
The output includes a glowing oscillator line, histogram for divergence spotting, dynamic levels, shapes/labels for signals, and a dashboard table summarizing regime, ADX, bias, levels, and last signal.
### How to Use It
This indicator is easy to apply and interpret, even for beginners:
- **Adding to Chart:** Apply the 5 Min Scalping Oscillator to a clean chart (no other indicators unless explained). It's non-overlay, so it appears in a separate pane. For 5-minute timeframes, keep defaults or tweak lengths shorter for faster response (e.g., RSI 8-12).
- **Interpreting Signals:**
- Look for green upward triangles labeled "B" (bullish) at the bottom for potential entry opportunities in uptrends or reversals.
- Red downward triangles labeled "S" (bearish) at the top signal potential exits or shorts.
- Higher confidence scores (e.g., 70+) indicate stronger alignment—use these for priority trades.
- Watch the histogram for divergences (e.g., price higher highs but histogram lower highs suggest weakening momentum).
- Dynamic OB (green line) and OS (red line) help gauge extremes; signals near these are more reliable.
- **Dashboard:** At the bottom-right, it shows real-time info like "Trending" or "Sideways" regime, ADX value, HTF bias (Bull/Neutral/Bear), OB/OS levels, and last signal—use this for quick context.
- **Customization:** Adjust inputs via the settings panel:
- Toggle KAMA for adaptive vs. EMA smoothing.
- Set HTF to "60" for 1-hour bias on 5-min charts.
- Increase ADX threshold to 25 for stricter trend filtering.
- **Best Practices:** Combine with price action (e.g., support/resistance) or volume for confirmation. On 5-min charts, pair with a 1-hour HTF for intraday scalping. Always use stop-losses and risk no more than 1-2% per trade.
### Default Settings Explanation
Defaults are optimized for 5-minute charts on volatile assets like stocks or forex:
- RSI/Stoch/CCI lengths (10/14/14): Shorter for quick momentum capture.
- Signal smoothing (5): Responsive without excessive lag.
- ADX threshold (20): Balances trend detection.
- ATR percentile (0.85): Filters ~15% of low-vol signals.
- HTF RSI (14 on 60-min): Aligns with hourly trends.
- Percentiles (OB 85%, OS 15%): Adaptive to recent data.
If changing, test on historical data to ensure fit—e.g., longer lengths for less noisy assets.
### Disclaimer
The 5 Min Scalping Oscillator is an educational tool to visualize momentum and does not guarantee profits or predict future performance. All signals are based on historical calculations and should not be used as standalone trading advice. Past results are not indicative of future outcomes. Traders must conduct their own analysis, use proper risk management, and consider market conditions. No claims are made about accuracy, reliability, or performance.
EDWARDS SQUEEZE 3MINUTE DOWSqueeze Momentum Strategy with EMA780 Trend Filter, ATR-SL, PT, EMA5 Exit Filter, and 3:57 PM Close