通达信经典博弈指标公式
2019/12/28 18:37:27
{参数设置: N(1,500,3); M(1,500,18) };
{参数其他: (TDX版)坐标线位置 自动;(TDX版)额外Y轴分界 值1=0};
{用法: N--调节空方出没及量度; M--调节曲线平滑;适用于宽屏幕};
成交量:VOL,VOLSTICK;
CC:=(OPEN+HIGH+LOW)/3;
CM:=CLOSE-EMA(CC,N);
KS:=BARSCOUNT(CLOSE)>0;
KF:=EMA(EMA(KS*(CLOSE<=CC)*(CM<=0)*(0.1+成交量),M),4);
DF:=EMA(EMA(KS*(CLOSE>=CC)*(CM>=0)*(0.1+成交量),M),4);
TT:=HIGH=REF(HIGH,1)AND LOW=REF(LOW,1)AND CLOSE=REF(CLOSE,1);
TJ:=BARSLASTCOUNT(TT);
DT:=0.001*(HIGH=LOW)*SIGN(CLOSE-REF(CLOSE,TJ+1));
ZZ:=(CLOSE+HIGH+LOW)/3;
CT:=IF(MAX(C,O)<ZZ,1,IF(MIN(C,O)>ZZ,-1,0));
ZL:=ABS(HIGH-LOW)+ABS(CM/EMA(CC,N))*ABS(CLOSE-OPEN)/2+3*IF(HIGH=LOW,0.001,0);
DX%:(IF(CT=0,ABS(CM/EMA(CC,N))*(ZZ-(CLOSE+OPEN)/2),
CT*ABS(CM/EMA(CC,N))*ABS(CLOSE-OPEN)/2)+2*ZZ-HIGH-LOW+DT)/ZL*100,NODRAW;
DV:DX%*(0.1+成交量)/100,NODRAW;
买:(1+DX%/100)*成交量/2,NODRAW,COLORRED;
卖:(1-DX%/100)*成交量/2,NODRAW,COLORCYAN;
STICKLINE(DV>0,0,ABS(DV),0.8,1),COLORYELLOW;
STICKLINE(DV<0,0,ABS(DV),0.8,1),COLORDE5533;
空方:KF*1.0,COLORDEEDDE,LINETHICK2;
多方:DF*1.0,COLOR33FFFF,LINETHICK2;
表观趋势:(多方-空方),COLOR33FF33,LINETHICK2;
资金流势:EMA(EMA(KS*DV*8,M),4),COLORFF33FF,LINETHICK2;
看 股吧公式 www. kanguba.com
其它股票公式列表