//+------------------------------------------------------------------+
//| RSI_Alert.mq4 |
//| IDT |
//| http://www.intradaydreamtrading.com/ |
//+------------------------------------------------------------------+
#property copyright "IDT"
#property link "http://www.intradaydreamtrading.com/"
#property indicator_chart_window
//---- input parameters
extern double F_level=30.0;
extern double S_level=70.0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----
double currRSI=iRSI("GBPUSD",PERIOD_M5,14,PRICE_CLOSE,0);
if (currRSI>S_level || currRSI<F_level) Alert("RSI=",currRSI);
//----
return(0);
}
//+------------------------------------------------------------------+