九毛八公式指标
1. 买:=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,COLORMAGENTA,NODRAW; 流出亿元:AMOUNT/100000000-流入亿元,COLORGREEN,NODRAW; 净流亿元:流入亿元-流出亿元,COLORCYAN,NODRAW; 净流亿元5:SUM(流入亿元-流出亿元,5),COLORCYAN,NODRAW; STICKLINE(AMOUNT,0,AMOUNT,2,1),COLORGREEN; STICKLINE(买,0,买,2,0),COLORRED; A:MA(买,3)COLORYELLOW; B:MA(买,5)COLORMAGENTA; 2. AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE
公式模块:
{1}
买:=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,LINETHICK0; 流入亿元:AMOUNT*买℅/10000000000,COLORMAGENTA,LINETHICK0; 流出亿元:AMOUNT/100000000-流入亿元,COLORGREEN,LINETHICK0; 净流亿元:流入亿元-流出亿元,COLORCYAN,LINETHICK0; 净流亿元5:SUM(流入亿元-流出亿元,5),COLORCYAN,LINETHICK0; STICKLINE(AMOUNT,0,AMOUNT,2,1),COLORGREEN; STICKLINE(买,0,买,2,0),COLORRED; A:MA(买,3),COLORYELLOW; B:MA(买,5),COLORMAGENTA; {2} AA:=vol/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)); 进出量:=(买量+卖量); STICKLINE(进出量<0,0,进出量,1,0),COLORFF6600; STICKLINE(进出量<0,0,进出量,3,0),COLORFF9900; STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00; STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN; STICKLINE(进出量>0,0,进出量,3,0),COLOR000099; STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC; STICKLINE(进出量>0,0,进出量,1.0,0),COLOR0000FF; STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;N:=1;QJ0:=(HIGH+LOW+CLOSE)/3; QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0); QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN)); QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW)); QJ6:="macd.DIFF">"MacD.DEA" AND "MACD.DEA"<0; QJ7:="kdj.K">"kdJ.D" AND "KDJ.D"<30; QJ8:="MACD.DIFF"<"MACD.DEA"; QJ9:="KDJ.K"<"KDJ.D" AND "KDJ.K">80; 特大:QJ4*QJ5,LINETHICK0;大单:QJ3*QJ5,LINETHICK0; 中单:QJ1*QJ5,LINETHICK0;小单:QJ2*QJ5,LINETHICK0; W1:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N); 量振1:=特大>大单 AND 大单>小单; 量振2:=特大<小单 AND 大单<小单; 标振1:=QJ6 AND QJ7; 标振2:=QJ8 AND QJ9; A:=W1-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0); STICKLINE(A0,0,A0,1,0),COLOR000044; 主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF; 主力筹码集中度:WINNER(C)*100,COLORRED;