副图公式源码:支持手机/电脑
GUA1:=HHV(HIGH,9)-LLV(LOW,9); GUA2:=HHV(HIGH,9)-CLOSE; GUA3:=CLOSE-LLV(LOW,9); GUA4:=GUA2/GUA1*100-70; GUA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; GUA6:=(CLOSE+HIGH+LOW)/3; GUA7:=SMA(GUA3/GUA1*100,3,1); GUA8:=LLV(LOW,34); GUA9:=SMA(GUA7,3,1)-SMA(GUA4,9,1); GUPA:=IF(GUA9>100,GUA9-100,0); GUPB:=HHV(HIGH,34); GUPC:=EMA((GUA6-GUA8)/(GUPB-GUA8)*100,13); GUPD:=EMA(0.667*REF(GUPC,1)+0.333*GUPC,2); GUPE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25; GUPF:=MA(GUPE,3); 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); B1:=EMA(((GUP6-GUP8)/(GUP11-GUP8))*(100),8); STICKLINE(EMA(B1,5)>B1,EMA(B1,5),B1,6,0 ),COLOR00AA00; STICKLINE(EMA(B1,5)>B1,EMA(B1,5),B1,4.6,0 ),COLOR00BB11; STICKLINE(EMA(B1,5)>B1,EMA(B1,5),B1,4.4,0 ),COLOR00CC22; STICKLINE(EMA(B1,5)>B1,EMA(B1,5),B1,3.3,0 ),COLOR00DD33; STICKLINE(EMA(B1,5)>B1,EMA(B1,5),B1,2.2,0 ),COLOR00EE44; STICKLINE(EMA(B1,5)>B1,EMA(B1,5),B1,1.1,0 ),COLOR00FF55; STICKLINE(B1>EMA(B1,5),B1,EMA(B1,5),6 ,0 ),COLOR0000AA; STICKLINE(B1>EMA(B1,5),B1,EMA(B1,5),4.6 ,0 ),COLOR0011BB; STICKLINE(B1>EMA(B1,5),B1,EMA(B1,5),4.4,0 ),COLOR0022CC; STICKLINE(B1>EMA(B1,5),B1,EMA(B1,5),3.3 ,0 ),COLOR0033DD; STICKLINE(B1>EMA(B1,5),B1,EMA(B1,5),2.2 ,0 ),COLOR0044EE; STICKLINE(B1>EMA(B1,5),B1,EMA(B1,5),1.1 ,0 ),COLOR0055FF; 领先线:EMA(B1,5),COLORCYAN; 生命线:EMA(GUPD,1),COLORYELLOW; GUV1:=MA(C,5)=HHV(MA(C,5),20); GUV2:=MA(C,5)>MA(C,10); GUV3:=MA(V,5)>MA(V,40)*1.01; GUV4:=COUNT(MA(C,1)>REF(C,1),2)=2; GUVV:=GUV1 AND GUV2 AND GUV3 AND GUV4; A1:=EMA(CLOSE,8); A2:=EMA(A1,20); A3:=CROSS(A1,A2); A4:=A1<EMA(CLOSE,120); STICKLINE((A3 AND A4)OR(GUV1 AND GUV2 AND GUV3 AND GUV4),B1*1.03,B1*1.120,6,0),COLOR00A8FF; STICKLINE((A3 AND A4)OR(GUV1 AND GUV2 AND GUV3 AND GUV4),B1*1.03,B1*1.120,4.6,0),COLOR00B0FF; STICKLINE((A3 AND A4)OR(GUV1 AND GUV2 AND GUV3 AND GUV4),B1*1.03,B1*1.120,4.4,0),COLOR00B5FF; STICKLINE((A3 AND A4)OR(GUV1 AND GUV2 AND GUV3 AND GUV4),B1*1.03,B1*1.120,3.3,0),COLOR00BCFF; STICKLINE((A3 AND A4)OR(GUV1 AND GUV2 AND GUV3 AND GUV4),B1*1.03,B1*1.120,2.2,0),COLOR00D3FF; STICKLINE((A3 AND A4)OR(GUV1 AND GUV2 AND GUV3 AND GUV4),B1*1.03,B1*1.120,1.1,0),COLOR00FFFF; A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2* SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ; 安全位:=20; 底部转强:IF(CROSS(A5,安全位),50,0),STICK,COLORMAGENTA,LINETHICK2; 强势拉升:IF(CROSS(GUPC,生命线) AND GUPC>GUPD AND GUPC<55 AND C>O,50,0), COLORC800FF,POINTDOT; A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100); 极低上涨:IF(A6,领先线,0),COLORGREEN,LINETHICK2; STICKLINE(强势拉升>0,15,强势拉升*1.01,3,0),COLORBLUE; STICKLINE((强势拉升>0 AND 强势拉升<400) OR (极低上涨>0 AND 极低上涨<400) OR (底部转强>0 AND 底部转强<400) OR (底部转强>0),30,强势拉升,3,0),COLORRED; STICKLINE(强势拉升>0,15,强势拉升*0.6,9,0),COLORBLUE; STICKLINE(强势拉升>0,15,强势拉升*0.4,9,0),COLOR00FF00; STICKLINE(强势拉升>0,15,强势拉升*0.2,9,0),COLOR0099CC; STICKLINE(底部转强>0,15,底部转强*1.01,3,0),COLORMAGENTA; STICKLINE((底部转强>0)OR(极低上涨>0),15,底部转强*0.4,9,0),COLORYELLOW; STICKLINE(底部转强>0,15,底部转强*0.2,9,0),COLORFFCC66; STICKLINE(极低上涨>0,15,极低上涨*1.01,3,0),COLORYELLOW;
选股公式源码
{选股公式一:强势拉升} GUA1:=HHV(HIGH,9)-LLV(LOW,9); GUA2:=HHV(HIGH,9)-CLOSE; GUA3:=CLOSE-LLV(LOW,9); GUA4:=GUA2/GUA1*100-70; GUA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; GUA6:=(CLOSE+HIGH+LOW)/3; GUA7:=SMA(GUA3/GUA1*100,3,1); GUA8:=LLV(LOW,34); GUA9:=SMA(GUA7,3,1)-SMA(GUA4,9,1); GUPA:=IF(GUA9>100,GUA9-100,0); GUPB:=HHV(HIGH,34); GUPC:=EMA((GUA6-GUA8)/(GUPB-GUA8)*100,13); GUPD:=EMA(0.667*REF(GUPC,1)+0.333*GUPC,2); 生命线:=EMA(GUPD,1),COLORYELLOW; 强势拉升:IF(CROSS(GUPC,生命线) AND GUPC>GUPD AND GUPC<55 AND C>O,50,0),COLORC800FF;
{选股公式二:极低上涨} 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); B1:=EMA(((GUP6-GUP8)/(GUP11-GUP8))*(100),8); 领先线:=EMA(B1,5),COLORCYAN; A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100); 极低上涨:IF(A6,领先线,0),COLORGREEN,LINETHICK2;
{选股公式三:底部转强} A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2* SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ; 安全位:=20; 底部转强:IF(CROSS(A5,安全位),50,0),COLORMAGENTA,LINETHICK2;
|