论坛全局菜单下方 - exness285X70 - 韬客社区论坛全局菜单下方 - 荔枝返现285X70 - 韬客社区论坛全局菜单下方 - ThinkMarkets285X70 - 韬客社区论坛全局菜单下方 - TICKMILL 285X70 - 韬客社区
查看:1054回复:1
草龙韬客社区韬客社区
注册时间2004-12-17
[MT4指标]Internal bar strength震荡指标
韬客社区
楼主发表于:2014-05-20 09:29只看该作者倒序浏览
1楼 电梯直达
电梯直达
附图指标, mt4指标类型:震荡指标 是否能用在mt4手机版上:否 是否含有未来函数:无 //+------------------------------------------------------------------+ //| Written by [email protected] | //+------------------------------------------------------------------+ #property copyright "[email protected]" #property link "[email protected]" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Red #property indicator_width1 2 #property indicator_level1 40 #property indicator_level2 60 #property indicator_maximum 100 #property indicator_minimum 0 //---- buffers double B1; double B2; extern int period=5; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators IndicatorBuffers(2); IndicatorShortName("Internal bar strength"); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,B1); SetIndexLabel(0, "Internal bar strength"); SetIndexBuffer(1,B2); ArraySetAsSeries(B2,false); //---- return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit; int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars-=10; limit=Bars-counted_bars; for(int i=limit; i>=0; i--) { if (High != Low) B2=((Close-Low) / (High-Low)); else B2 = B2[i+1]; } for(i=limit; i>=0; i--) { B1 = iMAOnArray(B2,WHOLE_ARRAY,period,0,MODE_SMA,i)*100.0; } //---- return(0); } //+------------------------------------------------------------------+Internal bar strength. Internal%20bar%20strength.jpgInternal%20bar%20strength.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

阅尽天下指标
搬砖开始,始于2014

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]