【通达信】持币持股指标公式-2010典藏版

2010-03-09 14:38:16来源:未知作者:wenshu

 

var1:=((close-ma(close,6))/ma(close,6)*100+(close-ma(close,24))/ma(close,24)*100+(close-ma(close,32))/ma(close,32)*100)/3;
drawicon(var1<-9 and var1> ref(var1,1),3,7);
买入:var1<-9 and var1> ref(var1,1),colorred;
stickline(var1>20 and filter(var1< ref(var1,1),5),var1+5,0,7,1),color00ff00;
大顶:var1>20 and filter(var1< ref(var1,1),5),color00ff00;
stickline(var1>9 and filter(var1< ref(var1,1),5),var1+2,0,3,1),colorgreen;
短顶:var1>9 and filter(var1< ref(var1,1),5),colorgreen;
var2:=hhv(var1>20,10);
stickline(var2 and cross((ref(high,1)+ref(low,1))/2,ma(close,20)+2*std(close,20)),var1,0,7,0),colorblue;
危险:var2 and cross((ref(high,1)+ref(low,1))/2,ma(close,20)+2*std(close,20)),colorblue;
stickline(var2 and filter(var1< ref(var1,1),6) and cross(ma(close,5),ma(close,2)),var1,0,7,0);
注意止损:var2 and filter(var1< ref(var1,1),6) and cross(ma(close,5),ma(close,2));
stickline(var1<-20 and filter(var1> ref(var1,1),5),var1-5,0,7,1),coloryellow;
大底:var1<-20 and filter(var1> ref(var1,1),7),coloryellow;
stickline(var1<-9 and var1> ref(var1,1),var1-2,0,3,1),colorff00ff;
短底:var1<-9 and var1> ref(var1,1),colorff00ff;
持币区域:var1,colorfedcba;
持股区域:if(var1>0,var1,0),colorred;

快速索引: