论坛全局菜单下方 - exness285X70 - 韬客社区论坛全局菜单下方 - 荔枝返现285X70 - 韬客社区论坛全局菜单下方 - ThinkMarkets285X70 - 韬客社区论坛全局菜单下方 - TICKMILL 285X70 - 韬客社区
查看:1011回复:1
草龙韬客社区韬客社区
注册时间2004-12-17
[MT4指标]Danny Feng Ergodic指标
韬客社区
楼主发表于:2014-03-19 08:47只看该作者倒序浏览
1楼 电梯直达
电梯直达
主图指标 附图指标, mt4指标类型:趋势指标 是否能用在mt4手机版上:否 mt4指标类型:震荡指标 是否能用在mt4手机版上:否 是否含有未来函数:无 //+------------------------------------------------------------------+ //| Danny Feng Ergodic.mq4 | //+------------------------------------------------------------------+ #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Yellow #property indicator_color2 Red //---- input parameters extern int r=2; extern int s=5; extern int u=8; extern int smooth=2; //---- buffers double ErgBuffer; double ema_ErgBuffer; double Price_Delta1_Buffer; double Price_Delta2_Buffer; double s_ema1_Buffer; double s_ema2_Buffer; double u_ema1_Buffer; double u_ema2_Buffer; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { string short_name; //---- additional buffers are used for counting. IndicatorBuffers(8); SetIndexBuffer(0,ema_ErgBuffer); SetIndexBuffer(1,ErgBuffer); SetIndexBuffer(2,Price_Delta1_Buffer); SetIndexBuffer(3,Price_Delta2_Buffer); SetIndexBuffer(4,s_ema1_Buffer); SetIndexBuffer(5,s_ema2_Buffer); SetIndexBuffer(6,u_ema1_Buffer); SetIndexBuffer(7,u_ema2_Buffer); //---- indicator lines SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_HISTOGRAM); //---- name for DataWindow and indicator subwindow label short_name="Ergodic"; IndicatorShortName(short_name); SetIndexLabel(0,short_name); //---- SetIndexDrawBegin(0,r+s+u+smooth); SetIndexDrawBegin(1,r+s+u+smooth); //---- return(0); } //+------------------------------------------------------------------+ //| True Strength Index | //+------------------------------------------------------------------+ int start() { int i,limit; double mean1, mean2; int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i=0; iErgodic.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

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

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
Pzxzx韬客社区韬客社区
注册时间2017-08-06
韬客社区
发表于:2017-08-10 00:57只看该作者
2楼
韬客交易社区-国内最大的外汇交易社区
版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]