FEDFUNDS Rate Divergence Oscillator [BackQuant]FEDFUNDS Rate Divergence Oscillator
1. Concept and Rationale
The United States Federal Funds Rate is the anchor around which global dollar liquidity and risk-free yield expectations revolve. When the Fed hikes, borrowing costs rise, liquidity tightens and most risk assets encounter head-winds. When it cuts, liquidity expands, speculative appetite often recovers. Bitcoin, a 24-hour permissionless asset sometimes described as “digital gold with venture-capital-like convexity,” is particularly sensitive to macro-liquidity swings.
The FED Divergence Oscillator quantifies the behavioural gap between short-term monetary policy (proxied by the effective Fed Funds Rate) and Bitcoin’s own percentage price change. By converting each series into identical rate-of-change units, subtracting them, then optionally smoothing the result, the script produces a single bounded-yet-dynamic line that tells you, at a glance, whether Bitcoin is outperforming or underperforming the policy backdrop—and by how much.
2. Data Pipeline
• Fed Funds Rate – Pulled directly from the FRED database via the ticker “FRED:FEDFUNDS,” sampled at daily frequency to synchronise with crypto closes.
• Bitcoin Price – By default the script forces a daily timeframe so that both series share time alignment, although you can disable that and plot the oscillator on intraday charts if you prefer.
• User Source Flexibility – The BTC series is not hard-wired; you can select any exchange-specific symbol or even swap BTC for another crypto or risk asset whose interaction with the Fed rate you wish to study.
3. Math under the Hood
(1) Rate of Change (ROC) – Both the Fed rate and BTC close are converted to percent return over a user-chosen lookback (default 30 bars). This means a cut from 5.25 percent to 5.00 percent feeds in as –4.76 percent, while a climb from 25 000 to 30 000 USD in BTC over the same window converts to +20 percent.
(2) Divergence Construction – The script subtracts the Fed ROC from the BTC ROC. Positive values show BTC appreciating faster than policy is tightening (or falling slower than the rate is cutting); negative values show the opposite.
(3) Optional Smoothing – Macro series are noisy. Toggle “Apply Smoothing” to calm the line with your preferred moving-average flavour: SMA, EMA, DEMA, TEMA, RMA, WMA or Hull. The default EMA-25 removes day-to-day whips while keeping turning points alive.
(4) Dynamic Colour Mapping – Rather than using a single hue, the oscillator line employs a gradient where deep greens represent strong bullish divergence and dark reds flag sharp bearish divergence. This heat-map approach lets you gauge intensity without squinting at numbers.
(5) Threshold Grid – Five horizontal guides create a structured regime map:
• Lower Extreme (–50 pct) and Upper Extreme (+50 pct) identify panic capitulations and euphoria blow-offs.
• Oversold (–20 pct) and Overbought (+20 pct) act as early warning alarms.
• Zero Line demarcates neutral alignment.
4. Chart Furniture and User Interface
• Oscillator fill with a secondary DEMA-30 “shader” offers depth perception: fat ribbons often precede high-volatility macro shifts.
• Optional bar-colouring paints candles green when the oscillator is above zero and red below, handy for visual correlation.
• Background tints when the line breaches extreme zones, making macro inflection weeks pop out in the replay bar.
• Everything—line width, thresholds, colours—can be customised so the indicator blends into any template.
5. Interpretation Guide
Macro Liquidity Pulse
• When the oscillator spends weeks above +20 while the Fed is still raising rates, Bitcoin is signalling liquidity tolerance or an anticipatory pivot view. That condition often marks the embryonic phase of major bull cycles (e.g., March 2020 rebound).
• Sustained prints below –20 while the Fed is already dovish indicate risk aversion or idiosyncratic crypto stress—think exchange scandals or broad flight to safety.
Regime Transition Signals
• Bullish cross through zero after a long sub-zero stint shows Bitcoin regaining upward escape velocity versus policy.
• Bearish cross under zero during a hiking cycle tells you monetary tightening has finally started to bite.
Momentum Exhaustion and Mean-Reversion
• Touches of +50 (or –50) come rarely; they are statistically stretched events. Fade strategies either taking profits or hedging have historically enjoyed positive expectancy.
• Inside-bar candlestick patterns or lower-timeframe bearish engulfings simultaneously with an extreme overbought print make high-probability short scalp setups, especially near weekly resistance. The same logic mirrors for oversold.
Pair Trading / Relative Value
• Combine the oscillator with spreads like BTC versus Nasdaq 100. When both the FED Divergence oscillator and the BTC–NDQ relative-strength line roll south together, the cross-asset confirmation amplifies conviction in a mean-reversion short.
• Swap BTC for miners, altcoins or high-beta equities to test who is the divergence leader.
Event-Driven Tactics
• FOMC days: plot the oscillator on an hourly chart (disable ‘Force Daily TF’). Watch for micro-structural spikes that resolve in the first hour after the statement; rapid flips across zero can front-run post-FOMC swings.
• CPI and NFP prints: extremes reached into the release often mean positioning is one-sided. A reversion toward neutral in the first 24 hours is common.
6. Alerts Suite
Pre-bundled conditions let you automate workflows:
• Bullish / Bearish zero crosses – queue spot or futures entries.
• Standard OB / OS – notify for first contact with actionable zones.
• Extreme OB / OS – prime time to review hedges, take profits or build contrarian swing positions.
7. Parameter Playground
• Shorten ROC Lookback to 14 for tactical traders; lengthen to 90 for macro investors.
• Raise extreme thresholds (for example ±80) when plotting on altcoins that exhibit higher volatility than BTC.
• Try HMA smoothing for responsive yet smooth curves on intraday charts.
• Colour-blind users can easily swap bull and bear palette selections for preferred contrasts.
8. Limitations and Best Practices
• The Fed Funds series is step-wise; it only changes on meeting days. Rapid BTC oscillations in between may dominate the calculation. Keep that perspective when interpreting very high-frequency signals.
• Divergence does not equal causation. Crypto-native catalysts (ETF approvals, hack headlines) can overwhelm macro links temporarily.
• Use in conjunction with classical confirmation tools—order-flow footprints, market-profile ledges, or simple price action to avoid “pure-indicator” traps.
9. Final Thoughts
The FEDFUNDS Rate Divergence Oscillator distills an entire macro narrative monetary policy versus risk sentiment into a single colourful heartbeat. It will not magically predict every pivot, yet it excels at framing market context, spotting stretches and timing regime changes. Treat it as a strategic compass rather than a tactical sniper scope, combine it with sound risk management and multi-factor confirmation, and you will possess a robust edge anchored in the world’s most influential interest-rate benchmark.
Trade consciously, stay adaptive, and let the policy-price tension guide your roadmap.
Osciladores
Gabriel's Laguerre RSI📈 Gabriel's Laguerre RSI
An Adaptive Momentum Oscillator with Laguerre Filtering and Efficiency Ratio Smoothing
🔍 Overview
"Gabriel's Laguerre RSI" is an advanced momentum oscillator that combines the strengths of the Laguerre Recursive Smoothing, the Efficiency Ratio (ER) for dynamic responsiveness, and a Laguerre-based signal filter built on an Ultimate Smoother foundation. This hybrid construction provides a smoother, more adaptive RSI-like oscillator that responds effectively to both trend strength and cyclical price behavior.
🧠 Core Concepts
Laguerre RSI (LaRSI):
Uses a recursive Laguerre smoothing algorithm that applies layered feedback levels (L0 to L3) to separate upward and downward price movements. The result is a normalized oscillator that ranges between 0–100 and is more resistant to noise than traditional RSI.
Efficiency Ratio (ER):
Measures the signal-to-noise ratio in price movement over a given length. A higher ER implies trend dominance, while a lower ER indicates consolidation. This dynamic ER is used to adaptively control the Laguerre smoothing intensity, making the indicator self-adjusting to different market regimes.
Laguerre Filter (Signal Line):
A sophisticated smoothing function layered on top of the Laguerre RSI output. It uses the Ultimate Smoother (a zero-lag Butterworth-style smoother) and a multi-level Laguerre polynomial to create a responsive yet stable signal line that acts as a confirmation filter or crossover signal.
⚙️ Inputs
LRSI Source:
Select the input data for the oscillator (default is close).
LRSI Length:
Defines the window size for the Efficiency Ratio. The ER adapts the smoothing depth of the Laguerre RSI.
Laguerre Filter Length:
Sets the responsiveness of the Laguerre Filter signal line. Lower values = faster reaction; higher values = smoother trend confirmation.
📏 Levels and Visuals
Horizontal Lines:
80: Overbought zone
50: Median reference
20: Oversold zone
Plots:
Blue Line: Adaptive Laguerre RSI
Olive Line: Laguerre Filter (Signal Line)
📌 How to Use
Trend Confirmation:
Use crossovers between the Laguerre RSI and the Laguerre Filter for trend signals.
Bullish Signal: LRSI crosses above the filter
Bearish Signal: LRSI crosses below the filter
Overbought/Oversold Detection:
LRSI values above 80 or below 20 suggest potential reversal or mean-reversion zones, especially when divergence or volume confluence exists.
Volatility Adaptation:
Because the Efficiency Ratio dynamically controls the Laguerre smoothing, this indicator automatically adjusts to quiet and volatile markets, minimizing whipsaws.
🧪 Why It’s Powerful
Adaptive to market noise and trend quality (via ER)
Smooth yet responsive signal generation (via multi-layer Laguerre and Ultimate Smoother)
Reduced lag and enhanced reversal detection compared to standard RSI
strategy15min bar, short-term and scalp strategy, eth, using stdev as trend line, long when price hits the lower line, short when price hits the upper line.
MERV: Market Entropy & Rhythm Visualizer [BullByte]The MERV (Market Entropy & Rhythm Visualizer) indicator analyzes market conditions by measuring entropy (randomness vs. trend), tradeability (volatility/momentum), and cyclical rhythm. It provides traders with an easy-to-read dashboard and oscillator to understand when markets are structured or choppy, and when trading conditions are optimal.
Purpose of the Indicator
MERV’s goal is to help traders identify different market regimes. It quantifies how structured or random recent price action is (entropy), how strong and volatile the movement is (tradeability), and whether a repeating cycle exists. By visualizing these together, MERV highlights trending vs. choppy environments and flags when conditions are favorable for entering trades. For example, a low entropy value means prices are following a clear trend line, whereas high entropy indicates a lot of noise or sideways action. The indicator’s combination of measures is original: it fuses statistical trend-fit (entropy), volatility trends (ATR and slope), and cycle analysis to give a comprehensive view of market behavior.
Why a Trader Should Use It
Traders often need to know when a market trend is reliable vs. when it is just noise. MERV helps in several ways: it shows when the market has a strong direction (low entropy, high tradeability) and when it’s ranging (high entropy). This can prevent entering trend-following strategies during choppy periods, or help catch breakouts early. The “Optimal Regime” marker (a star) highlights moments when entropy is very low and tradeability is very high, typically the best conditions for trend trades. By using MERV, a trader gains an empirical “go/no-go” signal based on price history, rather than guessing from price alone. It’s also adaptable: you can apply it to stocks, forex, crypto, etc., on any timeframe. For example, during a bullish phase of a stock, MERV will turn green (Trending Mode) and often show a star, signaling good follow-through. If the market later grinds sideways, MERV will shift to magenta (Choppy Mode), warning you that trend-following is now risky.
Why These Components Were Chosen
Market Entropy (via R²) : This measures how well recent prices fit a straight line. We compute a linear regression on the last len_entropy bars and calculate R². Entropy = 1 - R², so entropy is low when prices follow a trend (R² near 1) and high when price action is erratic (R² near 0). This single number captures trend strength vs noise.
Tradeability (ATR + Slope) : We combine two familiar measures: the Average True Range (ATR) (normalized by price) and the absolute slope of the regression line (scaled by ATR). Together they reflect how active and directional the market is. A high ATR or strong slope means big moves, making a trend more “tradeable.” We take a simple average of the normalized ATR and slope to get tradeability_raw. Then we convert it to a percentile rank over the lookback window so it’s stable between 0 and 1.
Percentile Ranks : To make entropy and tradeability values easy to interpret, we convert each to a 0–100 rank based on the past len_entropy periods. This turns raw metrics into a consistent scale. (For example, an entropy rank of 90 means current entropy is higher than 90% of recent values.) We then divide by 100 to plot them on a 0–1 scale.
Market Mode (Regime) : Based on those ranks, MERV classifies the market:
Trending (Green) : Low entropy rank (<40%) and high tradeability rank (>60%). This means the market is structurally trending with high activity.
Choppy (Magenta) : High entropy rank (>60%) and low tradeability rank (<40%). This is a mostly random, low-momentum market.
Neutral (Cyan) : All other cases. This covers mixed regimes not strongly trending or choppy.
The mode is shown as a colored bar at the bottom: green for trending, magenta for choppy, cyan for neutral.
Optimal Regime Signal : Separately, we mark an “optimal” condition when entropy_norm < 0.3 and tradeability > 0.7 (both normalized 0–1). When this is true, a ★ star appears on the bottom line. This star is colored white when truly optimal, gold when only tradeability is high (but entropy not quite low enough), and black when neither condition holds. This gives a quick visual cue for very favorable conditions.
What Makes MERV Stand Out
Holistic View : Unlike a single-oscillator, MERV combines trend, volatility, and cycle analysis in one tool. This multi-faceted approach is unique.
Visual Dashboard : The fixed on-chart dashboard (shown at your chosen corner) summarizes all metrics in bar/gauge form. Even a non-technical user can glance at it: more “█” blocks = a higher value, colors match the plots. This is more intuitive than raw numbers.
Adaptive Thresholds : Using percentile ranks means MERV auto-adjusts to each market’s character, rather than requiring fixed thresholds.
Cycle Insight : The rhythm plot adds information rarely found in indicators – it shows if there’s a repeating cycle (and its period in bars) and how strong it is. This can hint at natural bounce or reversal intervals.
Modern Look : The neon color scheme and glow effects make the lines easy to distinguish (blue/pink for entropy, green/orange for tradeability, etc.) and the filled area between them highlights when one dominates the other.
Recommended Timeframes
MERV can be applied to any timeframe, but it will be more reliable on higher timeframes. The default len_entropy = 50 and len_rhythm = 30 mean we use 30–50 bars of history, so on a daily chart that’s ~2–3 months of data; on a 1-hour chart it’s about 2–3 days. In practice:
Swing/Position traders might prefer Daily or 4H charts, where the calculations smooth out small noise. Entropy and cycles are more meaningful on longer trends.
Day trader s could use 15m or 1H charts if they adjust the inputs (e.g. shorter windows). This provides more sensitivity to intraday cycles.
Scalpers might find MERV too “slow” unless input lengths are set very low.
In summary, the indicator works anywhere, but the defaults are tuned for capturing medium-term trends. Users can adjust len_entropy and len_rhythm to match their chart’s volatility. The dashboard position can also be moved (top-left, bottom-right, etc.) so it doesn’t cover important chart areas.
How the Scoring/Logic Works (Step-by-Step)
Compute Entropy : A linear regression line is fit to the last len_entropy closes. We compute R² (goodness of fit). Entropy = 1 – R². So a strong straight-line trend gives low entropy; a flat/noisy set of points gives high entropy.
Compute Tradeability : We get ATR over len_entropy bars, normalize it by price (so it’s a fraction of price). We also calculate the regression slope (difference between the predicted close and last close). We scale |slope| by ATR to get a dimensionless measure. We average these (ATR% and slope%) to get tradeability_raw. This represents how big and directional price moves are.
Convert to Percentiles : Each new entropy and tradeability value is inserted into a rolling array of the last 50 values. We then compute the percentile rank of the current value in that array (0–100%) using a simple loop. This tells us where the current bar stands relative to history. We then divide by 100 to plot on .
Determine Modes and Signal : Based on these normalized metrics: if entropy < 0.4 and tradeability > 0.6 (40% and 60% thresholds), we set mode = Trending (1). If entropy > 0.6 and tradeability < 0.4, mode = Choppy (-1). Otherwise mode = Neutral (0). Separately, if entropy_norm < 0.3 and tradeability > 0.7, we set an optimal flag. These conditions trigger the colored mode bars and the star line.
Rhythm Detection : Every bar, if we have enough data, we take the last len_rhythm closes and compute the mean and standard deviation. Then for lags from 5 up to len_rhythm, we calculate a normalized autocorrelation coefficient. We track the lag that gives the maximum correlation (best match). This “best lag” divided by len_rhythm is plotted (a value between 0 and 1). Its color changes with the correlation strength. We also smooth the best correlation value over 5 bars to plot as “Cycle Strength” (also 0 to 1). This shows if there is a consistent cycle length in recent price action.
Heatmap (Optional) : The background color behind the oscillator panel can change with entropy. If “Neon Rainbow” style is on, low entropy is blue and high entropy is pink (via a custom color function), otherwise a classic green-to-red gradient can be used. This visually reinforces the entropy value.
Volume Regime (Dashboard Only) : We compute vol_norm = volume / sma(volume, len_entropy). If this is above 1.5, it’s considered high volume (neon orange); below 0.7 is low (blue); otherwise normal (green). The dashboard shows this as a bar gauge and percentage. This is for context only.
Oscillator Plot – How to Read It
The main panel (oscillator) has multiple colored lines on a 0–1 vertical scale, with horizontal markers at 0.2 (Low), 0.5 (Mid), and 0.8 (High). Here’s each element:
Entropy Line (Blue→Pink) : This line (and its glow) shows normalized entropy (0 = very low, 1 = very high). It is blue/green when entropy is low (strong trend) and pink/purple when entropy is high (choppy). A value near 0.0 (below 0.2 line) indicates a very well-defined trend. A value near 1.0 (above 0.8 line) means the market is very random. Watch for it dipping near 0: that suggests a strong trend has formed.
Tradeability Line (Green→Yellow) : This represents normalized tradeability. It is colored bright green when tradeability is low, transitioning to yellow as tradeability increases. Higher values (approaching 1) mean big moves and strong slopes. Typically in a market rally or crash, this line will rise. A crossing above ~0.7 often coincides with good trend strength.
Filled Area (Orange Shade) : The orange-ish fill between the entropy and tradeability lines highlights when one dominates the other. If the area is large, the two metrics diverge; if small, they are similar. This is mostly aesthetic but can catch the eye when the lines cross over or remain close.
Rhythm (Cycle) Line : This is plotted as (best_lag / len_rhythm). It indicates the relative period of the strongest cycle. For example, a value of 0.5 means the strongest cycle was about half the window length. The line’s color (green, orange, or pink) reflects how strong that cycle is (green = strong). If no clear cycle is found, this line may be flat or near zero.
Cycle Strength Line : Plotted on the same scale, this shows the autocorrelation strength (0–1). A high value (e.g. above 0.7, shown in green) means the cycle is very pronounced. Low values (pink) mean any cycle is weak and unreliable.
Mode Bars (Bottom) : Below the main oscillator, thick colored bars appear: a green bar means Trending Mode, magenta means Choppy Mode, and cyan means Neutral. These bars all have a fixed height (–0.1) and make it very easy to see the current regime.
Optimal Regime Line (Bottom) : Just below the mode bars is a thick horizontal line at –0.18. Its color indicates regime quality: White (★) means “Optimal Regime” (very low entropy and high tradeability). Gold (★) means not quite optimal (high tradeability but entropy not low enough). Black means neither condition. This star line quickly tells you when conditions are ideal (white star) or simply good (gold star).
Horizontal Guides : The dotted lines at 0.2 (Low), 0.5 (Mid), and 0.8 (High) serve as reference lines. For example, an entropy or tradeability reading above 0.8 is “High,” and below 0.2 is “Low,” as labeled on the chart. These help you gauge values at a glance.
Dashboard (Fixed Corner Panel)
MERV also includes a compact table (dashboard) that can be positioned in any corner. It summarizes key values each bar. Here is how to read its rows:
Entropy : Shows a bar of blocks (█ and ░). More █ blocks = higher entropy. It also gives a percentage (rounded). A full bar (10 blocks) with a high % means very chaotic market. The text is colored similarly (blue-green for low, pink for high).
Rhythm : Shows the best cycle period in bars (e.g. “15 bars”). If no calculation yet, it shows “n/a.” The text color matches the rhythm line.
Cycle Strength : Gives the cycle correlation as a percentage (smoothed, as shown on chart). Higher % (green) means a strong cycle.
Tradeability : Displays a 10-block gauge for tradeability. More blocks = more tradeable market. It also shows “gauge” text colored green→yellow accordingly.
Market Mode : Simply shows “Trending”, “Choppy”, or “Neutral” (cyan text) to match the mode bar color.
Volume Regime : Similar to tradeability, shows blocks for current volume vs. average. Above-average volume gives orange blocks, below-average gives blue blocks. A % value indicates current volume relative to average. This row helps see if volume is abnormally high or low.
Optimal Status (Large Row) : In bold, either “★ Optimal Regime” (white text) if the star condition is met, “★ High Tradeability” (gold text) if tradeability alone is high, or “— Not Optimal” (gray text) otherwise. This large row catches your eye when conditions are ripe.
In short, the dashboard turns the numeric state into an easy read: filled bars, colors, and text let you see current conditions without reading the plot. For instance, five blue blocks under Entropy and “25%” tells you entropy is low (good), and a row showing “Trending” in green confirms a trend state.
Real-Life Example
Example : Consider a daily chart of a trending stock (e.g. “AAPL, 1D”). During a strong uptrend, recent prices fit a clear upward line, so Entropy would be low (blue line near bottom, perhaps below the 0.2 line). Volatility and slope are high, so Tradeability is high (green-yellow line near top). In the dashboard, Entropy might show only 1–2 blocks (e.g. 10%) and Tradeability nearly full (e.g. 90%). The Market Mode bar turns green (Trending), and you might see a white ★ on the optimal line if conditions are very good. The Volume row might light orange if volume is above average during the rally. In contrast, imagine the same stock later in a tight range: Entropy will rise (pink line up, more blocks in dashboard), Tradeability falls (fewer blocks), and the Mode bar turns magenta (Choppy). No star appears in that case.
Consolidated Use Case : Suppose on XYZ stock the dashboard reads “Entropy: █░░░░░░░░ 20%”, “Tradeability: ██████████ 80%”, Mode = Trending (green), and “★ Optimal Regime.” This tells the trader that the market is in a strong, low-noise trend, and it might be a good time to follow the trend (with appropriate risk controls). If instead it reads “Entropy: ████████░░ 80%”, “Tradeability: ███▒▒▒▒▒▒ 30%”, Mode = Choppy (magenta), the trader knows the market is random and low-momentum—likely best to sit out until conditions improve.
Example: How It Looks in Action
Screenshot 1: Trending Market with High Tradeability (SOLUSD, 30m)
What it means:
The market is in a clear, strong trend with excellent conditions for trading. Both trend-following and active strategies are favored, supported by high tradeability and strong volume.
Screenshot 2: Optimal Regime, Strong Trend (ETHUSD, 1h)
What it means:
This is an ideal environment for trend trading. The market is highly organized, tradeability is excellent, and volume supports the move. This is when the indicator signals the highest probability for success.
Screenshot 3: Choppy Market with High Volume (BTC Perpetual, 5m)
What it means:
The market is highly random and choppy, despite a surge in volume. This is a high-risk, low-reward environment, avoid trend strategies, and be cautious even with mean-reversion or scalping.
Settings and Inputs
The script is fully open-source; here are key inputs the user can adjust:
Entropy Window (len_entropy) : Number of bars used for entropy and tradeability (default 50). Larger = smoother, more lag; smaller = more sensitivity.
Rhythm Window (len_rhythm ): Bars used for cycle detection (default 30). This limits the longest cycle we detect.
Dashboard Position : Choose any corner (Top Right default) so it doesn’t cover chart action.
Show Heatmap : Toggles the entropy background coloring on/off.
Heatmap Style : “Neon Rainbow” (colorful) or “Classic” (green→red).
Show Mode Bar : Turn the bottom mode bar on/off.
Show Dashboard : Turn the fixed table panel on/off.
Each setting has a tooltip explaining its effect. In the description we will mention typical settings (e.g. default window sizes) and that the user can move the dashboard corner as desired.
Oscillator Interpretation (Recap)
Lines : Blue/Pink = Entropy (low=trend, high=chop); Green/Yellow = Tradeability (low=quiet, high=volatile).
Fill : Orange tinted area between them (for visual emphasis).
Bars : Green=Trending, Magenta=Choppy, Cyan=Neutral (at bottom).
Star Line : White star = ideal conditions, Gold = good but not ideal.
Horizontal Guides : 0.2 and 0.8 lines mark low/high thresholds for each metric.
Using the chart, a coder or trader can see exactly what each output represents and make decisions accordingly.
Disclaimer
This indicator is provided as-is for educational and analytical purposes only. It does not guarantee any particular trading outcome. Past market patterns may not repeat in the future. Users should apply their own judgment and risk management; do not rely solely on this tool for trading decisions. Remember, TradingView scripts are tools for market analysis, not personalized financial advice. We encourage users to test and combine MERV with other analysis and to trade responsibly.
-BullByte
Blue DotThis indicator identifies high-probability long entry signals by combining stochastic momentum analysis with moving average trend confirmation. It's designed to catch oversold bounces in stocks that are already in established uptrends.
Smart MTF Bias Detector v3 (Debug)Here's a breakdown of the "Smart MTF Bias Detector v3 (Debug)" indicator's five main filters:
Main Trend (Multi-Timeframe Heikin Ashi)
The green/red background indicates the trend from Heikin Ashi candles on the H1 timeframe (or your set timeframe).
If the Heikin Ashi candle closes above its open, the background is green (indicating an upward bias).
If the Heikin Ashi candle closes below its open, the background is red (indicating a downward bias).
Short-Term Trend Filter (EMA50)
The yellow line represents the EMA50.
Buy only when the price closes above the EMA50.
Sell only when the price closes below the EMA50.
Abnormal Buy/Sell Pressure Detection (Volume Spike)
Purple dots signify candles where the volume is greater than the SMA (Simple Moving Average) of volume over N previous candles, multiplied by a specified multiplier.
This confirms there's "force" driving the price up or serious selling pressure.
Momentum Filter (Stochastic RSI)
Blue upward triangles and orange downward triangles indicate when %K crosses %D.
It uses Oversold/Overbought targets (20/80) to avoid crosses in the middle ranges.
Pivot Break (Fractal Breakout)
Red "X" marks represent Fractal Highs, and green "X" marks represent Fractal Lows.
Red/green up/down arrows indicate breakouts of these levels (e.g., a previous High being broken means an upward breakout, or a previous Low being broken means a downward breakout).
BUY Signal Conditions
A BUY signal will be generated when:
The background is green (HTF Trend ↑).
The Stoch RSI crosses up from below the Oversold zone (blue arrow).
A Fractal Low breakout occurs (Fract UP arrow).
The price is above the EMA50.
There is a Volume Spike (purple dot).
SELL Signal Conditions
A SELL signal will be generated when:
The background is red (HTF Trend ↓).
The Stoch RSI crosses down from above the Overbought zone (orange arrow).
A Fractal High breakout occurs (Fract DOWN arrow).
The price is below the EMA50.
There is a Volume Spike (purple dot).
ZigZag Based RSIDescription
ZigZag Trend RSI (ZZ-RSI) is an advanced momentum indicator that combines ZigZag-based trend detection with a trend-adjusted RSI to deliver smarter overbought and oversold signals. Unlike traditional RSI that reacts purely to price movement, this indicator adapts its sensitivity based on the prevailing trend structure identified via the ZigZag pattern.
By dynamically adjusting RSI thresholds according to market direction, ZZ-RSI helps filter out false signals and aligns RSI readings with broader trend context—crucial for trend-following strategies, counter-trend entries, and volatility-based timing.
Core Components
ZigZag Pattern Recognition:
Identifies significant swing highs and lows based on price deviation (%) and pivot sensitivity (length). The most recent pivot determines the prevailing trend direction:
🟢 Bullish: last swing is a higher high
🔴 Bearish: last swing is a lower low
⚪ Neutral: no recent significant movement
Trend-Weighted RSI:
Modifies traditional RSI input by emphasizing price changes in the direction of the trend:
In bull trends, upside moves are magnified.
In bear trends, downside moves are emphasized.
Dynamic RSI Zones:
Overbought and Oversold thresholds adapt to the trend:
In uptrends: higher OB and slightly raised OS → tolerate stronger rallies
In downtrends: lower OS and slightly reduced OB → accommodate stronger sell-offs
In neutral: default OB/OS values apply
How to Use
✅ Entries (Reversal or Mean Reversion Traders):
Look for oversold signals (green triangle) in downtrends or neutrals to catch potential reversals.
Look for overbought signals (red triangle) in uptrends or neutrals to fade momentum.
Confirm with price action or volume for higher conviction.
📈 Trend Continuation (Momentum or Trend-Followers):
Use the trend direction label (Bullish / Bearish / Neutral) to align your trades with the broader move.
Combine with moving averages or price structure for entry timing.
Avoid counter-trend signals unless confirmed by divergence or exhaustion.
🧠 Signal Interpretation Table (top right of chart):
Trend: Indicates the current market direction.
RSI: Real-time trend-adjusted RSI value.
Signal: OB/OS/Neutral classification.
Customization Options
ZigZag Length / Deviation %:
Adjust pivot sensitivity and filter out minor noise.
RSI Length:
Controls how fast RSI responds to trend-adjusted price.
Color Settings:
Personalize visual cues for trend direction and OB/OS backgrounds.
Alerts Included
📢 Overbought/oversold conditions
🔄 Trend reversals (bullish or bearish shift)
These alerts are ideal for automated strategies, mobile notifications, or algorithmic workflows.
Ideal For
Traders seeking smarter RSI signals filtered by market structure
Trend-followers and swing traders looking for reliable reversals
Those frustrated with false OB/OS signals in volatile or trending markets
Best Practices
Use in confluence with price structure, trendlines, or S/R levels.
For intraday: consider lowering ZigZag Length and RSI Length.
For higher timeframes: use higher deviation % and smoother RSI to reduce noise.
VIX Filter/RSI/EMA Bias/Cum-TICK w/ Exhaustion Zone DashboardThis all-in-one dashboard gives intraday traders a real-time visual read of market conditions, combining volatility regime, trend bias, momentum exhaustion, and internal strength — all in a fully customizable overlay that won’t clutter your chart.
📉 VIX Market Regime Detector
Identifies "Weak", "Normal", "Volatile", or "Danger" market states based on customizable VIX ranges and symbol (e.g., VXN or VIX).
📊 RSI Momentum Readout
Displays real-time RSI from any selected timeframe or symbol, with adjustable length, OB/OS thresholds, and color-coded exhaustion alerts.
📈 EMA Trend Bias Scanner
Compares fast and slow EMAs to define bullish or bearish bias, using your preferred timeframe, symbol, and EMA lengths — ideal for multi-timeframe setups.
🧠 Cumulative TICK Pressure & Exhaustion Engine
Analyzes internal market strength using cumulative TICK data to classify conditions as:
-Strong / Mild Bullish or Bearish Pressure
-Choppy / No Edge
-⚠️ Exhaustion Zones — when raw TICK values hit extreme highs/lows, a separate highlight box appears in the dashboard, warning of potential turning points
All logic is customizable, including TICK symbol, timeframes, thresholds, and lookback periods.
Scalpers and day traders who want fast, visual insight into market internals, exhaustion, and trend bias.
RSI Divergence(CompactFX)This is the standard "RSI" with "divergence" displayed. Additionally, it has the following features:
- The line color shifts above and below the RSI 50 threshold.
- The MA can be displayed on the RSI.
- Signs of an expected reversal are displayed.
**Examples of Use**
*For Swing Traders
In addition to using the standard RSI, the divergence display can serve as a trigger for further consideration.
*For Scalpers
For athletic traders who prefer intuition over logic and calculation, we recommend customizing the RSI color to your liking for bulls and bears. Consider extending the price until the RSI color changes. Below is my example.
-One-Minute Scalping
When prices are moving above the long-term and short-term MAs, you can hold a position as long as the RSI is above 55 (below 45 for bears). In this case, pivot signs can also be used as a guide for closing positions. Of course, this is best done during periods of high momentum. Five- and 15-minute scalping also works well. However, these only work if you adhere to my logic. Don't forget to adhere to your own logic and framework.
The above is just an example. Feel free to use it as you like.
[Stratégia] VWAP Mean Magnet v2 (VolSzűrő)Ez a stratégia BTC- oldalazó időszakára van kifejlestve 1 perces chartra.
WT_CROSS Dip Buy Signal(ozkan)This script identifies potential buy opportunities based on WaveTrend (WT_CROSS) momentum crossing below the -60 level — often indicating oversold conditions.
Additional filters include price being above the Kaufman Adaptive Moving Average (KAMA) and volume below the 5-period average, which helps isolate pullbacks within an uptrend.
Buy Signal Conditions:
WT1 < -60
Price > KAMA
Volume < 5-period SMA of volume
Purpose:
To capture early entries at possible local bottoms during bullish trends while avoiding high-volume breakdown traps.
🔔 You can also set an alert based on this condition.
Blue DotThis indicator identifies high-probability long entry signals by combining stochastic momentum analysis with moving average trend confirmation. It's designed to catch oversold bounces in stocks that are already in established uptrends.
Swing Strategy MTF with Auto SL/TP + Weekly Pivotsested and Working Notes:
Works on any intraday chart (like 1H or 4H)
Uses Daily trend for confirmation by default
Adjust trend EMAs or pivot TF if needed
Wait for a signal label after candle close
Targets and SL are drawn automatically
—
RSI and MACD Divergence IndicatorThe RSI and MACD Divergence Indicator is a custom Pine Script v6 indicator designed for TradingView that identifies and visualizes divergences between price movements and two technical indicators: the Relative Strength Index (RSI) and the Moving Average Convergence Divergence (MACD). Here's a brief explanation of its functionality:
Divergence Detection: The indicator detects both regular and hidden divergences for RSI, MACD (MACD Line), and Histogram. Regular bullish divergences occur when price makes a lower low but the indicator makes a higher low (suggesting a potential reversal upward), while regular bearish divergences occur when price makes a higher high but the indicator makes a lower high (suggesting a potential reversal downward). Hidden divergences indicate continuation patterns (e.g., higher low in price with a lower low in the indicator for bullish continuation).
Customizable Inputs:
Pivot Bars: Sets the number of bars used to confirm pivot highs and lows (default: 5).
RSI and MACD Parameters: Allows adjustment of RSI length (default: 14) and MACD settings (fast: 12, slow: 26, signal: 9).
Toggle Options: Enables/disables detection of regular and hidden divergences for RSI, MACD, and Histogram individually.
Confirmation: Option to wait for pivot confirmation (default: true), delaying divergence display until the pivot is fully formed.
Show Only Last Divergence: Toggles between showing only the most recent divergence (default: true) or all detected divergences (false), with previous lines and labels cleared when true.
Minimum Divergences: Sets the minimum number of divergence types required at a pivot to display (default: 1, max: 6).
Maximum Pivot Points: Limits the number of historical pivot points to check (default: 10).
Maximum Bars to Check: Restricts analysis to the last specified number of bars (default: 500).
Visualization:
Draws lines connecting the price pivot points where divergences are detected, with customizable colors, widths, and styles (solid, dashed, dotted) for RSI and MACD.
Displays a single label per pivot with vertically stacked text listing all detected divergence types (e.g., "RSI Bull Div MACD Bull Div"), using semi-transparent backgrounds (green for bullish, red for bearish) and white text.
Modular Range-Trading Strategy (V9.2)# 模块化震荡行情策略 (V9.2)
# Modular Range-Trading Strategy (V9.2)
## 策略简介 | Strategy Overview
该策略基于布林带 (Bollinger Bands)、RSI、MACD、ADX 等经典指标的组合,通过多逻辑模块化结构识别震荡区间的价格反转机会,支持多空双向操作,并在相同逻辑下允许智能加仓,适用于震荡市场的回测和研究。
This strategy combines classic indicators such as Bollinger Bands, RSI, MACD, and ADX to identify price reversal opportunities within ranging markets. It features a modular multi-logic structure, allowing both long and short trades with intelligent pyramiding under the same logic. It is designed for backtesting and research in range-bound conditions.
---
## 功能特点 | Key Features
- **多逻辑结构**:支持多套震荡逻辑(动能确认均值回归、布林带极限反转等)。
- **加仓与仓位互斥**:同逻辑下可智能加仓,不同逻辑间自动互斥,避免冲突。
- **回测可调时间范围**:可自定义回测起止时间,精准评估策略表现。
- **指标可视化**:布林带、RSI、MACD 及动态 ATR 止损线实时绘图。
- **K线收盘确认信号**:通过 `barstate.isconfirmed` 控制信号,避免未收盘的虚假信号。
- **Multi-logic structure**: Supports multiple range-trading logics (e.g., momentum-based mean reversion, Bollinger Band reversals).
- **Pyramiding with mutual exclusion**: Allows intelligent pyramiding within the same logic while preventing conflicts between different logics.
- **Adjustable backtesting range**: Customizable start and end dates for accurate performance evaluation.
- **Visual indicators**: Real-time plotting of Bollinger Bands, RSI, MACD, and dynamic ATR stop lines.
- **Close-bar confirmation**: Uses `barstate.isconfirmed` to avoid false signals before bar close.
---
## 使用说明 | Usage
1. 将该脚本添加到 TradingView 图表。
2. 在参数中设置回测时间段和指标参数。
3. 仅用于学习与策略研究,请勿直接用于实盘交易。
1. Add this script to your TradingView chart.
2. Configure backtesting dates and indicator parameters as needed.
3. For educational and research purposes only. **Not for live trading.**
---
## ⚠️ 免责声明 | Disclaimer
本策略仅供学习和研究使用,不构成任何形式的投资建议。
作者不参与任何实盘交易、资金管理或收益分成,也不保证策略盈利能力。
严禁将本脚本用于任何非法集资、私募募资或与虚拟货币相关的金融违法活动。
使用本策略即表示您自行承担所有风险与法律责任。
This strategy is for educational and research purposes only and does not constitute investment advice.
The author does not participate in live trading, asset management, or profit sharing, nor guarantee profitability.
The use of this script in illegal fundraising, private placements, or cryptocurrency-related financial activities is strictly prohibited.
By using this strategy, you accept all risks and legal responsibilities.
---
MACD Signal with Williams %R ColoringA simple fused indicator of 2, 1) MACD signal lines made colouring when 2) Williams % R is in overbought or oversold. not my own coding, just took two readily available indicators and coded them together.
NAIFCHART_NAS Ultimate Algo | Remastered+# NAIFCHART NAS Ultimate Algo Remastered+: Advanced Trend Following System
## Overview
The NAIFCHART NAS Ultimate Algo Remastered+ represents a sophisticated trend-following system that combines Supertrend analysis with multiple moving average confirmations. This comprehensive indicator was developed and shared by the trading community at t.me designed specifically for identifying high-probability trend continuation and reversal opportunities.
## Core Algorithm Components
**Supertrend Foundation**: The primary signal generation relies on a customizable Supertrend indicator with adjustable sensitivity (1-20 range). This adaptive trend-following tool uses Average True Range calculations to establish dynamic support and resistance levels that respond to market volatility.
**SMA Confirmation Matrix**: Multiple Simple Moving Averages (SMA 4, 5, 9, 13) provide layered confirmation for signal strength. The algorithm distinguishes between regular signals and "Strong" signals based on SMA 4 vs SMA 5 relationship, offering traders different conviction levels for position sizing.
**Trend Ribbon Visualization**: SMA 21 and SMA 34 create a visual trend ribbon that changes color based on their relationship. Green ribbon indicates bullish momentum while red signals bearish conditions, providing immediate visual trend context.
**RSI-Based Candle Coloring**: Advanced 61-tier RSI system colors candles with gradient precision from deep red (RSI ≤20) through purple transitions to bright green (RSI ≥79). This visual enhancement helps traders instantly assess momentum strength and overbought/oversold conditions.
## Signal Generation Logic
**Buy Signal Criteria**:
- Price crosses above Supertrend line
- Close price must be above SMA 9 (trend confirmation)
- Signal strength determined by SMA 4 vs SMA 5 relationship
- "Strong Buy" when SMA 4 ≥ SMA 5
- Regular "Buy" when SMA 4 < SMA 5
**Sell Signal Criteria**:
- Price crosses below Supertrend line
- Close price must be below SMA 9 (trend confirmation)
- Signal strength based on SMA relationship
- "Strong Sell" when SMA 4 ≤ SMA 5
- Regular "Sell" when SMA 4 > SMA 5
## Advanced Risk Management System
**Automated TP/SL Calculation**: The indicator automatically calculates stop loss and take profit levels using ATR-based measurements. Risk percentage and ATR length are fully customizable, allowing traders to adapt to different market conditions and personal risk tolerance.
**Multiple Take Profit Targets**:
- 1:1 Risk-Reward ratio for conservative profit taking
- 2:1 Risk-Reward for balanced trade management
- 3:1 Risk-Reward for maximum profit potential
**Visual Risk Display**: All risk management levels appear as both labels and optional trend lines on the chart. Customizable line styles (solid, dashed, dotted) and positioning ensure clear visualization without chart clutter.
**Dynamic Level Updates**: Risk levels automatically recalculate with each new signal, maintaining current market relevance throughout position lifecycles.
## Visual Enhancement Features
**Customizable Display Options**: Toggle trend ribbon, TP/SL levels, and risk lines independently. Decimal precision adjustments (1-8 decimal places) accommodate different instrument price formats and personal preferences.
**Professional Label System**: Clean, informative labels show entry points, stop losses, and take profit targets with precise price levels. Labels automatically position themselves for optimal chart readability.
**Color-Coded Momentum**: The gradient RSI candle coloring system provides instant visual feedback on momentum strength, helping traders assess market energy and potential reversal zones.
## Implementation Strategy
**Timeframe Optimization**: The algorithm performs effectively across multiple timeframes, with higher timeframes (4H, Daily) providing more reliable signals for swing trading. Lower timeframes work well for day trading with appropriate risk adjustments.
**Sensitivity Adjustment**: Lower sensitivity values (1-5) generate fewer but higher-quality signals, ideal for conservative approaches. Higher sensitivity (15-20) increases signal frequency for active trading styles.
**Risk Management Integration**: Use the automated risk calculations as baseline parameters, adjusting risk percentage based on account size and market conditions. The 1:1, 2:1, 3:1 targets enable systematic profit-taking strategies.
## Market Application
**Trend Following Excellence**: Primary strength lies in capturing significant trend movements through the Supertrend foundation with SMA confirmation. The dual-layer approach reduces false signals common in single-indicator systems.
**Momentum Assessment**: RSI-based candle coloring provides immediate momentum context, helping traders assess signal strength and potential continuation probability.
**Range Detection**: The trend ribbon helps identify ranging conditions when SMA 21 and SMA 34 converge, alerting traders to potential breakout opportunities.
## Performance Optimization
**Signal Quality**: The requirement for both Supertrend crossover AND SMA 9 confirmation significantly improves signal reliability compared to basic trend-following approaches.
**Visual Clarity**: The comprehensive visual system enables rapid market assessment without complex calculations, ideal for traders managing multiple instruments.
**Adaptability**: Extensive customization options allow fine-tuning for specific markets, trading styles, and risk preferences while maintaining the core algorithm integrity.
## Community Resources
Join the active trading community at t.me for ongoing discussions about optimization techniques, market analysis, and strategy refinements using this advanced algorithm system.
The collaborative environment provides valuable insights into parameter adjustments for different market conditions and real-world performance feedback from experienced traders.
## Conclusion
The NAIFCHART NAS Ultimate Algo Remastered+ combines proven trend-following principles with modern visual enhancements and comprehensive risk management. The algorithm's strength lies in its multi-layered confirmation approach and automated risk calculations, providing both novice and experienced traders with clear signals and systematic trade management.
Success with this system requires understanding the relationship between signal strength indicators and adapting sensitivity settings to match current market conditions. The comprehensive visual feedback system enables rapid decision-making while the automated risk management ensures consistent trade parameters.
Practice with different sensitivity settings and timeframes to optimize performance for your specific trading style and risk tolerance. The algorithm's systematic approach provides excellent framework for disciplined trend-following strategies across various market environments.
NAIFCHART_Algo Pro# NAIFCHART Algo Pro: Advanced Candlestick Pattern Analysis Tool
## Overview
The NAIFCHART Algo Pro indicator represents an innovative approach to candlestick pattern analysis, combining traditional engulfing patterns with advanced technical filters. This indicator was developed and shared by the trading community at t.me focusing on high-probability reversal signals through multi-layered confirmation.
## Core Algorithm Components
**Candle Stability Index**: Measures the ratio between candle body and total range (including wicks). Higher values indicate more decisive price action with stronger conviction. Default setting of 0.5 ensures only stable, well-formed candles generate signals, filtering out indecisive market conditions.
**RSI Momentum Filter**: Utilizes 14-period RSI with customizable threshold (default 50) to confirm overbought/oversold conditions. Buy signals require RSI below the threshold, while sell signals need RSI above the inverse threshold, ensuring momentum alignment with pattern direction.
**Candle Delta Analysis**: Examines price movement over a specified period (default 5 candles) to confirm directional bias. This filter ensures patterns occur after meaningful price moves in the opposite direction, increasing reversal probability.
**Engulfing Pattern Recognition**: Identifies classic bullish and bearish engulfing formations where the current candle completely engulfs the previous candle's body, indicating potential momentum shift.
## Signal Generation Logic
**Buy Signal Criteria**:
- Bullish engulfing pattern formation
- Candle stability above threshold level
- RSI below specified threshold (oversold condition)
- Price decrease over the delta length period
- Confirmed bar state (prevents repainting)
**Sell Signal Criteria**:
- Bearish engulfing pattern formation
- Candle stability above threshold level
- RSI above inverse threshold (overbought condition)
- Price increase over the delta length period
- Confirmed bar state (prevents repainting)
## Advanced Features
**Signal Filtering**: Optional "Disable Repeating Signals" feature prevents signal clusters by blocking consecutive identical signals. This enhances chart clarity and reduces noise in trending markets where multiple patterns might form in sequence.
**Visual Customization**: Multiple label styles including text bubbles, triangles, and arrows with full color customization. Label sizes range from tiny to huge, allowing adaptation to different chart configurations and personal preferences.
**Alert Integration**: Built-in alert system notifies traders immediately when buy or sell conditions are met, enabling real-time trade execution without constant chart monitoring.
## Implementation Strategy
**Timeframe Optimization**: The indicator performs effectively across multiple timeframes, with higher timeframes (1-hour and above) providing more reliable signals due to reduced market noise. Shorter timeframes require more conservative position sizing due to increased false signal probability.
**Parameter Tuning**:
- Increase Candle Stability Index for more selective signals in volatile markets
- Adjust RSI threshold based on market conditions (lower for trending markets, higher for ranging conditions)
- Modify Candle Delta Length for different trend confirmation periods
**Risk Management**: Combine signals with proper stop loss placement below/above the engulfing pattern's extreme points. Consider position sizing based on pattern strength and overall market context.
## Market Application
**Reversal Trading**: Primary application focuses on identifying high-probability reversal points after extended moves. The multi-filter approach significantly reduces false signals compared to basic engulfing pattern strategies.
**Trend Confirmation**: In trending markets, signals align with pullback completion, providing optimal entry points for trend continuation strategies. The RSI and delta filters help identify temporary retracements rather than trend changes.
**Range Trading**: Within sideways markets, signals often occur near range boundaries, providing effective support and resistance bounce opportunities with clearly defined risk parameters.
## Performance Optimization
**Market Selection**: The indicator performs best on liquid instruments with clear candlestick formations. Avoid extremely volatile or thin markets where patterns may be less reliable.
**Session Timing**: Consider trading sessions when focusing on specific markets. Major session overlaps often provide clearer patterns due to increased participation and volume.
**Confirmation Techniques**: While the indicator provides internal filtering, additional confirmation through volume analysis, key support/resistance levels, or broader market context enhances signal reliability.
## Community Resources
Access ongoing strategy discussions and optimization techniques through the source community at t.me where traders share practical applications and parameter adjustments for different market conditions.
The collaborative environment provides valuable insights into optimal settings for various trading styles and market environments, along with real-time feedback on signal quality and performance.
## Conclusion
NAIFCHART Algo Pro offers a sophisticated approach to candlestick pattern trading through intelligent filtering and confirmation mechanisms. The indicator's strength lies in combining traditional pattern recognition with modern technical analysis filters, creating a robust framework for identifying high-probability reversal opportunities.
Success with this tool requires understanding each component's role in signal generation and adapting parameters to match current market conditions and personal trading style. The community-driven development ensures practical relevance and ongoing refinement based on real trading experiences.
Practice with demo accounts to develop familiarity with signal timing and optimal parameter settings before live implementation. The indicator's systematic approach provides clear entry signals while maintaining flexibility for different risk management and position sizing strategies.
Advanced Trend Panel v3.1This is a comprehensive dashboard indicator designed to give traders a multi-faceted view of the market at a single glance. It combines key indicators across multiple timeframes, calculates trend duration, and presents all information in a clean, color-coded table. This tool is perfect for confirming trade ideas, identifying trend alignment, and understanding the underlying market dynamics.
#### Key Features:
* **All-in-One Dashboard:** A convenient on-chart table summarizes the state of multiple key indicators, saving you screen space and time.
* **Multi-Timeframe (MTF) Forecast:** Analyzes the long-term trend on a higher timeframe (e.g., Daily) to provide context for the current chart's trend.
* **Trend Analysis:** Uses dual sets of EMAs (long-term and short-term) to define the primary and immediate trend directions.
* **Trend Duration:** A unique feature that calculates how long the current short-term and long-term trends have been active, helping you gauge trend maturity.
* **Core Indicators Included:**
* **ADX:** Measures trend strength to differentiate between strong trends and weak or sideways markets.
* **RSI:** Identifies overbought and oversold conditions.
* **Point of Control (POC):** Shows the price level with the highest traded volume over a lookback period, acting as a key level of support/resistance.
* **Volume:** Compares current volume to its moving average to spot unusual activity.
* **Customizable Alerts:** Set up alerts for trend changes (long-term or short-term), RSI crossing into overbought/oversold zones, or shifts in ADX trend strength.
#### How to Use:
1. Apply the indicator to your chart.
2. In the settings, configure the timeframes, indicator lengths, and display options to match your trading style.
3. Use the table to quickly assess if the long-term trend, short-term trend, and momentum are aligned.
4. Enable alerts to be notified of key changes in market conditions without having to watch the chart constantly.
**Disclaimer:** This script is for educational purposes only and should not be considered financial advice. All trading involves risk. Past performance is not indicative of future results. Please backtest and use this tool as part of a comprehensive trading plan with proper risk management.
Feedback is always welcome! If you find this indicator useful, please leave a like.
SwingTrade ADX Strategy v6This is a swing trading strategy that combines VWAP (Volume Weighted Average Price), ADX (Average Directional Index) for trend strength, and volume ratios to generate long/short entry and exit signals. It's designed for daily charts but can be adapted.
#### Key Features:
- **Entries**: Based on VWAP crossovers, rising/falling delta (price deviation from VWAP), ADX trend confirmation, and volume ratios.
- **Exits**: Dynamic exits when VWAP delta reverses after a peak.
- **Filters**: Optional toggles for VWAP signals, ADX, and volume. Backtest date range for custom periods.
- **Visuals**: VWAP line, signal shapes/labels, and an info panel showing key metrics (VWAP Delta %, ADX, Volume Ratio).
- **Alerts**: Built-in alerts for buy/sell entries and exits.
#### How to Use:
1. Apply to your chart (e.g., stocks, forex, crypto).
2. Adjust parameters in the settings (e.g., ADX threshold, volume period).
3. Enable/disable indicators as needed.
4. Backtest using the date filters and review equity curve.
**Disclaimer**: This is for educational purposes only. Past performance is not indicative of future results. Not financial advice—trade at your own risk. Backtest thoroughly and use with proper risk management.
Feedback welcome! If you find it useful, give it a like.
RSI SMA 7 Signal Strategy (No 50 Level)Script uses SMA 7 Perio and 14 Period RSI
If SMA crosses 40 RSI level from below consider it a buy zone or buy signal, if SMA crosses from below 60 RSI level, then super bullish, IF SMA crosses 60 RSI level from above its a profit taking time and Sell zone, if SMA crosses 40 level from above then super bearish sell signal.
LBB + RSI FX EditionLBB + RSI ForeX Edition (FX) — Version v6.4.8-fx
**Combine Log Bollinger Bands, multi-level RSI signals, optional trend & pin-bar filters, ATR-based optional TP/SL and a compact signal table — all in one overlay.**
### 1. Key Features
* **Logarithmic Bollinger Bands (LBB):**
* Uses log-price SMA and standard deviation to derive upper/lower bands
* Provides a more symmetrical response to percentage-based moves
* **RSI Multi-Level Entries:**
* Generates long signals when price closes below the lower LBB and RSI < 30 / 35 / 40
* Generates short signals when price closes above the upper LBB and RSI > 60 / 65 / 70
* Three “strength” tiers for both buys and sells
* **Signal Filters (optional):**
* **EMA Trend Filter:** only take longs above a 50-period EMA or shorts below it
* **Pin-Bar Filter:** require a clear wick-to-body ratio on the signal candle
* **Confirmed Candle:** wait for candle close before signaling
* **ATR Display (optional):** show current ATR on the signal table
* **Flexible TP/SL Settings:**
* **Static (pips) or Dynamic (ATR-based) TP/SL**
* Toggle between pips and ticks for FX precision
* Minimum pip/tick threshold to avoid overly tight stops
* Separate TP/SL controls for longs and shorts
* **Visuals & Alerts:**
* Color-coded shapes for each RSI tier (green/orange/yellow for buys; blue/purple/red for sells)
* Customizable display of Bollinger Bands, ATR, signal table and win-rate stats
* Built-in `alertcondition` for each tier with clear emoji & strength label
* **Compact Signal Table:**
* Shows 📈/📉 entry price, RSI, ATR (if enabled), pin-bar ✔/–, timestamp (with UTC offset) and win-rate placeholder
---
### 2. Inputs & Groups
| Group | Input | Default | Notes |
| ---------------------- | ------------------------------------------ | ------- | ------------------------------------- |
| **Indicator Settings** | LBB Period (`lbbLength`) | 20 | Length for log-price SMA |
| | LBB Multiplier (`lbbMult`) | 2.0 | Std dev multiplier |
| | RSI Period (`rsiLength`) | 14 | |
| | ATR Period (`atrLength`) | 14 | |
| | Show ATR (`showATR`) | true | Toggles ATR in table |
| | UTC Offset Hours (`timeOffsetHours`) | 0 | Adjust table time to your timezone |
| **Signal Filters** | Use EMA Trend Filter (`useTrendFilter`) | false | |
| | EMA Period (`emaPeriod`) | 50 | |
| | Use Pin-Bar Filter (`usePinBarFilter`) | false | |
| | Pin-Bar Ratio (`pinBarRatio`) | 2.0 | Wick-to-body minimum |
| | Only on Confirmed Candle (`onlyConfirmed`) | false | |
| **TP/SL Settings** | Show TP/SL for Long (`showLongTpSl`) | false | |
| | Show TP/SL for Short (`showShortTpSl`) | false | |
| | Use Dynamic TP/SL (`useDynamicTpSl`) | false | ATR × multiplier |
| | TP/SL in Ticks (`useTicks`) | false | Instead of pips |
| | Min TP/SL Threshold (`minTpSlThreshold`) | 10.0 | In pips |
| | TP Long (pips) (`tpLongPips`) | 20 | Static targets |
| | SL Long (pips) (`slLongPips`) | 10 | |
| | TP Short (pips) (`tpShortPips`) | 20 | |
| | SL Short (pips) (`slShortPips`) | 10 | |
| | ATR Multiplier for TP (`atrMultiplierTP`) | 1.5 | |
| | ATR Multiplier for SL (`atrMultiplierSL`) | 1.0 | |
| **Visual Settings** | Show Signal Shapes (`showShapes`) | true | |
| | Show Bollinger Bands (`showBands`) | true | |
| | Show Statistics (`showStats`) | true | Win-rate currently placeholder “NaN%” |
---
### 3. Calculation Overview
1. **Log Bollinger Bands**
```pinescript
logClose = math.log(close)
logBasis = ta.sma(logClose, lbbLength)
logDev = lbbMult * ta.stdev(logClose, lbbLength)
lowerBand = math.exp(logBasis - logDev)
upperBand = math.exp(logBasis + logDev)
basisBand = math.exp(logBasis)
```
2. **RSI & ATR**
```pinescript
rsi = ta.rsi(close, rsiLength)
atrVal = ta.atr(atrLength)
```
3. **Pin-Bar Detection**
```pinescript
body = math.abs(close - open)
upperWick = high - math.max(close, open)
lowerWick = math.min(close, open) - low
isPinBarBull = lowerWick > body * pinBarRatio and upperWick < body
isPinBarBear = upperWick > body * pinBarRatio and lowerWick < body
```
4. **Trend & Confirmation Filters**
```pinescript
emaTrend = ta.ema(close, emaPeriod)
trendLong = close > emaTrend
trendShort = close < emaTrend
trendOkLong = useTrendFilter ? trendLong : true
trendOkShort= useTrendFilter ? trendShort: true
signalOk = onlyConfirmed ? barstate.isconfirmed : true
```
5. **Entry Conditions**
* **Long**: `close < lowerBand` + RSI < {30, 35, 40} + filters
* **Short**: `close > upperBand` + RSI > {60, 65, 70} + filters
---
### 4. Signal Plotting & Alerts
* **Shapes on Chart**
* 📈 LONG signals plotted below bar in green/orange/yellow triangles, sized by strength
* 📉 SHORT signals plotted above bar in blue/purple/red inverted triangles
* **Alert Conditions**
```pinescript
alertcondition(cond_rsi30_long, title="LBB LONG RSI <30", message="📈 LONG signal | Strong Buy | {{ticker}} @ {{close}} | {{interval}}")
// … and similarly for other tiers
```
---
### 5. TP/SL Management
1. **Delta Calculation**
```pinescript
rawTP = atrVal * atrMultiplierTP * tfMultiplier
rawSL = atrVal * atrMultiplierSL * tfMultiplier
pip = syminfo.mintick
pipMult = pip == 0.00001 ? 10 : pip == 0.01 ? 1 : 100
unitMult = useTicks ? 1 : pipMult
minDelta = minTpSlThreshold * pip * tfMultiplier * unitMult
```
2. **Dynamic TP/SL Lines**
* Deletes old lines and draws new dashed lines at `entry ± max(rawΔ, minDelta)` when signaled and `useDynamicTpSl` is enabled.
3. **Manual TP/SL Labels**
* On each bar checks if price hit the TP or SL level and drops a permanent label “TP @ …” or “SL @ …”.
---
### 6. Compact Signal Table
Positioned in the top-right corner, updates on each new signal:
| Column | Content |
| ------ | ----------------------------------------- |
| 0 | 📈/📉 Entry price with color background |
| 1 | `RSI: XX` |
| 2 | `ATR: X.XXXXX` (if enabled) |
| 3 | `PinBar: ✔` or `–` |
| 4 | `Time: DD-MM-YY HH:mm` (with UTC offset) |
| 5 | `Win Rate: NaN%` (placeholder if enabled) |
---
### 7. Recommendations & Best Practices
* **Timeframe Selection:** works best on FX pairs; adjust `tfMultiplier` sensitivity by avoiding ultra-low minute charts unless needed.
* **Trend Filter:** enable `useTrendFilter` to align signals with broader trend, reducing noise.
* **Pin-Bar Filter:** turn on `usePinBarFilter` when you need higher-quality reversal candles.
* **Dynamic TP/SL:** use ATR-based exits (`useDynamicTpSl=true`) to adapt stop levels to changing volatility.
* **Ticks vs Pips:** for very tight markets (e.g. FX majors on low timeframes), switch to ticks.
* **Backtest Thoroughly:** before deploying alerts, test across multiple symbols/timeframes to tune multipliers and thresholds.
* **Alert Integration:** set up TradingView alerts using the built-in `alertcondition` names for fully automated notifications.
逆勢布林+RSI策略 for SOL可以直接套用到 SOLUSDT, SOLPERP, 或其他 SOL 合約。
在策略回測介面中選擇 5min 或 15min 看策略表現。
若要調整停利%或 RSI 數值,改變 rsi < 25 與 (shortEntryPrice - close) / shortEntryPrice >= 0.035 即可。
This can be directly applied to SOLUSDT, SOLPERP, or other SOL futures.
In the strategy backtesting interface, select 5-minute or 15-minute periods to view strategy performance.
To adjust the take-profit percentage or RSI value, set RSI < 25 and (shortEntryPrice - close) / shortEntryPrice >= 0.035.