VAR1:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));
成交:=VOL;
买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*(HIGH-OPEN+CLOSE-LOW),VOL/2));
卖盘:=IF(CLOSE>OPEN,-VAR1*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,-VAR1*(HIGH-LOW),-VOL/2));
买卖差:=买盘+卖盘;
A:=买卖差/2;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
量能趋势:EMA(X,8),LINETHICK2,COLORRED;
IF(MA(量能趋势,3)>量能趋势,量能趋势,DRAWNULL),LINETHICK2,COLORGREEN;
IF(MA(量能趋势,3)<=量能趋势,量能趋势,DRAWNULL),LINETHICK2,COLORRED;
量能涨速:SLOPE(X,24)/X;
J:=".J";
K:=".K";
DIF:="MACD.DIF";
DEA:="MACD.DEA";
金叉:=J<45 AND CROSS(J,K);
MACD金叉:=CROSS(DIF,DEA);
低位:=J<16 AND DEA<-0.45;
金叉:=MACD金叉>0 OR 金叉>0;
买入:(低位>0 OR 金叉>0) AND 量能趋势>REF(量能趋势,4),COLOR6AFFFF;
DRAWICON(FILTER(买入,24),量能趋势,5);
欢迎光临 股民大家庭 (https://gupiao168.com/) | Powered by Discuz! X3.2 |