RSI-MFI History Finder

476
Description:
This indicator replicates the original RSI-MFI (Money Flow wave/band) found in popular systems like Market Cipher B and VuManChu (VMC), enhancing it with a unique historical search engine. It is built specifically for traders who rely on contextual market analysis, pattern matching, and backtesting identical historical setups.

The indicator automatically scans the chart's history to find the most recent candle where the Money Flow index reached an extremity identical to (or deeper than) the current level (or a manually specified target), helping you instantly cross-reference the current setup with historical precedents.

Key Features:

  • Original VMC Math: Fully complies with the original formula calculating RSI-MFI based on the smoothed ratio of candle bodies to their wicks. The values perfectly match classical sub-window oscillators.
    Smart Directional Search: The algorithm automatically adapts to the sign of your target value:
    - If the RSI-MFI target is negative (oversold conditions), the script searches for the closest historical bar where the value was equal to or lower than the target (matching similar or deeper exhaustion).
    - If the RSI-MFI target is positive (overbought conditions), the script looks for a bar where the value was equal to or higher than the target (matching similar or stronger momentum).
    Local Noise Filter (Skip Recent Bars): A fully customizable setting allows you to exclude the N most recent bars from the search. This prevents the script from catching candles within the current consolidation or immediate market move, forcing it to look back into previous isolated market cycles.
    Perfect Independent Scaling: Operating in a dedicated sub-window (overlay=false) with a fixed range from -100 to +100 and static boundary lines (0, ±50), the oscillator remains perfectly readable and will never get flattened by the absolute price of the asset.
  • Instant Candle Navigation: The script pushes the exact date and time of the matched historical point directly to the Pine Logs panel, allowing you to copy it with a single click.


How to Use:
  1. Open the Pine Logs tab at the bottom of TradingView (located next to the Pine Editor and Strategy Tester).
    Once the indicator identifies a match, an orange dashed vertical line and a label will appear in the sub-window, and a log entry will generate: GO-TO DATE: YYYY-MM-DD HH:MM.
    Highlight and copy (Ctrl+C / Cmd+C) this date from the logs.
    Press Alt + G (or Option + G on Mac) to bring up TradingView's native "Go to" navigation window, paste the copied date (Ctrl+V), and hit Enter. The chart will instantly snap to that precise historical candle.
  2. If you want to simulate the price action from that point forward, press Alt + B to activate the Bar Replay tool and click right on the highlighted candle to cut the chart there.


Inputs & Settings:
  • What to look for? – Switch between tracking the live closing value of the oscillator (Current Value) or looking for a custom predefined level (Manual Input Value).
    Skip Recent Bars – Number of recent candles excluded from the scan (default is 7). Protects against triggering within the current market impulse.
    Historical Search Depth – Max number of bars to scan backwards (supports up to 5000 bars with automated memory buffer extension).
    Original RSI-MFI Settings – Core period, multiplier, and offset variables to keep the oscillator aligned with your existing trading strategy.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.