ATM_RSI_LiDo
Download scriptThis technical tool is designed to provide traders with a visual representation of market momentum by utilizing the Relative Strength Index (RSI). It serves as a specialized dashboard that helps identify whether a currency pair or asset is currently overbought, oversold, or moving in a specific trend direction.
Core Functionality
The primary logic of this script centers on calculating a moving average of price changes over a specific timeframe (defaulting to 12 periods). By analyzing these fluctuations, the tool translates complex price action into a standardized scale between 0 and 100. This allows you to see the "strength" of a trend regardless of the actual price of the asset.
Visual Components
The script provides two distinct visual layers on your chart:
- Continuous Momentum Line: The tool draws a flowing line that tracks the RSI value in real-time. This represents the ongoing momentum of the market, helping you see the smooth progression of price strength.
- Precision Markers: Alongside the line, the script places specific dots (arrows) at each data point. These act as precise anchors, highlighting the exact momentum level at any given moment in history or the present.
Key Reference Levels
To make the data actionable for trading, the tool automatically establishes four critical horizontal boundaries:
- Upper Boundaries (65 and 75): These levels serve as "Overbought" alerts. When the line climbs into these zones, it suggests that the current upward move may be becoming exhausted, potentially signaling a cooling-off period or a price reversal.
- Lower Boundaries (25 and 35): These levels serve as "Oversold" alerts. When the line drops into these regions, it indicates that the downward pressure may be reaching a peak, suggesting that the asset might be primed for a bounce or a trend reversal.
How it Works for the User
Instead of just looking at raw price candles, this script simplifies the market "noise." It takes the closing prices of the market and converts them into a momentum score. By watching where the line sits in relation to the 75, 65, 35, and 25 levels, you can more easily identify when a market is stretched too far in one direction, helping you spot potential opportunities for entries or exits based on exhaustion.
//+------------------------------------------------------------------+
//| RSI_LiDo.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//| original "RSI_dot" concept by Accrete, and nicely tweaked by |
//| telsa of ForexFactory fame !! Many thanks telsa...Accrete |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
#property indicator_separate_window
#property indicator_minimum 0
#property indicator_maximum 100
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Aqua
#property indicator_level1 75
#property indicator_level2 65
#property indicator_level3 35
#property indicator_level4 25
//---- input parameters
extern int RSIPeriod=12;
//---- buffers
double dRsiLine[];
double dRsiDots[];
int init() {
IndicatorShortName("ATM RSI LiDo (" + RSIPeriod + ")");
SetIndexBuffer(0,dRsiLine);
SetIndexStyle (0,DRAW_LINE);
SetIndexLabel (0,"RSI");
SetIndexBuffer(1,dRsiDots);
SetIndexStyle (1,DRAW_ARROW);
SetIndexArrow (1,159);
SetIndexLabel (1,"RSI");
return(0);
}
int start() {
// Determine how far back to iterate
int iBarsToCalc = Bars - IndicatorCounted();
if (iBarsToCalc < Bars) iBarsToCalc++;
for (int i=iBarsToCalc-1;i>=0;i--) {
dRsiLine[i] = iRSI(NULL,0,RSIPeriod,PRICE_CLOSE,i);
dRsiDots[i] = dRsiLine[i];
}
}
//__________________
//Will Code For Pips
Comments