J0:=(CLOSE+HIGH+LOW)/3; J1:=IF(CLOSE>REF(J0,1),AMOUNT,0);
J2:=IF(CLOSE<REF(J0,1),AMOUNT,0);
JJ:=J1-J2;YA:=SUM(JJ,0)/100000000;
YB:=SUM(JJ,22)/100000000;
短资金:(EMA(YB,5)-EMA(YB,14));
短趋势:EMA(短资金,9);
存量净值:(短资金-短趋势),STICK,COLOR0000FF;
长资金:(EMA(YA,22)-EMA(YA,144))/3,POINTDOT,LINETHICK2,COLORMAGENTA;
长趋势:EMA(长资金,34),POINTDOT,LINETHICK2,COLOR00FF00;
IF(存量净值<0,存量净值,0),STICK,COLORFFA900;
FJ:=EMA(存量净值,14);
流出:STICKLINE(存量净值<REF(存量净值,1) AND 存量净值<0 OR (AMOUNT/REF(AMOUNT,1)<0.97),存量净值,REF(存量净值,1),3,0),LINETHICK2,COLOREEEEEE;
流入:STICKLINE(存量净值>=REF(存量净值,1) AND 存量净值>0,存量净值,REF(存量净值,1),3,0),LINETHICK2,COLOR0000FF;
持币:STICKLINE(存量净值<FJ AND 存量净值<0,存量净值,REF(存量净值,1),3,0),LINETHICK2,COLOR00FF00;
S:=EMA((CLOSE-EMA(CLOSE,13))/EMA(CLOSE,21),10);W:=IF(S>0,MA(S,1),0);
JC:=CROSS(短资金,短趋势);
JD:=CROSS(短趋势,短资金);
JD1:=FILTER(CROSS(长趋势,长资金),5);
AA:=FILTER(JC,5);
BB:=FILTER(JD AND 短趋势>0,5);
DRAWICON(AA,短资金,10);DRAWICON(BB,短趋势,12);
DRAWTEXT(CROSS(长资金,长趋势),长资金,'▲'),COLORRED;
DRAWICON(AA AND CROSS(W,0.001),短资金,1);
DRAWICON(BB AND JD1,短趋势,2);
DRAWTEXT(JD1,长资金,'▼'),COLORFFFF00;
|
