副图公式源码支持: 手机/电脑
N:=24;N1:=55;
短期上轨:EMA(H,N),COLORRED,DOTLINE;
短期下轨:EMA(L,N),COLORRED,DOTLINE;
长期上轨:EMA(H,N1),COLORGREEN,DOTLINE;
长期下轨:EMA(L,N1),COLORGREEN,DOTLINE;
A:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(A,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DRAWICON(CROSS(J,0),L*0.99,1),COLORRED;
AA11:=CROSS(100,J);
DRAWICON(AA11,H*1.01,2);
A1:=短期上轨;A2:=短期下轨;
IF(A1>REF(A1,1),A1,DRAWNULL),COLOR0000FF,LINETHICK1;
IF(长期上轨>REF(长期上轨,1),长期上轨,DRAWNULL),COLORGREEN,LINETHICK1;
IF(A2>REF(A2,1),A2,DRAWNULL),COLORRED,LINETHICK1;
IF(长期下轨>REF(长期下轨,1),长期下轨,DRAWNULL),COLORGREEN,LINETHICK1;
GUP1:=(2*CLOSE+HIGH+LOW)/4;
GUP2:=EMA(EMA(EMA(GUP1,4),4),4);
J1:=(GUP2-REF(GUP2,1))/REF(GUP2,1)*100,COLORSTICK;
STICKLINE(J1>REF(J1,1),C,O,3,3),COLOR0000FF;
STICKLINE(J1<REF(J1,1),C,O,3,3),COLORFFFF00;
GUP3:=CROSS(J,0);
止盈价:REF(L,BARSLAST(GUP3)),NODRAW;
GUP4:=COUNT(J>REF(J,1),3)=3 AND BARSLAST(GUP3)<4;
DRAWICON(GUP4,H,23);
选股公式源码:
{选股公式一:红箭头图标}
A:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(A,3,1);D:=SMA(K,3,1);J:=3*K-2*D;
AA11:=CROSS(100,J);
GUP1:=(2*CLOSE+HIGH+LOW)/4;
GUP2:=EMA(EMA(EMA(GUP1,4),4),4);
J1:=(GUP2-REF(GUP2,1))/REF(GUP2,1)*100;
GUP3:=CROSS(J,0);
GUP4:=COUNT(J>REF(J,1),3)=3 AND BARSLAST(GUP3)<4;
红箭头图标:CROSS(J,0);
{选股公式二:红加号图标}
A:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(A,3,1);D:=SMA(K,3,1);J:=3*K-2*D;
GUP1:=(2*CLOSE+HIGH+LOW)/4;
GUP2:=EMA(EMA(EMA(GUP1,4),4),4);
J1:=(GUP2-REF(GUP2,1))/REF(GUP2,1)*100;
GUP3:=CROSS(J,0);
GUP4:=COUNT(J>REF(J,1),3)=3 AND BARSLAST(GUP3)<4;
红加号图标:GUP4; |