A:0,POINTDOT,COLORMAGENTA,LINETHICK3;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORBLUE,LINETHICK2;
DEA1:=EMA(DIFF,9);0.10,COLORBLUE,LINETHICK2;
MACD:IF(2*(DIFF-DEA1)*60>0,IF(2*(DIFF-DEA1)*60>100,100,2*(DIFF-DEA1)*60),0),LINETHICK0;
S1:=MACD<REF(MACD,1)AND MACD>0,COLORBLUE;
STICKLINE(MACD>=18,MACD,0,4,1),COLORRED;
B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;
B2:=SMA(B1,9,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:IF(B6>60,B6-60,0);
持有:STICKLINE((REF(B7,1)<B7 AND B7>20 AND C>REF(C,1)) OR (MACD>=18 AND MACD>REF(MACD,1)),B7,REF(B7,1),3,0),COLORMAGENTA;
STICKLINE(S1 AND B7>20 AND C>REF(C,1),0,MACD,8,1),COLOR00FFFF;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
主力11:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
{资金监控}
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
主力2:IF(2*(V2-V3)*5.5*2>0,IF(2*(V2-V3)*5.5*2>100,100,2*(V2-V3)*5.5*2),0),COLORYELLOW;
DRAWICON(REF(主力2,1)<主力2 AND 主力2>主力11 AND B7>0,B7,23);