qc威廉快慢指标低吸粘合金叉公式
qc威廉快慢指标低吸粘合金叉公式
line1:80;
line2:20;
line3:50;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
吸筹:=VAR5>REF(VAR5,1) ;
BN:=13;
乖离率:=(CLOSE-MA(CLOSE,BN))/MA(CLOSE,BN)*100;
BIAS0:=ABS(乖离率)<8;
N:=21;
N1:=42;
WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));
WR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));
低吸粘合:=WR1>80 AND INTPART(WR1)=INTPART(WR2);
低位金叉:=WR1>80 AND CROSS(WR2,WR1);
BUY0:=CROSS(80,WR1) AND CROSS(80,WR2);
BUY1:=BARSLAST(低吸粘合 OR 低位金叉)<10 AND CROSS(80,WR1);
BUY2:=COUNT(吸筹,15)>=2;
BUY10:=BUY2 AND BIAS0 AND (BUY0 OR BUY1);
DRAWICON(BUY10,WR1,'BUY');
高抛粘合:=WR1<20 AND INTPART(WR1)=INTPART(WR2),NODRAW;
MA5:=MA(C,5);//{擒牛指标公式网}
MA13:=MA(C,13);
SELL0:=BARSLAST(高抛粘合)<10,NODRAW;
DRAWICON(SELL0 AND WR1>20 AND WR2>20 AND CROSS(MA13,C),WR1,'SELL');