副图公式源码支持 手机/电脑
GUP1:=7;
GUP2:=5;
GUP3:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP4:=SMA(GUP3,GUP1,1);
GUP5:=SMA(GUP4,GUP2,1);
GUP6:=(2*CLOSE+HIGH+LOW+OPEN)/5;
GUP7:=LLV(LOW,34);
GUP8:=HHV(HIGH,34);
GUP9:=EMA((GUP6-GUP7)/(GUP8-GUP7)*100,13);
GUP10:=EMA(GUP9,3);
STICKLINE(GUP4>GUP5,GUP4,GUP5,0.8,1),COLORRED;
STICKLINE(GUP4<GUP5,GUP4,GUP5,0.8,1),COLORGREEN;
STICKLINE(GUP9<GUP10,GUP9,GUP10,0.8,0),COLORCYAN;
STICKLINE(GUP9>GUP10,GUP9,GUP10,0.8,0),COLORLIRED;
中线趋势:GUP4,NODRAW,COLORRED;
短线趋势:GUP9,NODRAW,COLORLIRED;
AA:=(H+L+O+2*C)/5;
M24:=MA(AA,24);
差值:=SUM(AA-M24,2)/2,COLORWHITE,LINETHICK1;
STICKLINE(差值>0,0,中线趋势-20,0,0),COLORMAGENTA;
STICKLINE(差值<0,0,中线趋势-20,0,0),COLORCYAN;
STICKLINE(GUP9<=10 OR GUP4<=10 AND GUP4>REF(GUP4,1) AND GUP9>REF(GUP9,1),(-1),4,4,0),COLORRED;
STICKLINE(GUP4<=10 AND GUP9<=10 AND GUP4>REF(GUP4,1) AND GUP9>REF(GUP9,1),(-1),4,4,0),COLORMAGENTA;
选股公式源码
{选股公式一:红色块}
GUP1:=7;
GUP2:=5;
GUP3:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP4:=SMA(GUP3,GUP1,1);
GUP5:=SMA(GUP4,GUP2,1);
GUP6:=(2*CLOSE+HIGH+LOW+OPEN)/5;
GUP7:=LLV(LOW,34);
GUP8:=HHV(HIGH,34);
GUP9:=EMA((GUP6-GUP7)/(GUP8-GUP7)*100,13);
红色块:GUP9<=10 OR GUP4<=10 AND GUP4>REF(GUP4,1) AND GUP9>REF(GUP9,1),COLORRED;
{选股公式二:洋红色块}
GUP1:=7;
GUP2:=5;
GUP3:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP4:=SMA(GUP3,GUP1,1);
GUP5:=SMA(GUP4,GUP2,1);
GUP6:=(2*CLOSE+HIGH+LOW+OPEN)/5;
GUP7:=LLV(LOW,34);
GUP8:=HHV(HIGH,34);
GUP9:=EMA((GUP6-GUP7)/(GUP8-GUP7)*100,13);
洋红色块:GUP4<=10 AND GUP9<=10 AND GUP4>REF(GUP4,1) AND GUP9>REF(GUP9,1),COLORMAGENTA; |