源码
{股市航灯5}
TJTS:=BARSTATUS=2;
cg:=hhv(h,125);
cgl:=llv(h,125);
j:=(cg-cgl)/8;
IF C>0 AND TJTS
DRAWTEXT(C>0,cg*1.04,'股市航灯
DRAWTEXT(C>0,cg*1.04,STKLABEL+' '+STKNAME+'
DRAWTEXT(C>0,cg*1.04,'
fs:=sma(h,21,2)*1.05;
ls:=sma(l,21,2)*0.95;
bd:=sma(l,5,1);
rd:=sma(c,2,1);
航灯1:=if(cross(rd,bd),fs*1.05,bd);
航灯2:=if(cross(rd,fs),fs*1.1,ls);
前兆:=航灯1;
fillrgn(bd,航灯1,航灯1>bd),colorff9900;
PARTLINE(航灯1,航灯1>bd),POINTDOT,LINETHICK7,colorff9900;
PARTLINE(航灯1,航灯1>bd),POINTDOT,LINETHICK3,colorffffff;
fillrgn(ls,航灯2,航灯2>ls),color0000ff;
PARTLINE(航灯2,航灯2>ls),POINTDOT,LINETHICK7,color0000ff;
PARTLINE(航灯2,航灯2>ls),POINTDOT,LINETHICK3,colorffffff;
热点:=航灯2;
上线:sma(h,21,2)*1.05,color0000ff;
IF rd>上线 and TJTS THEN DRAWTEXT(C>0,cg*1.04,'热点持续区:辨别黑马
中线:bd,colorff00ff;
下线:sma(l,21,2)*0.95,color00ffff;
股市:rd,POINTDOT,LINETHICK7,color00ff00;
PARTLINE(股市,c>0),POINTDOT,LINETHICK3,colorffffff;
life:=(ema(c,60)+ema(c,90))/2;
var1:=(2*c+h+l)/4;
snook:=ema(var1,99)*0.91;
IF c>life AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'操作区域分析:多头区域
IF c<=life AND c>=snook
IF c
vVar1:=DYNAINFO(17)*REF(MA(VOL,5),1);
vVar2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
Var3:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
hhsl:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,vVar1,vVar2);
hsl:=hhsl/capital*100;
IF hsl<1
IF hsl>=1 and hsl<2 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'个股活跃分析:成交低靡
IF hsl>=2 and hsl<3 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'个股活跃分析:成交温和
IF hsl>=3 and hsl<5 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'个股活跃分析:成交活跃
IF hsl>=5 and hsl<8 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'个股活跃分析:成交带量
IF hsl>=8 and hsl<15 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'个股活跃分析:成交放量
IF hsl>=15 and hsl<25 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'个股活跃分析:成交巨量
IF hsl>25 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'个股活跃分析:成交怪异
zslife:=(ema(indexc,60)+ema(indexc,90))/2;
zsbl:=indexc/zslife;
gglife:=(ema(c,60)+ema(c,90))/2;
zstb:=zsbl*gglife;
rsv:=(c-llv(l,15))/(hhv(h,15)-llv(l,15))*100;
kk:=sma(rsv,10,1);
dd:=sma(kk,5,1);
zlcm:=intpart(sma(rsv,10,1));
shcm:=intpart(sma(kk,5,1));
IF (zlcm+shcm)>50 and (zlcm+shcm)<160 AND TJTS THEN DRAWTEXT(C>0,cg-1.1*j,'精确风险系数%:'+NUMTOSTRN( (zlcm+shcm),2 )+'
IF ((zlcm+shcm)<=50 or (zlcm+shcm)>=160) AND
aa13:=ema(winner(c)*70,3);
bb13:=ema((winner(c*1.1)-winner(c*0.9))*80,3);
IF aa13>bb13 AND TJTS THEN DRAWTEXT(C>0,cg-2.1*j,'主力控盘系数%:'+NUMTOSTRN( aa13/(aa13+bb13)*100,2 )+'