dsl_-_rsi
Download scriptThis script is a specialized technical analysis tool designed for the MetaTrader platform. It provides traders with visual data to help identify market trends and potential price movements by combining two sophisticated financial concepts: Relative Strength Index (RSI) and Heikin Ashi price smoothing.
Here is a breakdown of how the logic works in plain terms:
Core Data Processing
The tool starts by taking standard market prices (like Open, High, Low, and Close) and transforming them into Heikin Ashi values. Heikin Ashi is a popular charting method used to filter out "market noise," making it easier to see the underlying trend of the price movement.
Advanced RSI Calculation
Instead of using a standard RSI, which can often be jagged or erratic, this script calculates a customized RSI based on those smoothed Heikin Ashi values. It allows you to choose exactly which type of price data (such as "Median," "Typical," or "Weighted") the RSI should track. This gives the user significant flexibility in how the momentum is measured.
Trend Tracking and Smoothing
The script goes beyond a simple "overbought" or "oversold" calculation. It uses a dynamic logic to track trend levels:
- Dynamic Thresholds: It calculates two moving "levels"—one for upward trends and one for downward trends.
- Alpha Smoothing: It uses a mathematical smoothing factor (Alpha) to ensure that these levels move fluidly rather than jumping abruptly from bar to bar.
- State Detection: The script identifies the market "state." If the current price is above its upper dynamic level, it registers a bullish state; if below the lower level, it registers a bearish state.
Visual Presentation (Signal Lines)
The final output is designed to be clean and readable on your chart. It doesn't just show raw numbers; it creates distinct visual "points" or segments based on the market state.
- It uses logic to detect where one trend ends and another begins.
- It "cleans" the data points so that you see clear, continuous lines representing the current momentum.
- By plotting these smoothed signal lines, the tool helps traders visualize whether the current price action is confirming a sustained trend or if it is simply fluctuating within a range.
Summary for the User
In short, this script acts as a momentum stabilizer. It takes raw, messy price data, cleans it using Heikin Ashi logic, calculates the strength of that movement via a custom RSI, and then draws smooth visual lines that help you see whether the market is trending up, trending down, or staying neutral.
ÿþ/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# p r o p e r t y c o p y r i g h t "