通达信PDF分布系统指标公式
2020/5/29 17:54:09
超短:=ABS((V > REF(V,1) AND C <= REF(C,1) * 0.998) OR (V > MA(V,50) AND C <= REF(C,1 )* 1.002 AND C > REF(C,1 ))) - ((REF(V,1)> REF(V,2) AND REF(C,1) <= REF(C,2)*0.998) OR ((REF(V,1) > MA(V,50.1) AND REF(C,1) <= REF(C,2) * 1.002 AND REF(C,1) > REF(C,2))) - ((REF(V,2)> (REF(V,3) AND REF(C,2)<= REF(C,3) * 0.998) OR ((REF(V,2)> MA(V,50.2) AND REF(C,2)<= REF(C,3) * 1.002 AND REF(C,2)> REF(C,3))) - ((REF(V,3) > REF(V,4) AND REF(C,3)<=REF(C,4)*0.998) OR (REF(V,3) >MA(V,50.3) AND REF(C,3)<= REF(C,4) * 1.002 AND REF(C,3) > REF(C,4))) - ((REF(V,4) > REF(V,5) AND REF(C,4) <= REF(C,5)* 0.998) OR (REF(V,4)> MA(V,50.4) AND REF(C,4)<= REF(C,5) * 1.002 AND REF(C,4) > REF(C,5))) - ((REF(V,5) > REF(V,6) AND REF(C,5) <= REF(C,6) * 0.998) OR (REF(V,5) > MA(V,50.5) AND REF(C,5) <= REF(C,6) * 1.002 AND REF(C,5) > REF(C,6))) - ((REF(V,6) > REF(V,7) AND REF(C,6) <= REF(C,7) * 0.998) OR (REF(V,6) > MA(V,50.6) AND REF(C,6) <= REF(C,7 )* 1.002 AND REF(C,6) > REF(C,7))) - ((REF(V,7) > REF(V,8) AND REF(C,7) <= REF(C,8) * 0.998) OR (REF(V,7) > MA(V,50.7) AND REF(C,7) <= REF(C,8) * 1.002 AND REF(C,7) > REF(C,8))) - ((REF(V,8) > REF(V,9))))));
短:=ABS((REF(V,8) > MA(V,50.8) AND REF(C,8) <= REF(C,9) * 1.002 AND REF(C,8) > REF(C,9))) - ((REF(V,9) > REF(V,10) AND REF(C,9) <= REF(C,10) * 0.998) OR (REF(V,9) > MA(V,50.9) AND REF(C,9) <= REF(C,10) * 1.002 AND REF(C,9) > REF(C,10))) - ((REF(V,10) > REF(V,11) AND REF(C,10) <= REF(C,11) * 0.998) OR (REF(V,10) > MA(V,50.10) AND REF(C,10) <= REF(C,11) * 1.002 AND REF(C,10) > REF(C,11))) - ((REF(V,11) > REF(V,12) AND REF(C,11) <= REF(C,12) * 0.998) OR (REF(V,11) > MA(V,50.11) AND REF(C,11) <= REF(C,12) * 1.002 AND REF(C,11) > REF(C,12))) - ((REF(V,12) > REF(V,13) AND REF(C,12) <= REF(C,13) * 0.998) OR (REF(V,12) > MA(V,50.12) AND REF(C,12) <= REF(C,13) * 1.002 AND REF(C,12) > REF(C,13))) - ((REF(V,13) > REF(V,14) AND REF(C,13) <= REF(C,14) * 0.998) OR (REF(V,13) > MA(V,50.13) AND REF(C,13) <= REF( C,14)* 1.002 AND REF(C,13) > REF(C,14))) - ((REF(V,14) > REF(V,15) AND REF(C,14) <= REF(C,15) * 0.998) OR (REF(V,14) > MA(V,50.14) AND REF(C,14) <= REF(C,15) * 1.002 AND REF(C,14) > REF(C,15))) - ((REF(V,15) > REF(V,16) AND REF(C,15) <= REF(C,16) * 0.998) OR (REF(V,15) > MA(V,50.15) AND REF(C,15) <= REF(C,16) * 1.002 AND REF(C,15) > REF(C,16))) - ((REF(V,16 )> REF(V,17) ));
中:=ABS((REF(V,16)> MA(V,50.16) AND REF(C,16) <= REF(C,17) * 1.002 AND REF(C,16) > REF(C,17))) - ((REF(V,17) > REF(V,18) AND REF(C,17) <= REF(C,18) * 0.998) OR (REF(V,17) > MA(V,50.17) AND REF(C,17) <= REF(C,18) * 1.002 AND REF(C,17) > REF(C,18))) - ((REF(V,18) > REF(V,19) AND REF(C,18) <= REF(C,19) * 0.998) OR (REF(V,18) > MA(V,50.18) AND REF(C,18) <= REF(C,19) * 1.002 AND REF(C,18) > REF(C,19))) - ((REF(V,19) > REF(V,20) AND REF(C,19) <= REF(C,20) *0.998) OR (REF(V,19)> MA(V,50.19) AND REF(C,19) <= REF(C,20) * 1.002 AND REF(C,19) > REF(C,20))) - ((REF(V,20) > REF(V,21)));
长:=ABS((REF(V,20) > MA(V,50.20) AND REF(C,20) <= REF(C,21) * 1.002 AND REF(C,20) > REF(C,21))) - ((REF(V,21) > REF(V,22) AND REF(C,21) <= REF(C,22)* 0.998) OR (REF(V,21) > MA(V,50.21) AND REF(C,21) <= REF(C,22) * 1.002 AND REF(C,21)> REF(C,22))) - ((REF(V,22) > REF(V,23) AND REF(C,22) <= REF(C,23) * 0.998) OR (REF(V,22 )> MA(V,50.22) AND REF(C,22) <= REF(C,23) * 1.002 AND REF(C,22) > REF(C,23))) - ((REF(V,23) > REF(V,24) AND REF(C,23)<= REF(C,24) * 0.998) OR (REF(V,23) > MA(V,50.23) AND REF(C,23) <= REF(C,24) * 1.002 AND REF(C,23) > REF(C,24))) - ((REF(V,24) > REF(V,25) AND REF(C,24) <= REF(C,25) * 0.998) OR (MA(V,24) > MA(V,50.24) AND REF(C,24) <= REF(C,25) * 1.002 AND REF(C,24) > REF(C,25)));
均分布:(超短+短+中+长)/4;
-0.5,DOTLINE;
-1,DOTLINE;
-1.5,DOTLINE;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))/100,COLORRED;
A:(均分布+CCI)/2,COLORGREEN;
DRAWICON(均分布<-1.49 AND CCI<-1.49,-1.50,1);
DRAWICON(A<-1.49,-0.50,1);
STICKLINE(A>均分布,0.8,1,1,0),COLORRED;
看股吧 公式 www.kanguba.c om
其它股票公式列表