副图公式 源码支持:手机/电脑
N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K1:SMA(RSV1,M1,1),COLORRED,LINETHICK2;
D1:SMA(K1,M2,1),COLORCYAN,LINETHICK2;
J1:3*K1-2*D1,COLORMAGENTA,LINETHICK2;
底部区:0,COLORRED;
关注区:20,COLORYELLOW;
顶部区:100,COLORGREEN;
GUA1:=BARSLAST(REF(CROSS(K1,D1),1));
GUA2:=REF(C,GUA1+1)>C AND REF(K1,GUA1+1)<K1 AND CROSS(K1,D1)AND D1<50;
底背:=IF(GUA2>0,1,0);
DRAWTEXT(底背,REF(D1,GUA1)*1.00,'底背买'),COLORRED;
GUB1:=MAX(C,O);
GUB2:=HHV(GUB1,5);
GUB3:=D1<REF(D1,1) AND REF(D1,1)>REF(D1,2);
GUB4:=BARSLAST(REF(GUB3,1));
顶背:=REF(GUB2,GUB4+1)<GUB2 AND K1<REF(K1,GUB4+1) AND GUB3;
DRAWTEXT(顶背,REF(D1,GUB4)*1.02,'顶背卖'),COLORGREEN;
选股公式源码
{选股公式:底背买}
N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K1:=SMA(RSV1,M1,1),COLORRED,LINETHICK2;
D1:=SMA(K1,M2,1),COLORCYAN,LINETHICK2;
GUA1:=BARSLAST(REF(CROSS(K1,D1),1));
GUA2:=REF(C,GUA1+1)>C AND REF(K1,GUA1+1)<K1 AND CROSS(K1,D1)AND D1<50;
底背:=IF(GUA2>0,1,0);
{DRAWTEXT(底背,REF(D1,GUA1)*1.00,'底背买'),COLORRED;}
底背买:底背;
{卖出公式:顶背卖}
N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K1:=SMA(RSV1,M1,1),COLORRED,LINETHICK2;
D1:=SMA(K1,M2,1),COLORCYAN,LINETHICK2;
GUB1:=MAX(C,O);
GUB2:=HHV(GUB1,5);
GUB3:=D1<REF(D1,1) AND REF(D1,1)>REF(D1,2);
GUB4:=BARSLAST(REF(GUB3,1));
顶背:=REF(GUB2,GUB4+1)<GUB2 AND K1<REF(K1,GUB4+1) AND GUB3;
{DRAWTEXT(顶背,REF(D1,GUB4)*1.02,'顶背卖'),COLORGREEN;}
顶背卖:顶背;
|