论坛全局菜单下方 - exness285X70 - 韬客社区论坛全局菜单下方 - 荔枝返现285X70 - 韬客社区论坛全局菜单下方 - ThinkMarkets285X70 - 韬客社区论坛全局菜单下方 - TICKMILL 285X70 - 韬客社区
查看:1977回复:5
我要赚钱韬客社区韬客社区
注册时间2009-04-27
[MT4指标]请问谁能提供个在图表上标注最高点和最低点价位的指标
韬客社区
楼主发表于:2010-02-05 05:19只看该作者倒序浏览
1楼 电梯直达
电梯直达
请问谁能提供个在图表上标注最高点和最低点价位的指标?
TK29帖子1楼右侧xm竖版广告90-240
个性签名

耐心等待自己熟悉的行情,不熟悉的行情坚决不做!

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
我要赚钱韬客社区韬客社区
注册时间2009-04-27
韬客社区
楼主发表于:2010-02-22 01:36只看该作者
2楼
谁能帮忙编个?
dannis韬客社区韬客社区
注册时间2006-06-30
韬客社区
发表于:2010-02-23 02:42只看该作者
3楼
#property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Red //---- indicator parameters extern int ExtDepth=12; extern int ExtDeviation=5; extern int ExtBackstep=3; //---- indicator buffers double ZigzagBuffer; double HighMapBuffer; double LowMapBuffer; int level=3; // recounting's depth bool downloadhistory=false; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { IndicatorBuffers(3); //---- drawing settings SetIndexStyle(0,DRAW_SECTION); //---- indicator buffers mapping SetIndexBuffer(0,ZigzagBuffer); SetIndexBuffer(1,HighMapBuffer); SetIndexBuffer(2,LowMapBuffer); SetIndexEmptyValue(0,0.0); //---- indicator short name IndicatorShortName("ZigZag("+ExtDepth+","+ExtDeviation+","+ExtBackstep+")"); //---- initialization done return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { int i, counted_bars = IndicatorCounted(); int limit,counterZ,whatlookfor; int shift,back,lasthighpos,lastlowpos; double val,res; double curlow,curhigh,lasthigh,lastlow; if (counted_bars==0 && downloadhistory) // history was downloaded { ArrayInitialize(ZigzagBuffer,0.0); ArrayInitialize(HighMapBuffer,0.0); ArrayInitialize(LowMapBuffer,0.0); } if (counted_bars==0) { limit=Bars-ExtDepth; downloadhistory=true; } if (counted_bars>0) { while (counterZ=0;i--) { ZigzagBuffer=0.0; LowMapBuffer=0.0; HighMapBuffer=0.0; } } for(shift=limit; shift>=0; shift--) { val=Low[iLowest(NULL,0,MODE_LOW,ExtDepth,shift)]; if(val==lastlow) val=0.0; else { lastlow=val; if((Low[shift]-val)>(ExtDeviation*Point)) val=0.0; else { for(back=1; back<=ExtBackstep; back++) { res=LowMapBuffer[shift+back]; if((res!=0)&&(res>val)) LowMapBuffer[shift+back]=0.0; } } } if (Low[shift]==val) LowMapBuffer[shift]=val; else LowMapBuffer[shift]=0.0; //--- high val=High[iHighest(NULL,0,MODE_HIGH,ExtDepth,shift)]; if(val==lasthigh) val=0.0; else { lasthigh=val; if((val-High[shift])>(ExtDeviation*Point)) val=0.0; else { for(back=1; back<=ExtBackstep; back++) { res=HighMapBuffer[shift+back]; if((res!=0)&&(res=0;shift--) { res=0.0; switch(whatlookfor) { case 0: // look for peak or lawn if (lastlow==0 && lasthigh==0) { if (HighMapBuffer[shift]!=0) { lasthigh=High[shift]; lasthighpos=shift; whatlookfor=-1; ZigzagBuffer[shift]=lasthigh; res=1; } if (LowMapBuffer[shift]!=0) { lastlow=Low[shift]; lastlowpos=shift; whatlookfor=1; ZigzagBuffer[shift]=lastlow; res=1; } } break; case 1: // look for peak if (LowMapBuffer[shift]!=0.0 && LowMapBuffer[shift]lasthigh && LowMapBuffer[shift]==0.0) { ZigzagBuffer[lasthighpos]=0.0; lasthighpos=shift; lasthigh=HighMapBuffer[shift]; ZigzagBuffer[shift]=lasthigh; } if (LowMapBuffer[shift]!=0.0 && HighMapBuffer[shift]==0.0) { lastlow=LowMapBuffer[shift]; lastlowpos=shift; ZigzagBuffer[shift]=lastlow; whatlookfor=1; } break; default: return; } } return(0); } //+------------------------------------------------------------------+
我要赚钱韬客社区韬客社区
注册时间2009-04-27
韬客社区
楼主发表于:2010-02-23 04:04只看该作者
4楼
这个怎么不能用 编写了出现24个错误 能不能把编好的指标文件发给我
dannis韬客社区韬客社区
注册时间2006-06-30
韬客社区
发表于:2010-02-23 05:02只看该作者
5楼
PLZ SEE THAT MT4 CUSTOM INDICATORS ----ZigZag
我要赚钱韬客社区韬客社区
注册时间2009-04-27
韬客社区
楼主发表于:2010-02-23 07:44只看该作者
6楼
但是ZigZag指标 没有标明价位
版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]