副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=EMA(C,6)-EMA(C,12);
GUP2:=EMA(GUP1,5);
GUP3:=GUP1-GUP2;
GUP4:=DMA((H+L+C*2)/4,0.9);
GUP5:=VOL/((H-L)*2-ABS(C-O));
GUP6:=IF(C>O,GUP5*(H-L),IF(C<O,GUP5*(H-O+(C-L)),VOL/2))+IF(C>O,0-GUP5*(H-C+(O-L)),IF(C<O,0-GUP5*(H-L),0-VOL/2));
GUP7:=GUP6/20/1.15;
GUA1:=GUP7*0.55+REF(GUP7,1)*0.33+REF(GUP7,2)*0.22;
GUP8:=EMA(GUA1,3);
GUA2:=GUP8;
STICKLINE(GUA2>0 AND GUP3>0 ,GUP3/30,0,1,0),colorred;
STICKLINE(GUA2>0 AND GUP3<0,0,GUP3/30,1,0),colorgreen;
GUPG:=100-3*SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUB0:=100-3*SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUB1:=GUPG<REF(GUB0,1) AND VOL>REF(VOL,1) AND G1>REF(G1,1);
STICKLINE(GUB1 AND COUNT(GUB1,30)=1,0,0.05,2,0),COLORFF00FF;
DRAWTEXT(GUB1 AND COUNT(GUB1,30)=1,0.045,' 主力进场'),COLORFF00FF;
GUPH:=MA(100*(G1-LLV(G1,34))/(HHV(G4,34)-LLV(G2,34)),5)-20;
GUB2:=(G4+G2+G1)/3;
GUB3:=(GUB2-MA(GUB2,14))/(0.015*AVEDEV(GUB2,14));
GUB4:=(GUB2-MA(GUB2,70))/(0.015*AVEDEV(GUB2,70));
GUB5:=IF(GUB3>=150 AND GUB3<200 AND GUB4>=150 AND GUB4<200,10,0);
GUB6:=IF(GUB3<=-150 AND GUB3>-200 AND GUB4<=-150 AND GUB4>-200,-10,GUB5);
GUB7:=(G1-MA(G1,13))/MA(G1,13)*100;
GUB8:=100-ABS(GUB7);
GUB9:=IF(GUB8<90,GUB8,100);
GUB10:=IF(GUPH>0,GUPH,0);
GUB11:=IF(GUB4>=200 AND GUB3>=150,15,IF(GUB4<=-200 AND GUB3<=-150,-15,GUB6))+60;
GUB12:=GUB10>48 AND GUB11>60 AND GUB9<100;
STICKLINE(GUB12 AND COUNT(GUB12,30)=1,0,0.05,2,0),COLOR80FFFF;
DRAWTEXT(GUB12 AND COUNT(GUB12,30)=1,0.045,' 主力对敲'),LINETHICK1,COLOR80FFFF;
选股公式源码
{选股公式一:主力进场}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=EMA(C,6)-EMA(C,12);
GUP2:=EMA(GUP1,5);
GUP3:=GUP1-GUP2;
GUP4:=DMA((H+L+C*2)/4,0.9);
GUP5:=VOL/((H-L)*2-ABS(C-O));
GUP6:=IF(C>O,GUP5*(H-L),IF(C<O,GUP5*(H-O+(C-L)),VOL/2))+IF(C>O,0-GUP5*(H-C+(O-L)),IF(C<O,0-GUP5*(H-L),0-VOL/2));
GUP7:=GUP6/20/1.15;
GUA1:=GUP7*0.55+REF(GUP7,1)*0.33+REF(GUP7,2)*0.22;
GUP8:=EMA(GUA1,3);
GUA2:=GUP8;
GUPG:=100-3*SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUB0:=100-3*SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUB1:=GUPG<REF(GUB0,1) AND VOL>REF(VOL,1) AND G1>REF(G1,1);
主力进场:GUB1 AND COUNT(GUB1,30)=1,COLORFF00FF;
{选股公式二:主力对敲}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUPH:=MA(100*(G1-LLV(G1,34))/(HHV(G4,34)-LLV(G2,34)),5)-20;
GUB2:=(G4+G2+G1)/3;
GUB3:=(GUB2-MA(GUB2,14))/(0.015*AVEDEV(GUB2,14));
GUB4:=(GUB2-MA(GUB2,70))/(0.015*AVEDEV(GUB2,70));
GUB5:=IF(GUB3>=150 AND GUB3<200 AND GUB4>=150 AND GUB4<200,10,0);
GUB6:=IF(GUB3<=-150 AND GUB3>-200 AND GUB4<=-150 AND GUB4>-200,-10,GUB5);
GUB7:=(G1-MA(G1,13))/MA(G1,13)*100;
GUB8:=100-ABS(GUB7);
GUB9:=IF(GUB8<90,GUB8,100);
GUB10:=IF(GUPH>0,GUPH,0);
GUB11:=IF(GUB4>=200 AND GUB3>=150,15,IF(GUB4<=-200 AND GUB3<=-150,-15,GUB6))+60;
GUB12:=GUB10>48 AND GUB11>60 AND GUB9<100;
主力对敲:GUB12 AND COUNT(GUB12,30)=1; |