外汇MT4平台RSI变色指标1.doc
文本预览下载声明
外汇MT4平台RSI变色指标1
//+------------------------------------------------------------------+
// |RSI BDv09_01_26.mq4 |
//| Jeff |
//| wolfboy@att.net |
//+------------------------------------------------------------------+
// RSI BDv8_12_31: Original indicator modified for the Black Dog Trading System.
// RSI BDv09_01_26: Adds 50 level as an indicator property.
// Charts Color RSI with the EMA of the Color RSI. Original Color RSI by mladen.
#property indicator_separate_window
#property indicator_buffers 4
#property indicator_minimum 30
#property indicator_maximum 70
#property indicator_color1 DimGray
#property indicator_color2 DarkGreen
#property indicator_color3 Red
#property indicator_color4 Blue
#property indicator_width2 2
#property indicator_width3 2
#property indicator_width4 1
#property indicator_style4 STYLE_SOLID
#property indicator_level1 50
#property indicator_levelcolor Black
#property indicator_levelstyle 0
//---- input parameters
extern int RSIPeriod = 50;
extern int EMAPeriod = 25;
extern string note1 = 0=close;1=open;2=hi;3=low;
extern string note2 = 4=median;5=typical;6=weighted;
extern int PriceType = 0;
extern string note3 = Chart Time Frame;
extern string note4 = 1=M1, 5=M5, 15=M15, 30=M30;
extern string note5 = 60=H1, 240=H4, 1440=D1;
extern string note6 = 10080=W1, 43200=MN1;
extern string timeFrame = Current time frame;
extern int overBought = 50;
extern int overSold = 50;
extern bool showArrows= false;
extern bool alertsOn = false;
extern bool alertsMessage = false;
extern bool alertsSound = false;
extern bool alertsEmail = false;
//---- buffers
double RSIBuffer[];
double EMABuffer[];
double Upper[];
double Lower[];
int TimeFrame;
datetime TimeArray[];
int maxArrows;
//+------------------------------------------------------------------+
//| Custom indicator
显示全部