通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信资金量能指标公式
TYP:=(H+L)/2+C;
量值:(V-REF(V,10))/REF(TYP,10)*100,Color00FF00,linethick1;
幅值:MA(量值,6),colorwhite,linethick1;
趋势值:MA(量值,10),Color0000FF,linethick1;
FILLRGN(量值,幅值,量值>幅值,RGB(0,255,0),量值<幅值,colorblack);
STICKLINE(V>0,0,0,3,0),coloryellow;
N:=14; n1:=21;
TYP:=(HIGH+LOW+CLOSE)/3;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),N);
资金流量MFI:100-(100/(1+V1)),COLORCYAN;
MFI1:EMA(资金流量MFI,10),COLORGREEN,LINETHICK2;
HSL:=VOL/CAPITAL*100;
CYF:100-100/(1+EMA(HSL,N1)),COLORMAGENTA;
CYF1:EMA(CYF,10),COLORRED,LINETHICK2;
热门:50,COLORYELLOW;活跃:40,COLORWHITE;
N:=5;
K1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1/(K1+K2);
KT:=VOL-DT;
MJ:=SUM(DT*C,N);
MEJ:=SUM(KT*C,N);
资金比:(MJ-MEJ)/(MJ+MEJ),LINETHICK2,COLORMAGENTA;
V5:EMA(EMA(AMOUNT,5)/(EMA(C,5)*100000),5),COLORWHITE;
V8:EMA(EMA(AMOUNT,8)/(EMA(C,8)*100000),8),COLORMAGENTA;
V13:EMA(EMA(AMOUNT,13)/(EMA(C,13)*100000),13),COLOR00CCCC;
V21:EMA(EMA(AMOUNT,21)/(EMA(C,21)*100000),21),COLORRED;
V34:EMA(EMA(AMOUNT,34)/(EMA(C,34)*100000),34),COLORCYAN;
V55:EMA(EMA(AMOUNT,55)/(EMA(C,55)*100000),55),COLOR00bb00;
QH:PEAK(V5,34,1),CROSSDOT,COLORFF0080;
QL:TROUGH(V5,72,1),CROSSDOT,COLORGRAY;
aa:=VOL;
hh:=(ref(VOL,1)+ref(VOL,2)+ref(VOL,3)+ref(VOL,4)+ref(VOL,5))/5;
bb:aa/hh>=3;
V<=HHV(V,20)*0.2,colorred;
Xh:H=HHV(H,918)ANDV=HHV(V,918),colorgreen;
Xl:l=llV(l,918)ANDV=llV(V,918),coloryellow;
实量:VOL,VOLSTICK;
V1:=V/CAPITAL*100;
MAV5:=EMA(V/CAPITAL*100,5);
MAV10:=EMA(V/CAPITAL*100,10);
量能:((V1-MAV5)/MAV5*2+(V1-MAV10)/MAV10)*10;
N天内:=30;
成交量:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,VOL),COLORFFFFFF;
价新高:=HHV(H,N天内)=H,COLORFFFFFF;
量新高:=HHV(成交量,N天内)=成交量,COLORFFFFFF;
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
去除停牌:=DYNAINFO(4)>0;
{K线60日上要求ANDANDAND}
选股:量新高AND价新高ANDBARSCOUNT(CLOSE)>200ANDS2ANDS3AND去除停牌,COLORFF00FF;
[源码注释]通达信公式动态翻译结果
涨幅赋值:50
N赋值:20
M赋值:10
最近M日存在收盘价/10日前的收盘价>=1+涨幅/100 ANDBARSLASTCOUNT(最近5日存在收盘价/N日内收盘价的最高值<=0.8 AND 收阳线)=3
每日通达信公式解答:
公式编写要求:
选股公式:条件1:15天内上涨超过50%(50%这个涨幅希望可以设置为参数);条件2:满足条件1后,N天内从最高点到最低点回调超过20%(N是否一定要确定,如果是,N小于20);条件3:条件1和2后,最近三天连续收阳;条件4:剔除新股上市一字板所产生的10天内涨幅。
公式编写方法:
涨幅:=50;N:=20;M:=10;
EXIST(C/REF(C,10)>=1+涨幅/100,M) AND
BARSLASTCOUNT(EXIST(C/HHV(C,N)<=0.8,5) AND C>O)=3;
评论(0)