本帖最后由 九转妖 于 2024-1-19 16:36 编辑
副图公式源码支持: 手机/电脑
趋势:=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);
买入:CROSS(趋势,5),NODRAW;
潜伏:趋势<=5,COLOR00FF99,NODRAW;
关注:趋势<=13,COLORCYAN,NODRAW;
STICKLINE(关注,0,-100,4,-1),COLORCYAN;
STICKLINE(潜伏,-90,-10,1,0),COLOR00FF99;
STICKLINE(买入,-90,100,1,0),COLORFF00FF;
趋势2:=4*SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1)-
3*SMA(SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1),3.2,1);
GUA1:=CROSS(趋势2,8) AND 关注;
GUA2:=L<=REFDATE(REF(LLV(L,150),3),DATE) AND 关注;
短买:GUA1 OR GUA2,COLOR0099FF,NODRAW;
STICKLINE(短买,-60,20,3,0),COLOR0090FF;
STICKLINE(短买,-55,15,1,-1),COLORRED;
GUB:=DMA((((H+L)+(C*2))/4.15),0.9);
GUB1:=REF(EMA(GUB,3),1);
GUB2:="KDJ.J"<50 AND C>REF(C,3);
GUC:=(C-MA(C,30))/MA(C,30)*100;
GUC1:=CROSS(0,(C-MA(C,5))/MA(C,5)*100);
GUD2:=GUC<REF(GUC,1);
GUD3:=MA(C,10)>REF(MA(C,10),1);
GUD4:=FILTER(GUC1 AND GUD2 AND GUD3,10);
GUD5:=(2*C+H+L)/4;
GUD6:=MA(EMA((GUD5-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5),1);
GUE3:=REF(GUD4,2) AND CROSS(C,EMA(C,5)) ;
GUE4:=GUD6>REF(GUD6,1) AND REF(GUD6,1)<REF(GUD6,2);
GUF1:=VOL/((H-L)*2-ABS(C-O));
GUF2:=IF(C>O,GUF1*(H-L),IF(C<O,GUF1*((H-O)+(C-L)),VOL/2));
GUF3:=IF(C>O,GUF1*((H-C)+(O-L)),IF(C<O,GUF1*(H-L),VOL/2));
GUF4:="KDJ.J"<20 ;
GUG1:=GUF2>GUF3*6 AND GUF4;
GUG2:=CROSS(C,GUB1) AND GUB2;
GUG3:=GUE3 AND GUE4;
起爆:关注 AND (GUG1 OR GUG2 OR GUG3),COLORRED,NODRAW;
STICKLINE(起爆,0,70,3,0),COLORRED;
DRAWTEXT(起爆,40,'起爆'),COLORYELLOW;
DRAWTEXT(短买,-20,'短买'),COLORFFFFFF;
DRAWTEXT(买入,85,'买入'),COLORGREEN;
选股公式源码
{选股公式一:买入}
趋势:=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);
买入:CROSS(趋势,5);
{选股公式二:短买}
趋势:=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);
关注:=趋势<=13,COLORCYAN;
趋势2:=4*SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1)-
3*SMA(SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1),3.2,1);
GUA1:=CROSS(趋势2,8) AND 关注;
GUA2:=L<=REFDATE(REF(LLV(L,150),3),DATE) AND 关注;
短买:GUA1 OR GUA2,COLOR0099FF;
{选股公式三:起爆}
趋势:=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);
关注:=趋势<=13,COLORCYAN;
GUB:=DMA((((H+L)+(C*2))/4.15),0.9);
GUB1:=REF(EMA(GUB,3),1);
GUB2:="KDJ.J"<50 AND C>REF(C,3);
GUC:=(C-MA(C,30))/MA(C,30)*100;
GUC1:=CROSS(0,(C-MA(C,5))/MA(C,5)*100);
GUD2:=GUC<REF(GUC,1);
GUD3:=MA(C,10)>REF(MA(C,10),1);
GUD4:=FILTER(GUC1 AND GUD2 AND GUD3,10);
GUD5:=(2*C+H+L)/4;
GUD6:=MA(EMA((GUD5-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5),1);
GUE3:=REF(GUD4,2) AND CROSS(C,EMA(C,5)) ;
GUE4:=GUD6>REF(GUD6,1) AND REF(GUD6,1)<REF(GUD6,2);
GUF1:=VOL/((H-L)*2-ABS(C-O));
GUF2:=IF(C>O,GUF1*(H-L),IF(C<O,GUF1*((H-O)+(C-L)),VOL/2));
GUF3:=IF(C>O,GUF1*((H-C)+(O-L)),IF(C<O,GUF1*(H-L),VOL/2));
GUF4:="KDJ.J"<20 ;
GUG1:=GUF2>GUF3*6 AND GUF4;
GUG2:=CROSS(C,GUB1) AND GUB2;
GUG3:=GUE3 AND GUE4;
起爆:关注 AND (GUG1 OR GUG2 OR GUG3),COLORRED; |