欢迎来到天天文库
浏览记录
ID:3200112
大小:30.50 KB
页数:2页
时间:2017-11-20
《显示某个时期内最高价最低价的指标》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、以下为指标源码://==========================================================#propertyindicator_chart_window#propertyindicator_buffers3#propertyindicator_color1Silver#propertyindicator_color2White#propertyindicator_color3Redexternintcount=200;double HighBuffer[];double LowBuffer[];
2、double MedianBuffer[];intinit(){SetIndexStyle(0,DRAW_LINE);SetIndexStyle(1,DRAW_LINE);SetIndexStyle(2,DRAW_LINE);IndicatorDigits(Digits);SetIndexBuffer(0,HighBuffer);SetIndexBuffer(1,MedianBuffer);SetIndexBuffer(2,LowBuffer);SetIndexLabel(0,"High,"+count);SetIndexLabel(1,"Med
3、ian,"+count);SetIndexLabel(2,"Low,"+count);return(0);}intstart(){intlimit;intcounted_bars=IndicatorCounted();if(counted_bars>0)counted_bars--;limit=Bars-counted_bars;for(inti=0;i4、_LOW,count,i)];MedianBuffer[i]=(HighBuffer[i]+LowBuffer[i])/2;}return(0);}//=============================================================源码已结束
4、_LOW,count,i)];MedianBuffer[i]=(HighBuffer[i]+LowBuffer[i])/2;}return(0);}//=============================================================源码已结束
此文档下载收益归作者所有