副图公式源码支持 手机/电脑
GUP1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
GUP2:=SMA(GUP1,3,1);
GUP3:=SMA(GUP2,3,1);
GUP4:=SMA(GUP3,3,1);
牛:GUP3,COLORWHITE;
马:GUP4,COLORYELLOW;
GUP6:=CROSS(GUP3,GUP4) AND GUP3<20;
DRAWTEXT(FILTER(GUP6,10)=1,40,'买入'),LINETHICK1,COLOR00AAFF;
STICKLINE(FILTER(GUP6,10)=1,0,90,1,0),COLORRED;
GUP7:=CROSS(GUP4,GUP3) AND GUP3>80;
STICKLINE(FILTER(GUP7,5)=1,0,90,1,0),COLORGREEN ;
DRAWTEXT(FILTER(GUP7,5)=1,70,'卖出'),LINETHICK1,COLORFFCC66;
趋势:=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,COLORWHITE;
GUP8:=CROSS(GUP2,GUP3) AND GUP3>80 AND GUP3>GUP4;
GUP9:=CROSS(趋势,GUP2) AND 趋势<20 AND 趋势<马;
逐步卖出:STICKLINE(GUP8,50,90,1,0),COLOR008360,LINETHICK3;
逐步买入:STICKLINE(GUP9,40,0,1,0),COLOR000080,LINETHICK3;
90,COLORBLUE;
0,COLORLIRED;
GUP01:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
资金线:GUP01,COLORRED;
GUA6:=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);
GUA7:=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);
GUA8:=GUA6<REF(GUA7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,0,18,0.5,0),COLORBLUE,LINETHICK3;
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,18,36,0.5,0),COLORFF7700,LINETHICK3;
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,36,60,1,0),COLORYELLOW;
DRAWTEXT(GUA8 AND COUNT(GUA8,30)=1,90,'庄家现身★'),COLORRED;
GUB1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
GUB2:=(HIGH+LOW+CLOSE)/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:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
GUB8:=100-ABS(GUB7);
GUB9:=IF(GUB8<90,GUB8,100);
GUBA:=IF(GUB1>0,GUB1,0);
GUGUPB:=IF(GUB4>=200 AND GUB3>=150,15,IF(GUB4<=-200 AND GUB3<=-150,-15,GUB6))+60;
GUBC:=GUBA>48 AND GUGUPB>60 AND GUB9<100;
DRAWTEXT(GUBC AND COUNT(GUBC,25)=1,80,'逐步出货'),LINETHICK1,COLORFFCC66;
STICKLINE(GUBC AND COUNT(GUBC,25)=1,90,60,0.5,0),COLORFFCC66;
选股公式源码
{选股公式一:庄家现身}
GUA6:=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);
GUA7:=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);
GUA8:=GUA6<REF(GUA7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
{STICKLINE(GUA8 AND COUNT(GUA8,30)=1,0,18,0.5,0),COLORBLUE,LINETHICK3;
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,18,36,0.5,0),COLORFF7700,LINETHICK3;
STICKLINE(GUA8 AND COUNT(GUA8,30)=1,36,60,1,0),COLORYELLOW;}
庄家现身:GUA8 AND COUNT(GUA8,30)=1;
{选股公式二:买入}
GUP1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
GUP2:=SMA(GUP1,3,1);
GUP3:=SMA(GUP2,3,1);
GUP4:=SMA(GUP3,3,1);
GUP6:=CROSS(GUP3,GUP4) AND GUP3<20;
{STICKLINE(FILTER(GUP6,10)=1,0,90,1,0),COLORRED;}
买入:FILTER(GUP6,10)=1;
{选股公式三:逐步买入}
GUP1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
GUP2:=SMA(GUP1,3,1);
GUP3:=SMA(GUP2,3,1);
GUP4:=SMA(GUP3,3,1);
牛:=GUP3,COLORWHITE;
马:=GUP4,COLORYELLOW;
GUP7:=CROSS(GUP4,GUP3) AND GUP3>80;
趋势:=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,COLORWHITE;
GUP8:=CROSS(GUP2,GUP3) AND GUP3>80 AND GUP3>GUP4;
GUP9:=CROSS(趋势,GUP2) AND 趋势<20 AND 趋势<马;
逐步买入:STICKLINE(GUP9,40,0,1,0),COLOR000080,LINETHICK3; |