{海底捞月主图源码如下}
DRAWTEXT_FIX(ISLASTBAR ,0.01,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.01,0.05,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.01,0.1,0,GNBLOCK),COLORYELLOW;
MA5:MA(CLOSE,10),COLORRED DOTLINE;
MA20:MA(CLOSE,120),COLORYELLOW;
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT>1,1,SAT)*100;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
KAAA:=饱和度>=97 AND CQ>90;
KBBB:=W4 AND COUNT(W4,5)=1;
AA:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(AA,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(KBBB,OPEN,CLOSE,2,0),COLORFF00FF;
X_1:=(REF(MA(CLOSE,3),1)+ZTPRICE(REF(CLOSE,1),0.1))/2;
X_2:=X_1*0.9;
XG:=MAX(CLOSE,OPEN)<X_2 AND CLOSE>OPEN AND OPEN/REF(CLOSE,1)<0.95 AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)<REF(OPEN,1),COLORYELLOW,LINETHICK2;
STICKLINE(XG,O,C,3,0),COLORFF00FF;
STICKLINE(XG,L,H,0,0),COLORFF00FF;
DRAWTEXT(XG,L*0.99,'海底捞月'), COLORYELLOW;
{海底捞月副图源码如下}
X_1:=(REF(MA(CLOSE,3),1)+ZTPRICE(REF(CLOSE,1),0.1))/2;
X_2:=X_1*0.9;
XG:MAX(CLOSE,OPEN)<X_2 AND CLOSE>OPEN AND OPEN/REF(CLOSE,1)<0.95 AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)<REF(OPEN,1),COLORYELLOW,LINETHICK2;
DRAWTEXT(XG,0.4,' ★ 海底捞月'),COLORRED;