副图公式源码支持 手机/电脑
GUP1:=HHV(HIGH,9)-LLV(LOW,9);
GUP2:=HHV(HIGH,9)-CLOSE;
GUP3:=CLOSE-LLV(LOW,9);
GUP4:=GUP2/GUP1*100-70;
GUP5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP6:=(2*CLOSE+HIGH+LOW)/4;
GUP7:=SMA(GUP3/GUP1*100,3,1);
GUP8:=LLV(LOW,34);
GUP9:=SMA(GUP7,3,1)-SMA(GUP4,9,1);
GUP10:=IF(GUP9>100,GUP9-100,0);
GUP11:=HHV(HIGH,34);
GUP12:=EMA((GUP6-GUP8)/(GUP11-GUP8)*100,8);
GUP13:=EMA(GUP12,5);
STICKLINE(GUP12>0 AND GUP12-GUP13>=0,19,20,0,0),COLORRED;
STICKLINE(GUP12>0 AND GUP12-GUP13<0,19,20,0,1),COLORGREEN;
交叉线:GUP12-GUP13,COLORRED,LINETHICK2;
STICKLINE(GUP12-GUP13>0,GUP12,GUP13,2,0),COLORRED;
条件:-交叉线,COLORYELLOW;
STICKLINE(GUP12-GUP13<0,GUP12,GUP13,2,0),COLORGREEN;
卖出:REF(交叉线,1)>0 AND 交叉线<=0 OR (交叉线<1 AND 交叉线>=0 AND CLOSE<OPEN),COLORGREEN;
风险线:85,COLORRED,LINETHICK2;
机会线:20,NODRAW,COLORGREEN;
底线:0,COLORLICYAN,LINETHICK2;
神买:卖出=0 AND REF(交叉线,1)<0 AND 交叉线>0,COLORLICYAN;
STICKLINE(神买,0,22,2,0),COLORYELLOW;
STICKLINE(神买,0,5,5,0),COLORFF7700;
STICKLINE(神买,0,5,4.5,0),COLORFF8800;
STICKLINE(神买,0,5,4,0),COLORFF9900;
STICKLINE(神买,0,5,3.5,0),COLORFFAA00;
STICKLINE(神买,0,5,3,0),COLORFFBB00;
STICKLINE(神买,0,5,2.5,0),COLORFFCC00;
STICKLINE(神买,0,5,2,0),COLORFFDD00;
STICKLINE(神买,0,5,1,0),COLORFFEE00;
STICKLINE(神买,0,15,4.5,0),COLOR102099;
STICKLINE(神买,0,15,4,0),COLOR1020AA;
STICKLINE(神买,0,15,3.5,0),COLOR1020BB;
STICKLINE(神买,0,15,3,0),COLOR1020CC;
STICKLINE(神买,0,15,2.5,0),COLOR1020DD;
STICKLINE(神买,0,15,2,0),COLOR1020EE;
STICKLINE(神买,0,15,1,0),COLORYELLOW;
DRAWTEXT(神买,25,'神买'),COLORYELLOW;
选股公式源码
{选股公式:神买}
GUP1:=HHV(HIGH,9)-LLV(LOW,9);
GUP2:=HHV(HIGH,9)-CLOSE;
GUP3:=CLOSE-LLV(LOW,9);
GUP4:=GUP2/GUP1*100-70;
GUP5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP6:=(2*CLOSE+HIGH+LOW)/4;
GUP7:=SMA(GUP3/GUP1*100,3,1);
GUP8:=LLV(LOW,34);
GUP9:=SMA(GUP7,3,1)-SMA(GUP4,9,1);
GUP10:=IF(GUP9>100,GUP9-100,0);
GUP11:=HHV(HIGH,34);
GUP12:=EMA((GUP6-GUP8)/(GUP11-GUP8)*100,8);
GUP13:=EMA(GUP12,5);
交叉线:=GUP12-GUP13,COLORRED,LINETHICK2;
条件:=-交叉线,COLORYELLOW;
卖出:=REF(交叉线,1)>0 AND 交叉线<=0 OR (交叉线<1 AND 交叉线>=0 AND CLOSE<OPEN),COLORGREEN;
神买:卖出=0 AND REF(交叉线,1)<0 AND 交叉线>0;
{卖出公式:卖出}
GUP1:=HHV(HIGH,9)-LLV(LOW,9);
GUP2:=HHV(HIGH,9)-CLOSE;
GUP3:=CLOSE-LLV(LOW,9);
GUP4:=GUP2/GUP1*100-70;
GUP5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP6:=(2*CLOSE+HIGH+LOW)/4;
GUP7:=SMA(GUP3/GUP1*100,3,1);
GUP8:=LLV(LOW,34);
GUP9:=SMA(GUP7,3,1)-SMA(GUP4,9,1);
GUP10:=IF(GUP9>100,GUP9-100,0);
GUP11:=HHV(HIGH,34);
GUP12:=EMA((GUP6-GUP8)/(GUP11-GUP8)*100,8);
GUP13:=EMA(GUP12,5);
交叉线:=GUP12-GUP13,COLORRED,LINETHICK2;
条件:=-交叉线,COLORYELLOW;
卖出:REF(交叉线,1)>0 AND 交叉线<=0 OR (交叉线<1 AND 交叉线>=0 AND CLOSE<OPEN),COLORGREEN; |