通达信千夫指指标公式
2020/7/30 18:20:20
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;
看股吧 公式 www.kangub a.com
其它股票公式列表