Rsi_Lido_SuperRsi_v1.92_Compatible2

Download script
Rsi_Lido_SuperRsi_v1.92_Compatible2

This script is a specialized technical analysis tool designed for the MetaTrader 4 platform. It functions as an advanced Relative Strength Index (RSI) indicator, which traders use to measure the speed and change of price movements to identify whether an asset is overbought or oversold.

Core Functionality

The primary role of this script is to calculate and display the RSI value on a separate window in your trading terminal. Unlike basic indicators, this version includes specific logic to ensure consistency and compatibility with broader trading systems:

  • Dual Visual Outputs: The script generates two distinct visual elements simultaneously. It plots a continuous line to represent the smooth flow of the RSI, while also placing specific markers (dots) at key points. This allows traders to see both the general trend and specific price data points at a glance.
  • Smart Period Management: A standout feature of this tool is its ability to "remember" settings. It can link with global variables—external data points that persist even if the software is restarted. This ensures that the specific timeframe (the "Period") used for calculations remains consistent across different sessions without the user having to manually reset it every time they open the platform.
  • Dynamic Labeling: The tool automatically updates its name on your chart to show exactly which RSI Period is currently being calculated. This provides immediate clarity for traders who may be running multiple charts and need to know the specific parameters of each.

Key Features for the User

  • Customizable Alert System: The script includes a safety check that can alert the user if a required global variable is missing, ensuring the indicator behaves as expected.
  • Flexible Price Application: Users can choose which price data the RSI should base its calculations on (e.g., close prices, high/low prices, etc.), providing versatility for different trading styles.
  • Pre-defined Thresholds: The script is configured with specific visual levels (such as 75, 65, 35, and 25). These serve as visual boundaries to help traders identify "extreme" market conditions where a price might be stretched too far in one direction.

In summary, this is a robust, professional-grade RSI tool designed for traders who require high consistency, visual clarity, and seamless integration with multi-indicator trading environments.

Indicators Used
Relative strength index
Miscellaneous
It issuies visual alerts to the screen
8 Views
0 Downloads
0 Favorites
Rsi_Lido_SuperRsi_v1.92_Compatible2
//+--------------------------------------------------------------------------------------------+
//|                                                    Rsi_Lido_SuperRsi_v1.92_Compatible2.mq4 |
//| Copyright © 2007, http://finance.groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/ |
//|                   http://finance.groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/ |
//|                           original "RSI_dot" concept by Accrete, and nicely tweaked by     |
//|                           telsa of ForexFactory fame !! Many thanks telsa...Accrete        |
//|                                                                                            |
//|                           Tweaked by Bluto 06/23/07 to work with Super RSI                 |
//|                           Tweaked by Hartono 07/10/07 Store & Restore Setting to File      |
//|                                                       because on each MT4 Restart the      |
//|                                                       RSIPeriod always reset to 4          |
//| made some changes and transferred copyright to                                             |
//| http://finance.groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/                   |
//| transport_david 7/11/07 .                                                                  |
//+--------------------------------------------------------------------------------------------+

#property copyright "Copyright © 2007, http://finance.groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/"
#property link      "http://finance.groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/"

#property indicator_separate_window
#property indicator_minimum 0
#property indicator_maximum 100

#property indicator_buffers 2
#property indicator_color1 DodgerBlue
#property indicator_color2 Lime
#property indicator_level1 75 
#property indicator_level2 65
#property indicator_level3 35
#property indicator_level4 25



//---- input parameters
extern bool Use_Super_Rsi_GlobalVariable = true;
extern bool Use_GlobalVariable_Alert     = false;
extern int  Default_RSIPeriod            = 14;
extern int  Applied_Price                = 0;

//---- buffers
double dRsiLine[];
double dRsiDots[];

//---- vars
string SR_RSIPeriod; 
int    goober = 0;

int init() {
      
    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()
 {
   
   int RSIPeriod = 0;
   
   SR_RSIPeriod = AccountNumber()+"_"+Symbol()+"_SR_RSIPeriod";
   
   if (Use_GlobalVariable_Alert == true)
    {
     if ( (goober < Time[0]) && (Use_Super_Rsi_GlobalVariable == true) && (!GlobalVariableCheck(SR_RSIPeriod)) )
      {
        Alert(Symbol()," SuperRsi GlobalVariable does not exist, Set Use_Super_Rsi_GlobalVariable = false, Use Default_RSIPeriod");
        goober = Time[0];
      }
    }
   
   if ( (Use_Super_Rsi_GlobalVariable == true) && (GlobalVariableCheck(SR_RSIPeriod)) )
    {
      RSIPeriod = GlobalVariableGet(SR_RSIPeriod);
      IndicatorShortName("Rsi Lido SuperRsi v1.92 Mode (" + RSIPeriod + ")");
    }
   else
    {
      RSIPeriod = Default_RSIPeriod;
      IndicatorShortName("Rsi Lido (" + RSIPeriod + ")");
    }
   
    // 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(Symbol(),0,RSIPeriod,Applied_Price,i);
      dRsiDots[i] = dRsiLine[i];
    }
   
   return(0);
 }


//__________________

 //Will Code For Pips


Comments