最牛通达信量化副图指标公式源码精编版
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
最牛通达信量化副图指标公式源码
M1:=5;
M2:=10;
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算} SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9 ))*80,3);{//小筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率} ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量} ZZNTS:=BARSLAST(ZSHTL90);{//走牛天数}
ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0 );
{//------【数值显示】}
散户套牢系数:INTPART(ZSHTL),NODRAW;
主力控盘系数:INTPART(ZZLKP),COLOR4080FF,NODRAW; 资金流入强度:ZJLRQD,NODRAW,COLOR00FFFF;
{☆精确风险}
{【参数定义】}
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,1 5))*100;
K1:=SMA(RSV,10,1);
D1:=SMA(K1,5,1);
KK:=INTPART(K1);
DD0:=INTPART(D1);
TFXXS:=KK+DD0;{//变异KD风险系数}
TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}
TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//变异KD乖离系数} TYCFX:=TFXXS+TGLXS;{//变异KD预测风险}
乖离系数:TGLXS,LINETHICK0,COLORGREEN,NODRAW; {【图解模板】}
{级别拐点}
{乖离系数}
STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR000088; STICKLINE(TGLXS>0,100,100+TGLXS,2.5,0),COLOR00009 9;
STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000A A;
STICKLINE(TGLXS>0,100,100+TGLXS,1.5,0),COLOR0000
BB;
{STICKLINE(TGLXS>0,100,100+TGLXS,1.2,0),COLOR0000 CC;}
STICKLINE(TGLXS>0,100,100+TGLXS,1.0,0),COLOR0000 DD;
{STICKLINE(TGLXS>0,100,100+TGLXS,0.8,0),COLOR0000 EE;}
STICKLINE(TGLXS>0,100,100+TGLXS,0.5,0),COLOR0000F F;{//红柱}
STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR008800; {STICKLINE(TGLXS<0,100,100+TGLXS,2.8,0),COLOR0099 00;}
STICKLINE(TGLXS<0,100,100+TGLXS,2.5,0),COLOR00AA 00;
STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00BB00 ;
{STICKLINE(TGLXS<0,100,100+TGLXS,1.8,0),COLOR00C C00;}
STICKLINE(TGLXS=0,100,100+TGLXS,8,0),COLORRED; STICKLINE(TGLXS=0 AND REF(TGLXS,1)REF(ZCMZL,1) AND DKB=0);
T3:=CONST( ZCMZL=REF(ZCMZL,1));
T4:=CONST( ZCMZL50 AND TFXXS=REF(TFXXS,1) AND TFXXS>100);
T10:=CONST(TFXXS>50 AND TFXXS100 );
T11:=CONST(TFXXS>50 AND TFXXSREF(ZCMZL,1) );
T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );
T16:=CONST( CROSS(ZCMZL,ZSHTL) AND
ZSHTL>ZZLKP AND ZCMZL>REF(ZCMZL,1));
T17:=CONST( CROSS(ZCMZL,100) AND
ZCMZL>REF(ZCMZL,1));
T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );
TS1:=IF(T1=1,0+0.03,0);
TS2:=IF(T2=1,TS1+0.03,TS1);
TS3:=IF(T3=1,TS2+0.03,TS2);
TS4:=IF(T4=1,TS3+0.03,TS3);
TS5:=IF(T5=1,TS4+0.03,TS4);
TS6:=IF(T6=1,0+0.73,0);
TS7:=IF(T7=1,TS6+0.03,TS6);
TS8:=IF(T8=1,TS7+0.03,TS7);
TS9:=IF(T9=1,TS8+0.03,TS8);
TS10:=IF(T10=1,TS9+0.03,TS9);