{鱼跃龙门副图源码如下}
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);
AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);
AB:=CROSS(AK1,AK);
鱼跃:=AB=1;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
趋势:=SMA(((CLOSE- LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
CBH:=趋势<50;
YYU:=鱼跃 OR (BB1 AND CC1 AND DD1 AND EE1);
XG:CBH AND YYU;
{鱼跃龙门优化版主图源码如下}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA30:=MA(C,30);
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
主力成本:EMA(X,13),COLORFF00FF;
短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;
IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);
AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);
AB:=CROSS(AK1,AK);
鱼跃:=AB=1;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
趋势:=SMA(((CLOSE- LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
YYU:=鱼跃 OR (BB1 AND CC1 AND DD1 AND EE1);
鱼跃龙门:趋势<50 AND YYU,COLOR0099FF,NODRAW;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
迎上水:CROSS(V1,V2),COLOR00FF00,NODRAW;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
蓄势待发:FILTER((VAR4AA>90),45),COLOR00FFFF,NODRAW;
FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
龙门关:FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1),COLORRED,NODRAW;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
风险警示:FILTER((A2AA>-0.5),84) OR CROSS(82,VAR7),COLORFFFFFF,NODRAW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWTEXT(龙门关,L-0.2,'★龙门关'),COLORRED;
DRAWTEXT(迎上水,V1+0.05,'迎上水'),COLOR00FF00;
DRAWTEXT(鱼跃龙门,L*0.99,'鱼跃龙门'),COLOR0099FF;
DRAWTEXT(蓄势待发,(LOW)*(0.98),'★蓄势待发'),COLOR00FFFF;
DRAWTEXT(风险警示,H*1.01,'风险警示'),COLORFFFFFF;