飛狐股票公式之資進(jìn)場(chǎng)強(qiáng)勢(shì)主升浪預(yù)警指標(biāo)
飛狐、通達(dá)信、大智慧都可以使用的有大資進(jìn)場(chǎng)強(qiáng)勢(shì)主升浪預(yù)警指標(biāo)源碼
jj:=(HIGH+LOW+CLOSE)/3;
qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=qj0*(MIN(OPEN,CLOSE)-LOW);
qj2:=qj0*(jj-MIN(CLOSE,OPEN));
qj3:=qj0*(HIGH-MAX(OPEN,CLOSE));
qj4:=qj0*(MAX(CLOSE,OPEN)-jj);
DDX:=IF(HIGH=LOW,4*qJ0,((qj1+qj2)-(qj3+qj4)))/sum(vol,10)*100;
DDY:=((qj2+qj4)-(qj1+qj3))/sum(vol,10)*100;
DDZ:=((qj1+qj2)-(qj3+qj4))/((qj1+qj2)+(qj3+qj4))*100*17;
強(qiáng)勢(shì)YJ:=DDX>1 and DDZ>90 and DDY>2 and vol/CAPITAL*100>3;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,60);
五日走強(qiáng):=MA1>REF(MA1,1);
十日走強(qiáng):=MA2>REF(MA2,1);
二十日走強(qiáng):=MA3>REF(MA3,1);
主升浪:=五日走強(qiáng) AND 十日走強(qiáng) AND 二十日走強(qiáng);
VAR31:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主買:=IF(CLOSE>OPEN,VAR31*(HIGH-LOW),IF(CLOSE<OPEN,VAR31*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
大資進(jìn)強(qiáng)YJ主升浪:強(qiáng)勢(shì)YJ>0 AND 主升浪>0 AND 主買>2700;