副图公式源码支持 手机/电脑
GUGUC1:=((C-LLV(L,20))/(HHV(H,20)-LLV(L,20)))*100;
趋势线:MA(2*SMA(GUGUC1,6,1)-SMA(SMA(GUGUC1,6,1),6,1),3),LINETHICK2,COLORRED;
GUB1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUB2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUB3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
GUB4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUB5:=(GUB2+2*GUB3+3*GUB4)/6;
GUB6:=MA(GUB5,3);
LOWV:=LLV(LOW,21);
HIGHV:=HHV(HIGH,21);
RSV1:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,5);
K1:=EMA(RSV1,5);
D1:=MA(K1,5);
GUC1:=REF(C,1);
GUC2:=SMA(MAX(C-GUC1,0),5,1)/SMA(ABS(C-GUC1),5,1)*1000;
GUC4:=GUC2-LLV(GUC2,10);
GUC5:=(MA(GUC4,2)*3+GUC4*13)/16;
GUC6:=IF(GUC5>13,MA(GUC5,2),GUC5)/6;
GUC7:=SMA(MAX(C-GUC1,0),12,1)/SMA(ABS(C-GUC1),12,1)*100;
GUC8:=LLV(MA(GUC7,3),12);
GUC9:=(HHV(MA(GUC7,3),12)+LLV(MA(GUC7,3),12))/2;
GUC10:=IF(CROSS(GUC6,1) AND (GUC6<30)AND GUC7<35 AND GUC7>=GUC8 AND GUC7<GUC9,30,20);
GUD1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUD2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUD3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
GUD4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUD5:=(GUD2+2*GUD3+3*GUD4)/7;
GUD6:=MA(GUD5,1);
GUD7:=IF(GUD6<-8,1,0);
买底:IF(GUC10=30 AND D1<20 AND GUD7=1 AND 趋势线<0,50,0) ,LINETHICK3,COLORFF00FF;
DRAWTEXT(FILTER(GUC10=30 AND D1<20 AND GUD7=1 AND 趋势线<0,5),50,' ←抄底'),COLORFF00FF;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5);
暴跌买CROSS(VARE,0.9) AND 趋势线<10 AND 趋势线>REF(趋势线,1))*65,LINETHICK2,COLORYELLOW;
DRAWTEXT(FILTER(CROSS(VARE,0.9) AND 趋势线<10 AND 趋势线>REF(趋势线,1),5),65,' ←暴跌买入'),COLORYELLOW;
选股公式源码
{选股公式一:抄底}
GUGUC1:=((C-LLV(L,20))/(HHV(H,20)-LLV(L,20)))*100;
趋势线:=MA(2*SMA(GUGUC1,6,1)-SMA(SMA(GUGUC1,6,1),6,1),3),LINETHICK2,COLORRED;
GUB1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUB2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUB3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
GUB4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUB5:=(GUB2+2*GUB3+3*GUB4)/6;
GUB6:=MA(GUB5,3);
LOWV:=LLV(LOW,21);
HIGHV:=HHV(HIGH,21);
RSV1:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,5);
K1:=EMA(RSV1,5);
D1:=MA(K1,5);
GUC1:=REF(C,1);
GUC2:=SMA(MAX(C-GUC1,0),5,1)/SMA(ABS(C-GUC1),5,1)*1000;
GUC4:=GUC2-LLV(GUC2,10);
GUC5:=(MA(GUC4,2)*3+GUC4*13)/16;
GUC6:=IF(GUC5>13,MA(GUC5,2),GUC5)/6;
GUC7:=SMA(MAX(C-GUC1,0),12,1)/SMA(ABS(C-GUC1),12,1)*100;
GUC8:=LLV(MA(GUC7,3),12);
GUC9:=(HHV(MA(GUC7,3),12)+LLV(MA(GUC7,3),12))/2;
GUC10:=IF(CROSS(GUC6,1) AND (GUC6<30)AND GUC7<35 AND GUC7>=GUC8 AND GUC7<GUC9,30,20);
GUD1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUD2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUD3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
GUD4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUD5:=(GUD2+2*GUD3+3*GUD4)/7;
GUD6:=MA(GUD5,1);
GUD7:=IF(GUD6<-8,1,0);
抄底:FILTER(GUC10=30 AND D1<20 AND GUD7=1 AND 趋势线<0,5);
{选股公式二:暴跌买入}
GUGUC1:=((C-LLV(L,20))/(HHV(H,20)-LLV(L,20)))*100;
趋势线:=MA(2*SMA(GUGUC1,6,1)-SMA(SMA(GUGUC1,6,1),6,1),3),LINETHICK2,COLORRED;
GUB1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5);
暴跌买入:FILTER(CROSS(VARE,0.9) AND 趋势线<10 AND 趋势线>REF(趋势线,1),5); |