副图公式 源码支持:手机/电脑
MA5:MA(C,5),COLORYELLOW;
MA10:MA(CLOSE,10),COLORFF00FF;
MA30:MA(C,30),COLORRED,LINETHICK2;
下跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2;
MA60:MA(CLOSE,60),COLORFFCC66;
GUP1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GUP2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GUP3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GUP4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
GUA1:=BARSLAST(CROSS(30,GUP1))<2 AND BARSLAST(CROSS(GUP1,50))<2;
GUA2:=BARSLAST(CROSS(GUP4,GUP1))<2 AND GUP1>GUP4;
GUA3:=GUP1>60 AND GUP4>70;
DRAWTEXT(GUA1 AND GUA2 AND GUA3,L-0.02,'白金买'),COLORWHITE;
GUB1:=BARSLAST(CROSS(50,GUP1))<3 AND BARSLAST(CROSS(GUP1,50))<3;
GUB2:=BARSLAST(CROSS(GUP4,GUP1))<2 AND GUP1>GUP4;
DRAWTEXT(GUB1 AND GUB2,L-0.03,'黄金买'),COLORYELLOW;
XG:=BARSLAST(CROSS(GUP4,GUP1))<5 AND GUP1>GUP4;
DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),L-0.02,'金三角启动'),COLORRED;
选股公式源码
{选股公式一:黄金买}
GUP1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GUP2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GUP3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GUP4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
GUB1:=BARSLAST(CROSS(50,GUP1))<3 AND BARSLAST(CROSS(GUP1,50))<3;
GUB2:=BARSLAST(CROSS(GUP4,GUP1))<2 AND GUP1>GUP4;
黄金买:GUB1 AND GUB2;
{选股公式二:白金买}
GUP1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GUP2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GUP3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GUP4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
GUA1:=BARSLAST(CROSS(30,GUP1))<2 AND BARSLAST(CROSS(GUP1,50))<2;
GUA2:=BARSLAST(CROSS(GUP4,GUP1))<2 AND GUP1>GUP4;
GUA3:=GUP1>60 AND GUP4>70;
白金买:GUA1 AND GUA2 AND GUA3;
{选股公式三:金三角启动}
GUP1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GUP2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GUP3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GUP4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
XG:=BARSLAST(CROSS(GUP4,GUP1))<5 AND GUP1>GUP4;
金三角启动:COUNT(XG,3)=1 AND XG AND C>MA(C,20); |