副图公式源码支持 手机/电脑
TR1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),7,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
DI正:=DMP*100/TR1,COLORRED;
DI负:=DMM*100/TR1,COLORGREEN;
ZZ:=SMA(ABS(DI负-DI正)/(DI负+DI正)*100,7,1),COLORFF00FF,LINETHICK2;
ZZA:=FILTER(ZZ<REF(ZZ,1)-1.3 AND EVERY(REF(ZZ,1)>=REF(ZZ,2)-1.3,5) AND REF(ZZ,1)>50,5);
ZZB:=FILTER(ZZ<REF(ZZ,1)-1.3 AND EVERY(REF(ZZ,1)>=REF(ZZ,2)-1.3,5) AND REF(ZZ,1)>50,5);
STICKLINE(ZZA AND REF(DI正>DI负,1),15,85,2,-0),COLORGREEN;
DRAWTEXT (ZZA AND REF(DI正>DI负,1),90,'撤'),COLORGREEN;
STICKLINE(ZZB AND REF(DI正<DI负,1),15,85,2,-0),COLOR8888FF;
DRAWTEXT(ZZB AND REF(DI正<DI负,1),25,'加'),COLORFF88FF;
GUP333:=(CLOSE*2.5/100+CLOSE);
逃:=HHV(HIGH,19),COLORBLUE;
STICKLINE(逃>REF(逃,1)AND CROSS(逃,GUP333)AND C<O,82,65,2,0),COLOR6B8E23;
DRAWTEXT (逃>REF(逃,1)AND CROSS(逃,GUP333)AND C<O,75,'逃'),COLOR6B8E23;
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
GUP3:=EMA(GUP2,10);
GUP4:=LLV(LOW,33);
GUP5:=EMA(IF(LOW<=GUP4,GUP3,0),3);
进场:IF(GUP5>REF(GUP5,1),GUP5,0),COLORRED,NODRAW;
洗盘:IF(GUP5<REF(GUP5,1),GUP5,0),COLORGREEN,COLORCYAN,NODRAW;
GUP21:=SMA(ABS(HIGH-GUP1),13,1)/SMA(MIN(HIGH-GUP1,0),10,1);
GUP31:=EMA(GUP21,10);
GUP41:=HHV(HIGH,33);
GUP51:=EMA(IF(HIGH>=GUP41,GUP31,0),3);
拉升:IF(GUP51<REF(GUP51,1),GUP51,0),COLORYELLOW,NODRAW;
出货:IF(GUP51>REF(GUP51,1),GUP51,0),COLORGREEN,,NODRAW;
STICKLINE(GUP5<REF(GUP5,1),20,15,3,-1),COLORCYAN;
STICKLINE(GUP5>REF(GUP5,1),20,15,2,1),COLORRED;
STICKLINE(GUP51>REF(GUP51,1),20,15,2,1),COLORGREEN;
STICKLINE(GUP51<REF(GUP51,1),20,15,3,0),COLORYELLOW;
MTM:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
STICKLINE(FILTER(买=1,5),36,30,2,0),COLORRED;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORWHITE,DOTLINE;
吸:=CROSS(RSI1,11);
STICKLINE(CROSS(82,RSI1),75,55,2,0),COLORGREEN;
DRAWTEXT(CROSS(82,RSI1),70,'卖'),COLORGREEN;
STICKLINE(FILTER(RSI1<18,RSI1),45,40,2,-1),COLORWHITE;
STICKLINE(FILTER(RSI1<19,RSI1),39,35,2,-0),COLORWHITE;
STICKLINE((吸),31,25,3,-0),COLORGREEN;
IF(RSI1>80,RSI1,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(RSI1<20,RSI1,DRAWNULL),COLORCYAN,LINETHICK2;
IF(RSI1>80,RSI1,DRAWNULL),COLORCYAN,LINETHICK2;
IF(RSI1<20,RSI1,DRAWNULL),COLORMAGENTA,LINETHICK2;
选股公式源码
{选股公式一:加}
TR1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),7,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
DI正:=DMP*100/TR1,COLORRED;
DI负:=DMM*100/TR1,COLORGREEN;
ZZ:=SMA(ABS(DI负-DI正)/(DI负+DI正)*100,7,1),COLORFF00FF,LINETHICK2;
ZZB:=FILTER(ZZ<REF(ZZ,1)-1.3 AND EVERY(REF(ZZ,1)>=REF(ZZ,2)-1.3,5) AND REF(ZZ,1)>50,5);
加:ZZB AND REF(DI正<DI负,1);
{选股公式二:红柱买}
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
GUP21:=SMA(ABS(HIGH-GUP1),13,1)/SMA(MIN(HIGH-GUP1,0),10,1);
MTM:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
红柱买:FILTER(买=1,5),COLORRED; |