将抄底指标改写成选股公式
2019/12/6 18:42:37
公式编写说明:
请高手和老师,对通达信《抄底主图》编辑一个选股公式。条件分别为:1、红色星出现 2、绿色星出现源码如下:MA5:MA(C,5),COLORWHITE;MA10:MA(C,10),COLORMAGENTA;MA20:MA(C,20),COLORYELLOW;MA50:MA(C,50),COLORGREEN;MA120:MA(C,120),COLORGRAY;MA250:MA(C,240),COLORRED;Z:=MA(C,120);VAR3:=(MA(C,5)-Z)/Z;VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);D1:DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,0.99*LOW ,'★B'),COLORRED;D2:DRAWTEXT(REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1,0.99*LOW ,'★B'),COLORGREEN;D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.3,0.99*LOW ,'★B'),COLORBLUE;
公式源码示例:
{红星}
Z:=MA(C,120);
VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);
C>=Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2);
-------------------------------
{绿星}
Z:=MA(C,120);
VAR3:=(MA(C,5)-Z)/Z};
VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);
REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1;
看股 吧公式 www.kangub a.com
其它股票公式列表