副图公式源码支持 手机/电脑
GUP2:=REF(LOW,1);
GUP3:=SMA(ABS(LOW-GUP2),3,1)/SMA(MAX(LOW-GUP2,0),3,1)*100;
GUP4:=EMA(GUP3*10,3);
GUP5:=LLV(LOW,13);
GUP6:=HHV(GUP4,13);
GUP7:=EMA(IF(LOW<=GUP5,(GUP4+GUP6*2)/2,0),3)/618;
GUP8:=IF(GUP7>500,500,GUP7);
STICKLINE(GUP8>-120,0,GUP8,3,1),COLORGRAY;
STICKLINE(GUP8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,GUP8,3,0),COLORRED;
STICKLINE(GUP8>0.1 AND GUP8<1 AND "KDJ.J">REF("KDJ.J",1)AND REF("KDJ.J",1)<REF("KDJ.J",2),0,GUP8,3,0),COLOR00FFFF;
GUP1:=REF(LOW,1);
GUP2H:=(SMA(ABS(LOW-GUP1),13,1))/(SMA(MAX(LOW-GUP1,0),13,1))*4;
GUP3H:=EMA(GUP2H,13);
GUP4H:=LLV(LOW,34);
GUP5H:=EMA(IF(LOW<=GUP4H,GUP3H,0),3);
GUP6H:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP7H:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP8H:=GUP6H<REF(GUP7H,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,8,0),COLORAA00BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,8,0),COLORBB11BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,5,0),COLORCC22BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,3,0),COLORDD33BB;
STICKLINE(GUP8H AND COUNT(GUP8H,18)=1,0,18,1,0),COLOREE44BB;
DRAWTEXT(GUP8H AND COUNT(GUP8H,18)=1,18,'●大单'),COLOR0099FF;
DRAWTEXT(GUP8H AND COUNT(GUP8H,18)=1,12,'●'),COLOR0033FF;
GUA1:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
GUA2:=SMA(GUA1,13,8);
0,COLOR00FFFF;
多头线:CEILING(SMA(GUA2,13,8)),LINETHICK2,COLORRED;
趋势线:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,COLORGREEN;
选股公式源码
{选股公式:大单}
GUP1:=REF(LOW,1);
GUP2H:=(SMA(ABS(LOW-GUP1),13,1))/(SMA(MAX(LOW-GUP1,0),13,1))*4;
GUP3H:=EMA(GUP2H,13);
GUP4H:=LLV(LOW,34);
GUP5H:=EMA(IF(LOW<=GUP4H,GUP3H,0),3);
GUP6H:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP7H:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP8H:=GUP6H<REF(GUP7H,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
大单:GUP8H AND COUNT(GUP8H,18)=1; |