副图公式源码
A:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
GZ4:=HHV(A*1.03,5)COLORCYAN;
Q:A*1.03,COLORGREEN;
涨幅Q:=(C-REF(C,1))/REF(C,1)*100;
顶部: IF(CROSS(85,Q),70,100)COLORWHITE;
LD:Q-REF(Q,1)NODRAW;
底部1: IF(EMA(C,12)>EMA(C,50) AND LD<-40 AND REF(LD>40,1),30,0),LINETHICK2,COLORRED;
底部2:IF(EVERY(EMA(C,12)>EMA(C,50),7) AND REF(EVERY(顶部=100,3) AND CROSS(Q,86) AND Q>100,1) AND CROSS(99,顶部),Q,0)COLOR0080FF,LINETHICK2;
反弹1:IF(FILTER(EVERY(EMA(C,12)>EMA(C,50),7) AND GZ4=103 AND GZ4=REF(GZ4,1) AND CROSS(40,Q),10),Q,0)COLORCYAN,LINETHICK2;
反弹2:IF(FILTER(EVERY(底部2=0,10) AND Q<80 AND REF(REF(EVERY(顶部=100,3) AND EMA(C,12)>EMA(C,50) AND CROSS(顶部,Q),1) AND CROSS(80,顶部),1) AND CROSS(顶部,80),20),Q,0),LINETHICK2,COLORYELLOW;
选股公式源码
A:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
GZ4:=HHV(A*1.03,5);
Q:=A*1.03;
Q>20 AND REF(Q,1)<20;