副图公式源码支持 :手机/电脑
GUP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP22:=SMA(GUP1,20,1);
GUP33:=SMA(GUP22,15,1);
GUP44:=(3*GUP22+2*GUP33)/4;
GUP55:= REF(GUP44,1);
RSA:SMA(MAX(GUP44-GUP55,0),2,1)/SMA(ABS(GUP44-GUP55),2,1)*100,COLORRED,NODRAW,LINETHICK1;
RSB:MA(RSA,10),NODRAW;
拉升:IF(CROSS(RSA,RSB),20,0),STICK,COLORRED,LINETHICK2,NODRAW;
卖出:IF(CROSS(RSB,90),20,0),STICK,LINETHICK2,NODRAW;
DRAWTEXT(CROSS(RSA,RSB),10,'拉升'),COLORRED;
DRAWTEXT(CROSS(RSB,90),15,'卖出'),COLORGREEN;
GUA1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
GUA2:=IF((EMA((C+L)/2,3)-GUA1)*5>0,POW((EMA((C+L)/2,3)-GUA1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-GUA1)*5,2)/10);
GUA3:=IF(GUA2>0,GUA2-0,0);
STICKLINE(GUA3>0 AND REF(GUA3,1)=0 AND (C+L)/2>MA((C+L)/2,8),0,35,2,0),COLORYELLOW;
DRAWTEXT(GUA3>0 AND REF(GUA3,1)=0 AND (C+L)/2>MA((C+L)/2,8),40,'启动');
散户:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
GUP2:=REF(LOW,1);
GUP3:=SMA(ABS(LOW-GUP2),3,1)/SMA(MAX(LOW-GUP2,0),3,1)*100;
GUP4:=EMA(IF(CLOSE*1.3,GUP3*10,GUP3/10),3);
GUP5:=LLV(LOW,30);
GUP6:=HHV(GUP4,30);
GUP7:=IF(MA(CLOSE,58),1,0);
GUP8:=EMA(IF(LOW<=GUP5,(GUP4+GUP6*2)/2,0),3)/618*GUP7;
GUP9:=IF(GUP8>100,100,GUP8);
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
庄家:=EMA(J,6),COLORYELLOW;
GUB1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
GUB2:=SMA(GUB1,13,8);
趋势:=CEILING(SMA(GUB2,13,8)),COLORRED,LINETHICK2;
低吸:STICKLINE(GUP9>-120,50,50+(GUP9/2),3,1),COLORRED;
短线:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORWHITE,NODRAW;
散户线:散户,COLORFFFFFF;
庄家线:庄家,COLORMAGENTA,LINETHICK1;
趋势线:趋势,COLORYELLOW,LINETHICK1;
GUC1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
GUC2:=REF(LOW,1)*GUC1;
GUC3:=SMA(ABS(LOW-GUC2),3,1)/SMA(MAX(LOW-GUC2,0),3,1)*100*GUC1;
GUC4:=EMA(IF(CLOSE*1.3,GUC3*10,GUC3/10),3)*GUC1;
GUC5:=LLV(LOW,30)*GUC1;
GUC6:=HHV(GUC4,30)*GUC1;
GUC7:=IF(MA(CLOSE,58),1,0)*GUC1;
GUC8:=EMA(IF(LOW<=GUC5,(GUC4+GUC6*2)/2,0),3)/618*GUC7*GUC1;
GUD1:=IF(GUC8>100,100,GUC8)*GUC1;
GUD2:=IF(GUD1<REF(GUD1,1) AND (REF(GUD1,1)>REF(GUD1,2) OR REF(GUD1,1)=100),1,0);
GUD3:=SUM(GUD1,60);
GUD4:=COUNT(GUD2,30)=3 AND GUD2=1 AND GUD3>200;
GUD5:=REF(GUD1,1)=100 AND GUD1<REF(GUD1,1) AND GUD3>260;
GUD6:=REF(GUD1,1)>REF(GUD1,2) AND 90<REF(GUD1,1) AND GUD1<REF(GUD1,1) AND GUD3>260;
跟庄:STICKLINE(GUD4=1 OR GUD5=1 OR GUD6=1,0,30,1,1),COLORFFFFFF;
DRAWTEXT(跟庄,40.4,'跟庄'),COLORFFFF00;
股价走势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
底部:10,COLORRED,LINETHICK0;
警戒:STICKLINE(股价走势<=10,0,10,3,0),COLORMAGENTA;
买入:STICKLINE(CROSS(股价走势,底部),0,30,1,1),COLORYELLOW,LINETHICK2;
DRAWICON(CROSS(股价走势,底部),45,25);
选股公式源码
{选股公式一:买入}
股价走势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
底部:=10,COLORRED,LINETHICK0;
买入:CROSS(股价走势,底部);
{选股公式二:跟庄}
GUC1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
GUC2:=REF(LOW,1)*GUC1;
GUC3:=SMA(ABS(LOW-GUC2),3,1)/SMA(MAX(LOW-GUC2,0),3,1)*100*GUC1;
GUC4:=EMA(IF(CLOSE*1.3,GUC3*10,GUC3/10),3)*GUC1;
GUC5:=LLV(LOW,30)*GUC1;
GUC6:=HHV(GUC4,30)*GUC1;
GUC7:=IF(MA(CLOSE,58),1,0)*GUC1;
GUC8:=EMA(IF(LOW<=GUC5,(GUC4+GUC6*2)/2,0),3)/618*GUC7*GUC1;
GUD1:=IF(GUC8>100,100,GUC8)*GUC1;
GUD2:=IF(GUD1<REF(GUD1,1) AND (REF(GUD1,1)>REF(GUD1,2) OR REF(GUD1,1)=100),1,0);
GUD3:=SUM(GUD1,60);
GUD4:=COUNT(GUD2,30)=3 AND GUD2=1 AND GUD3>200;
GUD5:=REF(GUD1,1)=100 AND GUD1<REF(GUD1,1) AND GUD3>260;
GUD6:=REF(GUD1,1)>REF(GUD1,2) AND 90<REF(GUD1,1) AND GUD1<REF(GUD1,1) AND GUD3>260;
跟庄:GUD4=1 OR GUD5=1 OR GUD6=1,COLORFFFFFF;
{选股公式三:启动}
GUA1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
GUA2:=IF((EMA((C+L)/2,3)-GUA1)*5>0,POW((EMA((C+L)/2,3)-GUA1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-GUA1)*5,2)/10);
GUA3:=IF(GUA2>0,GUA2-0,0);
启动:GUA3>0 AND REF(GUA3,1)=0 AND (C+L)/2>MA((C+L)/2,8);
{选股公式四:拉升}
GUP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP22:=SMA(GUP1,20,1);
GUP33:=SMA(GUP22,15,1);
GUP44:=(3*GUP22+2*GUP33)/4;
GUP55:= REF(GUP44,1);
RSA:=SMA(MAX(GUP44-GUP55,0),2,1)/SMA(ABS(GUP44-GUP55),2,1)*100,COLORRED,LINETHICK1;
RSB:=MA(RSA,10);
拉升:CROSS(RSA,RSB); |