[MT4指标]Inverse Fisher趋势指标
附图指标,
mt4指标类型:趋势指标
是否能用在mt4手机版上:否
是否含有未来函数:无
//+------------------------------------------------------------------+
//| Inverse Fisher.mq4 |
//| |
//| |
//+------------------------------------------------------------------+
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Maroon
#property indicator_color2 CornflowerBlue
#property indicator_level1 0.5
#property indicator_level2 -0.5
#property indicator_levelstyle STYLE_DASH
#property indicator_levelcolor Gold
#property indicator_maximum 1
#property indicator_minimum -1
//---- input parameters
extern int RSI_Period=5;
extern int RSI_MA=9;
extern bool SHOW_RSI=false;
//---- buffers
double RSIval;
double IF;
double RSI;
double WMA;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
IndicatorBuffers(4);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,RSIval);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,IF);
SetIndexBuffer(2,RSI);
SetIndexBuffer(3,WMA);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
ObjectDelete("toplevel");
ObjectDelete("botlevel");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----
int limit,i;
limit = Bars - counted_bars + 1;
for (i = limit; i>=0; i--)
{
RSI = (iRSI(0,0,RSI_Period,PRICE_CLOSE,i)-50.0)/10.0;
if (SHOW_RSI) RSIval = RSI/5.0;
else RSIval=EMPTY_VALUE;
}
for (i = limit; i>=0; i--)
{
WMA = iMAOnArray(RSI,0,RSI_MA,0,MODE_LWMA,i);
IF = (MathExp(2.0*WMA)-1.0) / (MathExp(2.0*WMA)+1.0);
}
if (ObjectFind("toplevel")==-1)
{
ObjectCreate("toplevel",OBJ_HLINE,1,1,0.5);
ObjectCreate("botlevel",OBJ_HLINE,1,1,-0.5);
ObjectSet("toplevel",OBJPROP_COLOR,Lime);
ObjectSet("botlevel",OBJPROP_COLOR,Red);
}
//----
return(0);
}
//+------------------------------------------------------------------+
Inverse%20Fisher.jpg

发表于:2015-09-05 04:31只看该作者
2楼
。。。。。。??
韬客社区www.talkfx.co
发表于:2016-04-29 08:58只看该作者
3楼
楼主真是一个无私,乐观,积极,的人。一个脱离了低级趣味的人。。向楼主表示敬意和无限的敬仰。。。 |
韬客社区www.talkfx.co
发表于:2016-06-23 05:25只看该作者
4楼
指标很灵敏,指示性也很强
韬客社区www.talkfx.co
发表于:2016-06-23 07:54只看该作者
5楼
指标很灵敏,指示性也很强
韬客社区www.talkfx.co
发表于:2016-09-04 00:49只看该作者
6楼
全是源码,不要通宝,感谢朋友分享
韬客社区www.talkfx.co
发表于:2016-09-06 11:43只看该作者
7楼
感谢分享
韬客社区www.talkfx.co
发表于:2016-09-11 14:41只看该作者
8楼
这里的东西就是贵
韬客社区www.talkfx.co
发表于:2016-09-12 04:31只看该作者
9楼
非常感谢。。。。。
韬客社区www.talkfx.co
发表于:2016-09-12 16:26只看该作者
10楼
貌似用处不太大。
韬客社区www.talkfx.co