ML RSI - imaclone.xUltimate Multi-Resolution RSI
Developed by imaclone.x.
Last Updated: August 21st 2025
A single indicator that fuses my ML-RSI.ai pipeline with a classic multi-timeframe RSI. One script, dual-resolution oscillators if desired, plus a machine-learning similarity engine and modular signal-processing layers.
What it does
* Primary RSI augmented with KNN similarity engine (K, lookback, weighting). Feature embeddings include RSI magnitude, RSI momentum, volatility surface, regression slope, and price momentum vectors.
* Adaptive smoothing stack: Kalman filter recursion, Double EMA cascades, or ALMA convolution.
* Multi-resolution control for the primary oscillator timeframe.
* Optional *second* RSI projected from any timeframe for hierarchical confluence.
* Advanced visuals: upper/lower thresholds, midline, background regime highlighting, crossovers, and B/S event labels.
* Color architectures: None, Trend-Following (50-line bifurcation), or Impulse (band-breach). Optional bar tinting for full-chart context.
Inputs (groups)
* Timeframe Settings: primary + secondary RSI TF/lengths.
* Levels & Visuals: thresholds, highlights, cross events, B/S markers.
* RSI Base: smoothing toggle, MA class, ALMA sigma.
* KNN Machine Learning: enable, K neighbors, historical window, feature dimensionality, ML weighting.
* Advanced Filtering: method + intensity.
* Coloring: None, Trend-Following, Impulse.
Signals
* B flag when ML-RSI crosses upward through the lower threshold.
* S flag when ML-RSI crosses downward through the upper threshold.
* Secondary RSI = higher-timeframe confirmation, not standalone trigger.
Usage notes
* Raise ML weight + feature dimensionality for deeper similarity recognition; lower them for classic oscillator behavior.
* Kalman recursion delivers adaptive, low-lag smoothing; Double EMA and ALMA yield stronger dampening.
* Typical config: intraday primary RSI + higher-TF secondary RSI for regime anchoring.
Changelog
* v6 merge: Unified CM-style MTF RSI framework with my KNN-enhanced kernel and filter stack. One composite indicator replaces multiple scripts.
Credits
* MTF band logic inspired by earlier open-source frameworks.
* ML kernel and implementation by imaclone.x.
Disclaimer
For research and algorithmic experimentation only. No signals guaranteed.
And please kindly, for the love of God, DYOFR.
Ciclos
Composite PR Signal (Trend↔Revert + ADX gate)Core Components
1. Dynamic Inputs
Max/PR windows (maxLen, prWin) – define historical lookbacks for oscillators and percentile ranks.
Smoothing (smooth) – applies an EMA filter to stabilize composite scores.
Threshold (th) – governs entry sensitivity.
Holding period (hBars) – maximum bars allowed in a trade.
Execution options – allow shorting, fast approximations for PR and CCI.
2. Custom Utility Functions
The script implements optimized versions of common TA operations:
Rolling sums, delays, and moving averages (EMA, RMA, SMA).
Lazy rolling extrema (efficient highest/lowest lookups).
Stateful arrays for tracking oscillator values across bars.
Fast approximations for percentile ranks and indicators.
3. Indicators Used
The system calculates a broad set of oscillators, including:
Trend/Momentum: ROC, TRIX, TSI, MACD histogram, OBV ROC, AO, CMF, BOP, UO, ADX.
Reversion/Oscillators: RSI, Stochastic K/D, MFI, Williams %R, CCI, CMO.
Each is converted into a percentile rank (PR) to normalize values between 0–100.
4. Composite Scoring
Two composite signals are built:
Trend Score – averages normalized outputs of momentum indicators.
Reversion Score – averages normalized outputs of oscillators prone to mean reversion.
ADX Gate – when ADX PR is high, the strategy favors trend score; when low, it favors reversion score.
Final score is smoothed and compared against entry thresholds.
5. Trade Logic
Entry:
Long: When composite score crosses above +th.
Short: When composite score crosses below -th (if enabled).
Exit:
Opposite crossover signal.
Or trade duration exceeds hBars.
6. Risk/Execution Parameters
Initial capital: 100,000
Commission: 0.01% per trade
Fixed order size: 100 units
No pyramiding
Intended Use
This script is designed for:
Swing trading across multiple assets (equities, forex, crypto).
Adapting to market regimes — capturing breakouts during strong trends, but fading moves when markets are choppy.
Sessions RangeThis script clearly displays the price ranges (High–Low) of the main sessions—Sydney, Tokyo, London, and New York—with boxes on the chart and marked levels. Level labels can display price and date (or day of the week) in the time zone of your choice (GMT).
Main Features
Boxes by session: Visually highlight the range for each session.
High/Low levels: Lines at the session extremes, with configurable length.
Smart labels: If you choose to show "on the right," only active (unmitigated) levels track the price; when mitigated, they return to their starting point, keeping the chart clean.
Flexible date: Choose between day of the month (with time) or day of the week.
Alerts (optional): Notification when a level is broken.
Notes
The time zone displayed on the labels follows the chosen GMT, regardless of the chart time zone.
You can choose to extend levels until they are mitigated or beyond, depending on your reading.
SatoshiFrame Elliott WaveAuto Elliott Wave Counter – Automatically detects and labels Elliott Waves on your chart. Simple, fast, and customizable for smarter market analysis.
KA Weekly Open (Apertura Semanal)KA Weekly Open (Current Week Only)
This indicator automatically plots a horizontal line at the weekly opening price on your chart.
The line updates each week with the new weekly open.
Historical weekly lines remain fixed (not extended).
The current week’s line extends to the left, and the price label is shown on the right side of the chart, near the price scale.
You can adjust the label’s offset from the scale using the input settings.
SatoshiFrame Liquidity SwingsLiquidity Pleasre: Identifies key liquidity zones on the chart with colored clouds and a bottom-pane Liquidity Index, helping traders spot potential support, resistance, and high-volume reversal areas.
Weekly GridWeekly Grid Indicator
What It Does
Weekly Grid tracks Sunday 4:00 PM to Monday 4:00 PM (UTC-7) price ranges and plots high/low horizontal lines with vertical period markers. Helps identify weekly support/resistance levels.
Key Features
Period: Sun 4PM - Mon 4PM (UTC-7)
Lines: 2px thick high/low levels with price labels
Verticals: Green lines marking period boundaries
Alerts: Price breaks above high/below low
Lookback: Adjustable historical periods (default 1000 bars)
Trading Applications
Breakouts: Trade breaks of weekly high/low
Range: Fade approaches to extreme levels
Support/Resistance: Use as key weekly pivots
Alerts: Get notified of level breaks
Best For
Day traders seeking weekly structure
Swing traders using weekly pivots
Anyone wanting Sunday-Monday momentum levels
Simple weekly levels. Clear trading signals.
Copy the Pine Script code, add to TradingView, and start trading the levels.
Quarterly Theory Markers[DarkKnightDrako]
Quarterly Theory Zones
Grayscale Chart Color ( Background colors can be changed)
12PM - 12PM with Asia, London, NewYork AM, NewYork PM lines.
Prima de Riesgo High Yield + Eventos HistóricosPrima de risgo de los bonos basura. Muetra los periodos de recesión económica en las bolsas.
Alerta de toque de la 200-Week SMACuando el precio toca la MMS de 200 semanas es una posible compra.
SatoshiFrame Time Cycles)This powerful indicator highlights key upcoming time cycles on your chart, helping you anticipate potential market turning points. It automatically detects the latest trend cross and marks the next important intervals with vertical lines, giving you a clear visual guide for planning entries, exits, and timing your trades. All lines extend across the full chart for maximum clarity, even if they occur in future bars. Perfect for traders who want to stay ahead of the market rhythm.
Waves of Wealth Pair Trading RatioThis versatile indicator dynamically plots the ratio between two user-selected instruments, helping traders visualize relative performance and detect potential mean-reversion or trend continuation opportunities.
Features include:
User inputs for selecting any two instrument symbols for comparison.
Adjustable moving average period to track the average ratio over time.
Customizable standard deviation multiplier to define statistical bands for overbought and oversold conditions.
Visual display of the ratio line alongside upper and lower bands for clear trading signals.
Ideal for pair traders and market analysts seeking a flexible tool to monitor inter-asset relationships and exploit deviations from historical norms.
Simply set your preferred symbols and parameters to tailor the indicator to your trading style and assets of interest.
How to Use the Custom Pair Trading Ratio Indicator
Select symbols: Use the indicator inputs to set any two instruments you want to compare—stocks, commodities, ETFs, or indices. No coding needed, just type or select from the dropdown.
Adjust parameters: Customize the moving average length to suit your trading timeframe and style. The standard deviation multiplier lets you control sensitivity—higher values mean wider bands, capturing only larger deviations.
Interpret the chart:
The ratio line shows relative strength between the two instruments.
The middle line represents the average ratio (mean).
The upper and lower bands indicate statistical extremes where price action is usually overextended.
Trading signals:
Look to enter pair trades when the ratio moves outside the bands—expecting a return to the mean.
Use the bands and mean to set stop-loss and profit targets.
Combine with other analysis or fundamental insight for best results.
Ликвидации - LiqidИндикатор «Ликвид» показывает зоны сильного страха на рынке. Исторически такие зоны часто становятся благоприятными для покупки.
🔹 Сложный % инвестиции.
Покупаем, когда все красное и все боятся! 💰
Следите за нашим каналом в телеграмм, ссылка в профиле!
💰 Копилка Баффета
🚀 Крипторынок без розовых очков!
✅ Учимся у Баффета (даже в крипте это работает!)
////////////////////////
The "Liqid" indicator highlights fear zones in the market. Historically, these zones have been favorable for buying.
🔹 Complex % investment strategy.
We buy when everything is red and fear is high! 💰
Follow our channel Telegram! Check our profile!
💰 Buffett's Piggy Bank
🚀 Crypto market without rose-colored glasses!
✅ Learning from Buffett (even in crypto, it works!)
Next Week Vertical Line (Limited)A vertical line is drawn at the beginning of each week. A vertical line for the following week is also displayed. This will allow you to execute real-time strategies while keeping the horizontal axis of one week in mind.
Price Persistence ScreenerPrice Persistence Screener
Pine Script v6 | Inspired by @pradeepbonde on X
This indicator, inspired by the insights of @pradeepbonde , is designed to identify stocks with high price persistence—stocks that consistently close higher than the previous day's close over various lookback periods. As described by Pradeep Bonde, stocks with high persistence are strong candidates for trading pullbacks or consolidations, as they often resume their upward trend due to aggressive buying and low selling pressure. This tool helps traders screen for such stocks and visualize their persistence across multiple timeframes.
Features:
Measures price persistence by counting bars where the closing price exceeds the previous bar’s close for fixed periods: 499, 252, 126, 60, 40, 20, 15, 10, and 5 bars.
Includes a customizable lookback period (1 to 499 bars) for flexible analysis.
Allows users to set a custom persistence threshold (0% to 100%) to highlight strong bullish trends.
How It Works:
For each lookback period, the indicator calculates how many times the closing price is higher than the previous bar’s close.
A higher count indicates stronger bullish persistence, signaling stocks with sustained upward momentum.
Usage:
This screener is aimed to be used on pine screener to see data in columns. Add this indicator to you favorites and in pine screener scan on your watchlist of up to 1000 stocks
Adjust the custom lookback period and threshold via input settings.
Sort columns to compare persistence across timeframes and identify stocks with high persistence for swing trading or long-term holding.
Settings:
Custom Lookback Period (Bars): Set the number of bars for the custom persistence calculation (default: 100).
Custom Persistence Threshold (%): Define the percentage threshold for highlighting high persistence in the custom period (default: 70%).
Credits:
This indicator is based on the price persistence concept shared by @pradeepbonde
in his YouTube video (www.youtube.com). He explains that stocks with high persistence—those consistently closing higher day after day—are strong candidates for trading pullbacks, as they tend to resume their upward trend. This screener automates and visualizes that concept, making it easier for traders to identify such stocks.
Note:
Ensure sufficient historical data is available for accurate calculations, especially for longer periods like 499 bars. if stock is less than 499 bars.
High persistence stocks may eventually lose momentum, signaling potential reversals or shorting opportunities, as noted by @pradeepbonde
.
Use this indicator as part of a broader trading strategy to screen strong trends with custom lookback scan, combining it with other technical or fundamental analysis.
BTC Lead(v3.32)Summary
A 15-minute, BTC-focused lead/divergence indicator designed for simple execution: when a ▲/▼ appears, start scaling in with small clips; when a ■ (black square) prints, it means the indicator’s edge has weakened (not that the market trend is over). Real-time expected move label and alert templates included. Do not fade the signal—if you must try the opposite side, wait until a ■ appears.
How to read the signals
▲ Green → Long bias increased
▼ Pink → Short bias increased
■ Black → Edge weakened; consider taking profits/standing aside
Multiple level markers on the same bar (L2/L3/L4) = stronger setup
Live label (top of chart)
A single line shows the Expected Move (%) with arrow and color-coded background (↑ green / ↓ pink) for instant direction clarity.
Tip: Use Replay to watch label → ▲/▼ → ■ sequences on past data.
Confidence filter (important)
|Expected Move| < 1% → treat as noise / ignore
If considering the opposite direction, wait for a ■ first (edge reduced).
Scope
Internal calculations are fixed to 15-minute resolution.
Built for BTC 15m. It may display on other crypto symbols/timeframes, but performance is not guaranteed.
Alerts
Ready-made conditions: ENTRY LONG / ENTRY SHORT / EXIT LONG / EXIT SHORT. Add an alert on this indicator and choose the condition you want.
Risk note
For research/education only. Past behavior doesn’t guarantee future results. Predefine position sizing, stops, and profit-taking, and execute consistently.
BTC Lead(v3.31)Summary
A 15-minute, BTC-focused lead/divergence indicator designed for simple execution: when a ▲/▼ appears, start scaling in with small clips; when a ■ (black square) prints, it means the indicator’s edge has weakened (not that the market trend is over). Real-time expected move label and alert templates included. Do not fade the signal—if you must try the opposite side, wait until a ■ appears.
How to read the signals
▲ Green → Long bias increased
▼ Pink → Short bias increased
■ Black → Edge weakened; consider taking profits/standing aside
Multiple level markers on the same bar (L2/L3/L4) = stronger setup
Live label (top of chart)
A single line shows the Expected Move (%) with arrow and color-coded background (↑ green / ↓ pink) for instant direction clarity.
Tip: Use Replay to watch label → ▲/▼ → ■ sequences on past data.
Confidence filter (important)
|Expected Move| < 1% → treat as noise / ignore
If considering the opposite direction, wait for a ■ first (edge reduced).
Scope
Internal calculations are fixed to 15-minute resolution.
Built for BTC 15m. It may display on other crypto symbols/timeframes, but performance is not guaranteed.
Alerts
Ready-made conditions: ENTRY LONG / ENTRY SHORT / EXIT LONG / EXIT SHORT. Add an alert on this indicator and choose the condition you want.
Risk note
For research/education only. Past behavior doesn’t guarantee future results. Predefine position sizing, stops, and profit-taking, and execute consistently.
Fed Funds Rate-of-ChangeFed Funds Rate-of-Change
What it does:
This indicator pulls the Effective Federal Funds Rate (FRED:FEDFUNDS, monthly) and measures how quickly it’s changing over a user-defined lookback. It offers stabilized change metrics that avoid the “near-zero blow-up” you see with naive % ROC. The plot turns red only when the signal is below the lower threshold and heading down (i.e., value < –threshold and slope < 0).
This indicator is meant to be useful in monitoring fast cuts on the part of the FED - a signal that has preceded recession or market pullbacks in times prior.
Change modes: Percentage, log and delta.
Percent ROC (ε floor): 100 * (now - prev) / max(prev, ε)
Log change (ε): 100 * (ln(now + ε) - ln(prev + ε))
Delta (bps): (now - prev) * 100 (basis points; avoids percentage math)
Tip: For “least drama,” use Delta (bps). For relative change without explosions near zero, use Log change (ε).
Key inputs:
Lookback (months): ROC window in calendar months (because source is monthly).
Change Metric: one of the three options above.
ε (percentage points): small constant (e.g., 0.25 pp) used by Percent ROC (ε) and Log change (ε) to stabilize near-zero values.
EMA Smoothing length: light smoothing of the computed series.
Clip |value| at: optional hard cap to tame outliers (0 = off).
Threshold % / Threshold bps: lower/upper threshold band; unit adapts to the selected metric.
Plot as histogram: optional histogram view.
Coloring / signal logic
Red: value is below the lower threshold (–threshold) and the series is falling on the current bar.
How to use:
Add to any chart (timeframe doesn’t matter; data is monthly under the hood).
Pick a Change Metric and set Lookback (e.g., 3–6 months).
Choose a reasonable threshold:
Percent/Log: try 10–20%
Delta (bps): try 50–100 bps
Optionally smooth (EMA 3–6) and/or clip extreme spikes.
Interpretation
Sustained red often marks periods of accelerating downside in the Fed Funds change metric (e.g., policy easing momentum when using bps).
Neutral (gray) provides context without implying direction bias.
Notes & limitations
Source is monthly FRED series; values update on monthly closes and are stable (no intrabar repainting of the monthly series).
Threshold units switch automatically with the metric (%, %, or bps).
Smoothing/clip are convenience tools; adjust conservatively to avoid masking important shifts.
Estratégia MSB AnúbisThe MSB Anubis Strategy combines RSI, volume, and divergences to identify potential reversal points with greater accuracy.
It includes the 200-period SMA as a trend filter, providing additional context
Horrible Pine ScriptA script with a bug in setting the background color. Specifically written for the QQQ. Regardless of the parameter, the color is always red. Three test values are output.
Gustavo Status barA Pine Script v6 chart overlay that shows a persistent status table with continuously updating Buy/Sell percentages, driven by 15-minute microstructure but governed (and capped) by the selected main timeframe’s market structure (default 1H) using HH/HL vs LL/LH with smooth easing.