{真实资金流入流出}
总额亿:AMOUNT/100000000,NODRAW;
买:=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,COLORRED,NODRAW;
流入亿元:AMOUNT*买%/10000000000,COLORRED,NODRAW;
流出亿元:AMOUNT/100000000-流入亿元,COLORGREEN,NODRAW;
净流亿元:流入亿元-流出亿元,COLORCYAN,NODRAW;
STICKLINE(C,0,AMOUNT/100000000,2,0),COLORGREEN;
STICKLINE(买,0,流出亿元,2,0),COLORGREEN;
STICKLINE(买,流出亿元,流入亿元+流出亿元,2,0),COLORRED;
怪离10_20:(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100,NODRAW;
二十五离6.5:ABS((C-EXPMA(C,25))/EXPMA(C,25))*100,COLORYELLOW,NODRAW;
五日83:ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416,NODRAW;
AAC:=REFDATE(C,1150615);
AAO:=REFDATE(O,1150615);
AAAA:=IF(AAC>AAO,AAC,AAO);
任意日期跌幅:(C-AAAA)/AAAA*100,NODRAW;
上市日期:CONST(DAYTODATE((DATETODAY(DATE)-FINANCE(42))))+19000000,NODRAW;
SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
N:=10;
WR1:=100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));
M1:=5;
M2:=10;
M3:=34;
VOL1:=MA(VOL,M1);
VOL2:=MA(VOL,M2);
VOL3:=MA(VOL,M3);
AA:=C>MA(C,5) AND C>MA(C,10) AND WR1<20 AND REF(WR1,1)>20 AND VOL1>VOL2 AND VOL2>VOL3 AND VOL>REF(VOL,1) AND MACD>0;