副图公式源码支持 手机/电脑
M5:MA(CLOSE,5);
M10:MA(CLOSE,10);
M60:MA(CLOSE,60),LINETHICK2;
MA120: MA(CLOSE,120),LINETHICK2;
GUP1:=IF((BARSCOUNT(C)>7),(100)*((MA(C,7))/(LLV(MA(C,7),7))-1),1);
GUP2:=IF((GUP1>0.35),6,65);
GUP3:=((-((100)*(HHV(H,GUP2)-C))/(HHV(HIGH,GUP2) - LLV(L,GUP2))));
GUP4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
GUP5:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
GUP6:=(HIGH+LOW)/2;
GUP7:=EMA(GUP6,3);
GUP8:=IF(CLOSE>GUP7,VOL,0);
GUP9:=IF(CLOSE<GUP7,VOL,0);
GUP10:=MA(SUM(GUP8-GUP9,22),3),COLOR00DDDD;
GUP11:=21*GUP10+20*REF(GUP10,1)+19*REF(GUP10,2)+18*REF(GUP10,3)+17*REF(GUP10,4)
+16*REF(GUP10,5)+15*REF(GUP10,6)+14*REF(GUP10,7)+13*REF(GUP10,8)+12*REF
(GUP10,9)+11*REF(GUP10,10)+10*REF(GUP10,11)+9*REF(GUP10,12)+8*REF(GUP10,13)
+7*REF(GUP10,14)+6*REF(GUP10,15)+5*REF(GUP10,16)+4*REF(GUP10,17)+3*REF
(GUP10,18)+2*REF(GUP10,19)+REF(GUP10,20);
GUP12:=GUP11/(21+1)/21*2;
GUP13:=GUP12,COLOR008800;
GUP14:=(GUP10-GUP13);VAR4:=SMA(GUP4,3,1);
GUP15:=SMA(VAR4,3,1);
GUP16:=EMA(SMA(GUP5,3,1),2),COLORFFFFFF;
GUP17:=SMA(GUP16,3,1),COLOR00FFFF;
买入:=CROSS(GUP3,-2) AND CROSS(VAR4,GUP15) AND CROSS(GUP16,GUP17);
DRAWTEXT(买入,L*0.99,'↖强势启动'),COLORYELLOW,LINETHICK2;
选股公式源码
{选股公式:强势启动}
GUP1:=IF((BARSCOUNT(C)>7),(100)*((MA(C,7))/(LLV(MA(C,7),7))-1),1);
GUP2:=IF((GUP1>0.35),6,65);
GUP3:=((-((100)*(HHV(H,GUP2)-C))/(HHV(HIGH,GUP2) - LLV(L,GUP2))));
GUP4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
GUP5:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
GUP6:=(HIGH+LOW)/2;
GUP7:=EMA(GUP6,3);
GUP8:=IF(CLOSE>GUP7,VOL,0);
GUP9:=IF(CLOSE<GUP7,VOL,0);
GUP10:=MA(SUM(GUP8-GUP9,22),3),COLOR00DDDD;
GUP11:=21*GUP10+20*REF(GUP10,1)+19*REF(GUP10,2)+18*REF(GUP10,3)+17*REF(GUP10,4)
+16*REF(GUP10,5)+15*REF(GUP10,6)+14*REF(GUP10,7)+13*REF(GUP10,8)+12*REF
(GUP10,9)+11*REF(GUP10,10)+10*REF(GUP10,11)+9*REF(GUP10,12)+8*REF(GUP10,13)
+7*REF(GUP10,14)+6*REF(GUP10,15)+5*REF(GUP10,16)+4*REF(GUP10,17)+3*REF
(GUP10,18)+2*REF(GUP10,19)+REF(GUP10,20);
GUP12:=GUP11/(21+1)/21*2;
GUP13:=GUP12,COLOR008800;
GUP14:=(GUP10-GUP13);VAR4:=SMA(GUP4,3,1);
GUP15:=SMA(VAR4,3,1);
GUP16:=EMA(SMA(GUP5,3,1),2),COLORFFFFFF;
GUP17:=SMA(GUP16,3,1),COLOR00FFFF;
买入:=CROSS(GUP3,-2) AND CROSS(VAR4,GUP15) AND CROSS(GUP16,GUP17);
强势启动:买入; |