通达信千夫指指标(源码)

2014-09-26 22:11:00来源:本站整理浏览:198

Var1a:=120;
Var2a:=IF(BARSCOUNT(CLOSE)>=Var1a,(CLOSE-LLV(LOW,Var1a))/(HHV(HIGH,Var1a)-LLV(LOW,Var1a))*100,40);
Var3a:=MA(Var2a,20);
Var4a:=BARSCOUNT(CLOSE)>=Var1a AND CROSS(Var2a,Var3a) AND Var3a<40 AND LLV(Var2a,10)<11 OR Var2a<2.2;
Var5a:=BARSCOUNT(CLOSE)>=Var1a AND CROSS(Var3a,Var2a) AND Var3a>85 AND HHV(Var2a,10)>95 OR Var2a>97.5;
千夫指买入: if(REF(COUNT(Var4a,10),1)=0 AND Var4a,40,0),stick,colorf0f000;
千夫指卖出: if(REF(COUNT(Var5a,10),1)=0 AND Var5a,50,0),stick,color2255ff;
drawtext(REF(COUNT(Var4a,10),1)=0 AND Var4a,35,'千夫指买入'),coloryellow;
drawtext(REF(COUNT(Var5a,10),1)=0 AND Var5a,40,'千夫指卖出'),color00ff00;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式