通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
量学指标公式源码
V0:=EMA(C,5),COLOR00FF66;
V1:EMA(C,10),COLOR00FF66;
V2:EMA(C,15),LINETHICK2,COLORFFFFFF;
V3:EMA(C,30);
V4:EMA(C,60),COLOR3366FF;
年线:EMA(C,90),COLORBLUE;
M1:=1000*V1/V4<=1015and1000*v1 v4="">=975;
M2:=1000*V2/V4<=1020and1000*v2 v4="">=980;
M3:=1000*V3/V4<=1015and1000*v3 v4="">=985;
M4:=M1ANDM2ANDM3ANDCROSS(V0,V1);
M5:=M1ANDM2ANDM3ANDCROSS(V0,V3);
DRAWTEXT((M4,M5),(LOW*0.93),''),COLOR00FFFF;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(RSI,11),LOW,'低吸'),COLORFFFFFF;
AA1:=EMA(C,2);{短指数平滑移动平均线}
BB1:=EMA(AA1,2);{平滑}
A:=MA(BB1,3);{平均}
AA2:=EMA((H+C+O)/3,18);{长指数平滑移动平均线}
DD3:=A>=AA2ANDC>AA2;{短>长,且收>长}
DD4:=A<AA2;{短<长}
DD5:=A>AA2;{短>长}
DRAWTEXT(CROSS(84,RSI),HIGH,'→逃顶'),COLOR00FF00;
RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
M:=BARSLAST(CROSS(DD,JJ));
警示线:REF(H,M),POINTDOT,COLORYELLOW;{进场;止赢;止损;黄}
STICKLINE(警示线,警示线,警示线,3.8,1),COLORYELLOW;
A1:=BACKSET(REF(H,2)=HHV(H,5),3);
A2:=BACKSET(REF(L,2)=LLV(L,5),3);
A3:=CROSS(A1,0.9);
A4:=CROSS(A2,0.9);
上沿:REF(H,BARSLAST(A3)),POINTDOT,COLORFF8918;
STICKLINE(C,REF(H,BARSLAST(A3)),REF(H,BARSLAST(A3)),5,1),COLO
RFF8918;
下沿:REF(L,BARSLAST(A4)),POINTDOT;
STICKLINE(C,REF(L,BARSLAST(A4)),REF(L,BARSLAST(A4)),5,1)。
A:=VOL/REF(VOL,1)1.9AND
C/REF(C,1)1.03;B:=VOL/REF(VOL,1)0.6AND
REF(C,1)REF(C,2)ANDC/REF(C,1)0.99AND
C/REF(C,1)1.01;ZF:=(C-REF(C,1))/REF(C,1)*100;NOS
T:=EXIST(ZF5.2,100)OR
EXIST(ZF-5.2,100);K10:=SLOPE(CLOSE,10)0.02;
XG:COUNT(A,5)ANDCOUNT(B,5)ANDNOSTANDK10;
当日倍量选股公式
A1:=(VOL);A2:=REF(A1,1);A1=1.75*A2;
操作步骤点版面最上面的功能—专家系统—公式管理器—
条件选股公式—走势特征选股—C110单日放量(系统)—
新建—公式名称(自己编写,如:中午选、缩倍)—其他都
不管,把公式复制,粘贴到空白处,确定—关闭。公式说明
1.75倍公式在收盘后使用,找出当天倍量的股票。中午收盘
选股,把1.75改成0.75,如果想选缩倍柱,那么公式改成
A1=0.5*A2;
中午倍量A1:=(VOL);
代表今天成交量
A2:=REF(A1,I);
代表昨天成交量
A1=0.95*A2;用于中午选股,当日缩倍量
A1:=(VOL);
A2:=REF(A1,1);
A1=0.75*A2;
中午缩倍量A1:=(VOL);A2:=REF(A1,1);A1=0.3*A2;当日
平量和缩量
A1:=(VOL);A2:=REF(A1,1.25);A1=A2;
价升量缩EVERY(CREF(C,1),3)AND
EVERY(C/REF(C,1)1.03,3)AND
REF(V,2)=1*REF(V,1)ANDREF(V,1)=1*VAND
DYNAINFO(4)0;
百日地量
AA:=VOLREF(LLV(VOL,100),1);XG:AA;近十日有涨停
ZT:=(CLOSE/REF(CLOSE,1)-1)*1009.7;ZT10:COUNT
(ZT,10)=1;
黄金柱XG:COUNT(CREF(C,1)AND
V=REF(V,1),3)=3;黄金柱AA:=VOLREF(V,1)*1.9;
AA1:=VOLREF(LLV(VOL,13),1);
AA2:=VOLREF(LLV(VOL,55),1);
TJ1:=COUNT(VREF(V,1)*1.9,4)=1;
TJ2:=COUNT(VREF(V,1)ANDLMIN(L,4)AND
LREF(L,1),3)=3;TJ3:=TJ1ANDTJ2;TJ3=1;
量学主图指标源码
{灯塔太极}
TAIJI_A:=YEAR=2014ANDMONTH=11ANDDAY=24;
TAIJI_B:=YEAR=2014ANDMONTH=11ANDDAY=27;
TAIJI_C:=YEAR=2014ANDMONTH=7ANDDAY=22;
TAIJI_D:=YEAR=2014ANDMONTH=8ANDDAY=29;
DATA1:=YEAR=2014ANDMONTH=8ANDDAY=19;
DATA2:=YEAR=2014ANDMONTH=8ANDDAY=22;
DATA3:=YEAR=2014ANDMONTH=8ANDDAY=21;
DATA4:=YEAR=2014ANDMONTH=8ANDDAY=20;
O线:=DRAWLINE(DATA1,C,DATA4,REF(C,1),1),COLORMAGENTA,LINETHICK1;
A线:=DRAWLINE(DATA1,C,DATA4,H,1),COLORMAGENTA,LINETHICK1;
B线:=DRAWLINE(DATA1,C,DATA3,L,1),COLORMAGENTA,LINETHICK1;
C线:=DRAWLINE(DATA1,C,DATA2,L,1),COLORMAGENTA,LINETHICK1;
太极当值1:=DRAWLINE(TAIJI_A,C,TAIJI_B,L,3),COLORRED,LINETHICK2;
太极当值2:=DRAWLINE(TAIJI_C,O,TAIJI_D,O,3),COLORRED,LINETHICK2;
明日太极当值1:=太极当值1+(太极当值1-REF(太极当值
1,1)),NODRAW,COLORWHITE;
明日太极当值2:=太极当值2+(太极当值2-REF(太极当值
2,1)),NODRAW,COLORWHITE;
所属板块:=STRCAT('所属板块:',STRCAT(STRCAT(STRCAT('【行业】:
',HYBLOCK),STRCAT('【地域】:',DYBLOCK)),STRCAT('【概念】:',GNBLOCK)));
DRAWTEXT_FIX(O>0,0.005,0.00,0,所属板块);
均价:AMOUNT/VOL/100,NODRAW,COLOR00FF00;
涨停:=(C+0.005-REF(C,1))/REF(C,1)*100>=10;
STICKLINE(涨停=1,O,C,3,0),COLORMAGENTA;
向上跳空:=MIN(C,O)>REF(MAX(C,O),1);
明日涨停参考:C*1.1,NODRAW,COLORYELLOW;
STICKLINE(向上跳空=1,O,C,0.4,0),COLORYELLOW;
虚三一:MAX(H,L)-(H-L)/3,NODRAW,COLORFFFFFF;
虚二一:(L+H)/2,NODRAW,COLORFFFFFF;
虚三二:MIN(H,L)+(H-L)/3,NODRAW,COLORFFFFFF;
三一:MAX(O,C)-ABS(O-C)/3,NODRAW,COLOR00FFFF;
二一:(O+C)/2,NODRAW,COLOR00FFFF;
三二:MIN(O,C)+ABS(O-C)/3,NODRAW,COLOR00FFFF;
AA11:=MAX(O,C)<(REFXV(C,1)+REFXV(C,2)+REFXV(C,3))/3;
高于实顶:IF(AA11,1,0),COLORFFFFFF,NODRAW;
收阴:=O>CAND(O-C)/O>0.04;
收阳:=O0.04;
实体大于4%:=IF(O>C,收阴,收阳);
STICKLINE(实体大于4%,二一,二一,2,0),COLORGRAY;
M1:=5;
M2:=10;
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}
SHCM:=EMA((WINNER(CLOSE*-WINNER(CLOSE*)*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,,0),COLOR000099;
STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000A
A;
STICKLINE(TGLXS>0,100,100+TGLXS,,0),COLOR0000BB;
{STICKLINE(TGLXS>0,100,100+TGLXS,,0),COLOR0000CC
;}
STICKLINE(TGLXS>0,100,100+TGLXS,,0),COLOR0000DD;
{STICKLINE(TGLXS>0,100,100+TGLXS,,0),COLOR0000EE
;}
STICKLINE(TGLXS>0,100,100+TGLXS,,0),COLOR0000FF;{
//红柱}
STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR008800;
{STICKLINE(TGLXS<0,100,100+TGLXS,,0),COLOR009900;
}
STICKLINE(TGLXS<0,100,100+TGLXS,,0),COLOR00AA00;
STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00BB00
;
{STICKLINE(TGLXS<0,100,100+TGLXS,,0),COLOR00CC00
;}
STICKLINE(TGLXS=0,100,100+TGLXS,8,0),COLORRED;
STICKLINE(TGLXS=0ANDREF(TGLXS,1)REF(ZCMZL,1)
ANDDKB=0);
T3:=CONST(ZCMZL=REF(ZCMZL,1));
T4:=CONST(ZCMZL50ANDTFXXS=REF(TFXXS,1)AND
TFXXS>100);
T10:=CONST(TFXXS>50ANDTFXXS100);
T11:=CONST(TFXXS>50ANDTFXXSREF(ZCMZL,1));
T15:=CONST(CROSS(ZCMZL,ZZLKP)ANDZZLKP>ZZLJJ
ANDZZLKP10ANDZZLJJ>REF(ZZLJJ,1)AND
ZCMZL>REF(ZCMZL,1));
T16:=CONST(CROSS(ZCMZL,ZSHTL)AND
ZSHTL>ZZLKPANDZCMZL>REF(ZCMZL,1));
T17:=CONST(CROSS(ZCMZL,100)AND
ZCMZL>REF(ZCMZL,1));
T18:=CONST(REF(ZSHTL,1)>90ANDZSHTL<90);
TS1:=IF(T1=1,0+,0);
TS2:=IF(T2=1,TS1+,TS1);
TS3:=IF(T3=1,TS2+,TS2);
TS4:=IF(T4=1,TS3+,TS3);
TS5:=IF(T5=1,TS4+,TS4);
TS6:=IF(T6=1,0+,0);
TS7:=IF(T7=1,TS6+,TS6);
TS8:=IF(T8=1,TS7+,TS7);
TS9:=IF(T9=1,TS8+,TS8);
TS10:=IF(T10=1,TS9+,TS9);
TS11:=IF(T11=1,TS10+,TS10);
TS12:=IF(T12,0+,0);
TS13:=IF(T13=1,TS12+,TS12);
TS14:=IF(T14=1,TS13+,TS13);
TS15:=IF(T15=1,TS14+,TS14);
TS16:=IF(T16=1,TS15+,TS15);
TS17:=IF(T17=1,TS16+,TS16);
TS18:=IF(T8=1,TS17+,TS17);
DRAWTEXT_FIX(T1,,TS1,0,'★监控:主力增仓
'),COLOR8080FF;
DRAWTEXT_FIX(T2,,TS2,0,'★监控:主力减仓
'),COLORFFFF00;
DRAWTEXT_FIX(T3,,TS3,0,'★监控:多空平衡
'),COLORGRAY;
DRAWTEXT_FIX(T4,,TS4,0,'★监控:主力回补
'),COLORFF9933;
DRAWTEXT_FIX(T5,,TS5,0,'★监控:主力出逃
'),COLORFFFF00;
DRAWTEXT_FIX(T6,,TS6,0,'★操作:买入风险
'),COLORYELLOW;
DRAWTEXT_FIX(T7,,TS7,0,'★操作:卖出风险
'),COLORFFFF00;
DRAWTEXT_FIX(T8,,TS8,0,'★操作:追涨博弈
'),COLOR8080FF;
DRAWTEXT_FIX(T9,,TS9,0,'★操作:稳健持股
'),COLOR8080FF;
DRAWTEXT_FIX(T10,,TS10,0,'★操作:盘跌减仓
'),COLORFFFF00;
DRAWTEXT_FIX(T11,,TS11,0,'★操作:杀跌空仓
'),COLORFFFF00;
DRAWTEXT_FIX(T12,,TS12,0,'☆特别提示:筑底散兵坑
'),COLOR66FFCC;
DRAWTEXT_FIX(T13,,TS13,0,'☆特别提示:铸顶风险区
'),COLORFFFF00;
DRAWTEXT_FIX(T14,,TS14,0,'☆特别提示:穿越主力
'),COLOR8080FF;
DRAWTEXT_FIX(T15,,TS15,0,'☆特别提示:穿越主力
'),COLORYELLOW;
DRAWTEXT_FIX(T16,,TS16,0,'☆特别提示:穿越散户
'),COLORGREEN;
DRAWTEXT_FIX(T17,,TS17,0,'☆特别提示:全盘穿越
'),COLOR3399FF;
DRAWTEXT_FIX(T18,,TS18,0,'☆特别提示:神秘黑洞
'),COLOR9966FF;
{AAA:=REFDATE(HHV(H,30),DATE);
T1A:=CONST(IF(ZZNTS,1,0));
TS1A:=IF(T1A=1,0+,0);}
{DRAWTEXT(T1A=1ANDCURRBARSCOUNT=45AND
PERIOD=5,AAA-(AAA*TS1A),'【走牛天数判断】
'),COLORRED,LINETHICK6;}
{DRAWNUMBER(T1A=1ANDCURRBARSCOUNT=45-12
AND
PERIOD=5,AAA-(AAA*TS1A),CONST(ZZNTS)),COLORRE
D,LINETHICK6;};
三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);
三日最
高:=EMA((REF(H,4)+REF(H,3)+REF(H,2))/3,3),COLORWHI
TE;
高:=CROSS(CROSS(三日最高,C),,STICK,COLORWHITE;
DRAWICON(高>0,高,2);
F:=100*(C-REF(C,1))/REF(C,1);
博尔:=IF(C0,P1=0,1);
量:V,VOLSTICK;
PJJ:=DMA((((HIGH+LOW)+(CLOSE*2))/4),;
JJ:=REF(EMA(PJJ,3),1);
QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-
LOW)),IF((CLOSEOPEN)
,(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE
10),10,ZLL);
HSL:=((XVL/20)/;
进攻流量:=(((HSL*+(REF(HSL,1)*)+(REF(HSL,2)*);
GJJ:=EMA(进攻流量,8);LLJX:=EMA(进攻流量,3);
动态天
量:=CONST(IF(V=HHV(V,20),V,REF(V,BARSLAST(V=HHV
(V,20))))),COLOR00FF00,POINTDOT;
STICKLINE(((HSL*>=0),动态天量+((HSL*+LLJX)*20,
动态天量,3,0),COLORYELLOW;
STICKLINE(((HSL*
0,(HSL*+LLJX),DRAWNULL),COLORRED;
资金流出:=IF((HSL*+LLJX)0,资金流入,资金流
出),COLORWHITE,POINTDOT;
收支比例%:IF((HSL*+LLJX)>0,资金流入/万元*100,资金流
出/万元*100),COLORYELLOW;
连红天1:=BARSLASTCOUNT(资金净收
支>0),,COLORA20FFD,NODRAW;
连红天2:=IF(连红天1=0,REF(连红天1,1),连红天
1),,COLORA20FFD,NODRAW;
连红天3:=IF(连红天2=0,REF(连红天1,2),连红天
2),,COLORA20FFD,NODRAW;
连红天4:=IF(连红天3=0,REF(连红天1,3),连红天
3),,COLORA20FFD,NODRAW;
近期连红天:IF(连红天4=0,REF(连红天1,4),连红天
4),COLORYELLOW,NODRAW;
三日资金:SUM(资金收支,3),COLORWHITE,NODRAW;
五日资金:SUM(资金收支,5),COLORFF00FF,NODRAW;
十日资金:SUM(资金收支,10),COLOR0000FF,NODRAW;
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
STICKLINE((资金流量>0),动态天量+资金流量*20,动态天
量,3,0),COLOR0000FF;
STICKLINE((资金流量<0),动态天量+资金流量*20,动态天
量,3,0),COLOR008000;
万手:VOL/10000,LINETHICK0;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,
IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<,TOTAL,MTIME);
VVOL:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRA
WNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1,VVOL,0,-1,-1),COLOR0
0C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1),COLOR80FFFF,LINETHICK1;
MAVOL2:MA(VOLUME,M2),COLORFF00FF,LINETHICK1;
{变色彩带}VAR1:=(2*CLOSE+HIGH+LOW)/4;
操盘线:
(EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,5)+EMA(VAR1,
8)+EMA(VAR1,11)+EMA(VAR1,13))/,COLORFFFF00,LINET
HICK1,CIRCLEDOT;
IF(操盘线>REF(操盘线,1),操盘
线,DRAWNULL),COLOR0000FF,LINETHICK1,CIRCLEDOT;
评论(0)