3楼
WPR1=18;WPR2=28交叉,死叉在K线的最高价出‘下箭头’;金叉K线的最低价出‘上箭头’!谢谢!
韬客社区www.talkfx.co
发表于:2007-11-26 14:34只看该作者
4楼
[CODE]
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Yellow
extern int WPR1=18;
extern int WPR2=28;
double up;
double dn;
int init()
{
SetIndexBuffer(0,up);
SetIndexBuffer(1,dn);
SetIndexStyle(0,DRAW_ARROW);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(0,217);
SetIndexArrow(1,218);
IndicatorDigits(Digits+1);
return(0);
}
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int i=0; iiWPR(NULL,0,WPR2,i) && iWPR(NULL,0,WPR1,i+1)iWPR(NULL,0,WPR2,i+1))
dn=High+2*Point;
}
return(0);
}
[/CODE]
5楼
非常感谢秃鹫老师!
韬客社区www.talkfx.co