P1:=2,30,5;
P2:=2,60,13;
P3:=2,120,34;
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01&&DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));
CYC1:IF(JJJT,0.01*EXPMA(AMOUNT,P1)/EXPMA(VOL,P1),EMA((HIGH+LOW+CLOSE)/3,P1));
CYC2:IF(JJJT,0.01*EXPMA(AMOUNT,P2)/EXPMA(VOL,P2),EMA((HIGH+LOW+CLOSE)/3,P2));
CYC3:=IF(JJJT,0.01*EXPMA(AMOUNT,P3)/EXPMA(VOL,P3),EMA((HIGH+LOW+CLOSE)/3,P3));
CYC∞:=IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));
龙眼:=HHV(CYC1,60)=CYC1;
ARU0:SMA(C,6,2),COLORLICYAN;
ARU1:=(55*ARU0+34*REF(ARU0,1)+22*REF(ARU0,2)+15*REF(ARU0,3)+8*REF(ARU0,4)+5*REF(ARU0,5)
+3*REF(ARU0,6)+2*REF(ARU0,7)+REF(ARU0,8)+REF(ARU0,9))/155;
ARU2:REF(ARU1,1);
Y:0.5*(ARU1+ARU2),COLORCYAN;
ZD0:SMA(C,5,1),RGB(200,80,40);
ZD1:=(55*ZD0+34*REF(ZD0,1)+22*REF(ZD0,2)+15*REF(ZD0,3)+8*REF(ZD0,4)+5*REF(ZD0,5)
+3*REF(ZD0,6)+2*REF(ZD0,7)+REF(ZD0,8)+REF(ZD0,9))/155;
ZD2:=REF(ZD1,1);
Y1:=0.5*(ZD1+ZD2),RGB(250,250,250);
E0:=SMA(C,8,1);
E1:=(55*E0+34*REF(E0,1)+22*REF(E0,2)+15*REF(E0,3)+8*REF(E0,4)+5*REF(E0,5)
+3*REF(E0,6)+2*REF(E0,7)+REF(E0,8)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);
Y7:=0.5*(JJ1+JJ2),COLORGREEN,LINETHICK1;
TC0:=SMA(C,160,1);
TC1:=(55*TC0+34*REF(TC0,1)+22*REF(TC0,2)+15*REF(TC0,3)+8*REF(TC0,4)+5*REF(TC0,5)
+3*REF(TC0,6)+2*REF(TC0,7)+REF(TC0,8)+REF(TC0,9))/155;
TC2:=REF(TC1,1);
Y8:0.5*(TC1+TC2),CIRCLEDOT,COLORMAGENTA,LINETHICK1;
DTPL:=CYC2>CYC3&&CYC3>CYC∞&&Y2>Y3&&Y3>Y4&&Y4>Y5&&Y5>Y6&&Y6>Y7&&Y7>Y8;
金龙张嘴:=(DTPL,5)=5;
DRAWTEXT(FILTER(龙眼,33),0.98*REF(CYC2,BARSLAST(龙眼)),'◎'),COLORYELLOW;{画龙点睛}
DRAWTEXT_FIX(CROSS(C,CYC1),0.9,0.05,0,'龙抬头'),COLORYELLOW;
DRAWTEXT_FIX(CROSS(C,CYC1),0.9,0.10,0,'快抢筹'),COLORYELLOW;
DRAWTEXT(FILTER(金龙张嘴,32),1.02*REF(L,BARSLAST(LLV(L,60)=L)),'金龙张嘴,升腾如雷,我必相随'),COLORLIRED;
DRAWICON(CROSS(E1,E2),0.85*L,1);
DRAWICON(CROSS(E2,E1),1.15*H,2); |