Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,EXTERNSTR(0,3)),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,EXTERNSTR(0,6)),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR,0,0.09,0,EXTERNSTR(0,12)),COLORLIGREEN;
DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,FGBLOCK),COLORLIMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,EXTERNSTR(0,1)),COLORYELLOW;
总额:=AMOUNT;
买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
买%:=买/AMOUNT*100;
流入:=AMOUNT*买%/10000000000;
流出:=AMOUNT/100000000-流入;
净流:=流入-流出;
净流3:=SUM(流入-流出,3);
净流5:=SUM(流入-流出,5);
净流10:=SUM(流入-流出,10);
总额10:=SUM(AMOUNT,10);
画:=CONST(FINDHIGH(总额10,0,190,1));
DRAWTEXT_FIX(CURRBARSCOUNT=30,0,0.08,0,'净流亿'),COLOR0099FF;
DRAWNUMBER_FIX(CURRBARSCOUNT=25,0.05,0.08,0,CONST(净流)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=19,0.1,0.08,0,CONST(净流3)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=13,0.15,0.08,0,CONST(净流5)), COLORFF00FF;
量比:V/REF(V,1)COLORYELLOW NODRAW;
JJ:=(CLOSE+HIGH+LOW)/3;
A:EMA(JJ,10)COLORRED;
B:REF(A,1)COLORGREEN;
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
V4:=SMA(V3,2,1);
V5:=SMA(V4,2,1);
D:=MIN(IF(A>B,A,DRAWNULL),REF(L,BARSLAST(CROSS(A,B))));
STICKLINE(A>B,D,B,0.1,0)COLORFF00FF;
E:=MAX(IF(A<B,REF(B,BARSLAST(CROSS(B,A))),DRAWNULL),REF(REF(C,BARSLAST(CROSS(B,A))+1),BARSLAST(CROSS(B,A))));
STICKLINE(A<B,B,E,0.1,0)COLORGREEN;
STICKLINE(CROSS(V5,V4),C,O,1,0)COLORBLUE;
DRAWTEXT(量比>=1.9, H*1.02, '倍')COLORYELLOW;
XA1:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
XA2:=100-XA1;
买入A:=COST(XA1),COLORYELLOW;
卖出:=COST(XA2),COLORCYAN;
压:HHV(MA((CLOSE),5),30) COLORMAGENTA;
MA60:MA(C,60)COLORGRAY;
HH1:=(H+C)/2;
LL1:=(L+O)/2;
三日均高:=(H+REF(H,2)+REF(H,3))/3;
三日收盘:=(C+REF(C,2)+REF(C,3))/3;
强势线:=EMA((三日均高+三日收盘)/2,7),COLORRED,LINETHICK1;
支撑线:=EMA((LL1+REF(LL1,2)+REF(LL1,3))/3,7),COLOR00FF00,LINETHICK1;
上穿双轨:=(CROSS(C,强势线) AND CROSS(C,支撑线)) OR (支撑线>REF(支撑线,1) AND L<支撑线 AND C>强势线) OR REF(CROSS(C,支撑线),1)=1 AND CROSS(C,强势线);
双穿卖出:=(CROSS(强势线,C) AND CROSS(支撑线,C)) OR ( (C<支撑线 AND H>强势线) OR (REF(H,1)>强势线 AND CROSS(支撑线,C)));
STICKLINE(C/REF(C,1)>=1.095,OPEN,CLOSE,3,0),COLORFF00FF;
STICKLINE(上穿双轨 ,OPEN,CLOSE,3.3,0),COLOR0055FF;
STICKLINE(上穿双轨,OPEN,CLOSE,3.3,0),COLOR0077FF;
STICKLINE(上穿双轨 ,OPEN,CLOSE,3,0),COLOR0099FF;
STICKLINE(上穿双轨,OPEN,CLOSE,2.2,0),COLOR00BBFF;
STICKLINE(上穿双轨,OPEN,CLOSE,1.5,0),COLOR00DDFF;
STICKLINE(上穿双轨,OPEN,CLOSE,0.4,0),COLOR00FFFF;
{----漂流瓶----}
C1:=REF(C,1)>REF(C,2) AND REF(C,1)>=REF(O,1) ;
C2:=O>REF(C,1) AND C>=O AND L>REF(MAX(C,O),1) AND C1;
DRAWTEXT(C2,L,'----')COLORYELLOW;
C3:=REF(C,2)<REF(C,3) AND REF(C,1)<REF(C,2) AND C>REF(C,1);
DRAWTEXT(C3,L,'----')COLORGREEN;
C4:REF(L,BARSLAST(C3))*1.15 COLORWHITE;
C5:=REF(L,BARSLAST(C2));
C6:=IF(EXIST(C3,BARSLAST(CROSS(C2,C)))>=3,C4,LLV(C4,20));
C7:IF(C5>C3 AND C>C5,REF(C5,1),REF(C5,1))COLORYELLOW,LINETHICK2;
水面:REFDATE(C6,DATE),COLORCYAN;
{股票指标网 整理}