副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
上轨:MA(G2,20)*1.2,COLOR0080FF,LINETHICK1,NODRAW;
次上轨:MA(G2,20)*1.1,COLORYELLOW;
次下轨:MA(G4,20)*0.9,COLORWHITE,NODRAW;
下轨:MA(G4,20)*0.8,COLORGREEN,LINETHICK1;
GUP1:=(C-REF(C,1))/REF(C,1)*100;
GUP2:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
GUP3:=IF(C>次上轨,IF(C>上轨,4,3),IF(C>次下轨 AND C<次上轨,2,IF(C<下轨,0,1)));
STICKLINE(GUP3=0,H,L,2,1),COLORBLUE;
STICKLINE(GUP3=1,H,L,2,1),COLORGREEN;
STICKLINE(GUP3=2,H,L,2,1),COLORGRAY;
STICKLINE(GUP3=3,H,L,2,1),COLORYELLOW;
STICKLINE(GUP3=4,H,L,2,1),COLORMAGENTA;
STICKLINE(GUP3=0,C,O,2,0),COLORBLUE;
STICKLINE(GUP3=1,C,O,2,0),COLORGREEN;
STICKLINE(GUP3=2,C,O,2,0),COLORGRAY;
STICKLINE(GUP3=3,C,O,2,0),COLORYELLOW;
STICKLINE(GUP3=4,C,O,2,0),COLORMAGENTA;
DRAWTEXT(REF(GUP3,1)=2 AND GUP3=1,H*1.02,'←出货'),COLORGREEN;
DRAWTEXT(REF(GUP3,1)=3 AND GUP3=4,L*0.6,'←进场'),COLORRED;
DRAWTEXT(REF(GUP3,1)=3 AND GUP3=2,H*1.05,'←洗盘'),COLORWHITE;
DRAWTEXT(REF(GUP3,1)=1 AND GUP3=0,L*0.98,'←建仓'),COLORLIRED;
DRAWTEXT(REF(GUP3,1)=2 AND GUP3=4,L*0.6,'←买入'),COLORMAGENTA;
选股公式源码
{选股公式一:进场}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
上轨:=MA(G2,20)*1.2;
次上轨:=MA(G2,20)*1.1;
次下轨:=MA(G4,20)*0.9;
下轨:=MA(G4,20)*0.8;
GUP1:=(C-REF(C,1))/REF(C,1)*100;
GUP2:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
GUP3:=IF(C>次上轨,IF(C>上轨,4,3),IF(C>次下轨 AND C<次上轨,2,IF(C<下轨,0,1)));
进场:REF(GUP3,1)=3 AND GUP3=4;
{选股公式二:建仓}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
上轨:=MA(G2,20)*1.2;
次上轨:=MA(G2,20)*1.1;
次下轨:=MA(G4,20)*0.9;
下轨:=MA(G4,20)*0.8;
GUP1:=(C-REF(C,1))/REF(C,1)*100;
GUP2:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
GUP3:=IF(C>次上轨,IF(C>上轨,4,3),IF(C>次下轨 AND C<次上轨,2,IF(C<下轨,0,1)));
建仓:REF(GUP3,1)=1 AND GUP3=0;
{选股公式三:买入}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
上轨:=MA(G2,20)*1.2;
次上轨:=MA(G2,20)*1.1;
次下轨:=MA(G4,20)*0.9;
下轨:=MA(G4,20)*0.8;
GUP1:=(C-REF(C,1))/REF(C,1)*100;
GUP2:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
GUP3:=IF(C>次上轨,IF(C>上轨,4,3),IF(C>次下轨 AND C<次上轨,2,IF(C<下轨,0,1)));
买入:REF(GUP3,1)=2 AND GUP3=4; |