副图公式源码支持 手机/电脑
趋势:=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);
底部:=10,COLORRED,LINETHICK2;
买入1:=CROSS(趋势,底部);
GUB1:=(2*CLOSE+HIGH+LOW)/4;
GUB2:=LLV(LOW,27);
GUB3:=HHV(HIGH,27);
GUB4:=EMA((GUB1-GUB2)/(GUB3-GUB2)*100,13);
GUB5:=EMA(0.618*REF(GUB4,1)+0.382*GUB4,3);
买入2:=CROSS(GUB4,GUB5) AND GUB4<16;
底:=买入1 AND 买入2;
GUP2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP3:=SMA(SMA(GUP2,3,1),3,1)/28.57;
GUP4:=EMA(GUP3,5);
GUP5:=3*GUP3-2*GUP4;
牛股:=CROSS(GUP5,GUP3) AND GUP3<2.1 AND C>O;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,7),COLORWHITE;
MAVOL2:MA(VOLUME,55),COLORYELLOW;MAVOL3:MA(VOLUME,120),COLORGREEN;
GUV:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;
STICKLINE(GUV>=1,0,VOL*0.5,2,0),COLORYELLOW;
STICKLINE(底,0,VOL,2,0),COLORMAGENTA;
DRAWTEXT(底,VOL*0.8,'抄底'),COLORYELLOW;
DRAWICON(底,VOL*1.1,9);
STICKLINE(牛股,0,VOL,2,0),COLORRED;
DRAWTEXT(牛股,VOL*1.15,'抓牛'),COLORRED;
选股公式源码
{选股公式一:抄底}
趋势:=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);
底部:=10,COLORRED,LINETHICK2;
买入1:=CROSS(趋势,底部);
GUB1:=(2*CLOSE+HIGH+LOW)/4;
GUB2:=LLV(LOW,27);
GUB3:=HHV(HIGH,27);
GUB4:=EMA((GUB1-GUB2)/(GUB3-GUB2)*100,13);
GUB5:=EMA(0.618*REF(GUB4,1)+0.382*GUB4,3);
买入2:=CROSS(GUB4,GUB5) AND GUB4<16;
底:=买入1 AND 买入2;
抄底:底;
{选股公式二:抓牛}
GUP2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,colorwhite;
GUP3:=SMA(SMA(GUP2,3,1),3,1)/28.57,colorwhite;
GUP4:=EMA(GUP3,5),colorwhite;
GUP5:=3*GUP3-2*GUP4,colorwhite;
牛股:=CROSS(GUP5,GUP3) AND GUP3<2.1 AND C>O,colorwhite;
抓牛:牛股; |