相关简介:通达信超可靠尾盘选股公式(第二天必高开)源码分享
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
1.短线出击指标用于尾盘收盘前3-5分钟左右信号确定介入或者盘后选股即出信号后第二天回调逢低介入。
2.操作资金仓位不宜满仓,建议在2-3成左右哦,或根据手上资金及自己平常仓位操作习惯进行操作。
3.关于止盈止损,本次测试使用的是10%,也可以根据自己实际操作;测评是设置持股3天止盈,实际操作可以3天内任意时刻有盈利即可止盈。
通达信指标公式源码:
MA4:=MA(C,4);MA6:=MA(C,6);MA8:=MA(C,8);MA11:=MA(C,11);MA16:=MA(C,16);
X4:=(MA4-REF(MA4,1))*1000/REF(MA4,1);
X6:=(MA6-REF(MA6,1))*1000/REF(MA6,1);
ZF:=(H-L)*100/L;
S:=(H-MAX(OPEN,C))*100/MAX(OPEN,C);
X:=(MIN(OPEN,C)-L)*100/L;
ST:=(MAX(OPEN,C)-MIN(OPEN,C))*100/MIN(OPEN,C);
ST1:=REF(ST,1)/ST;
HC:=(H-C)*100/H;
LC:=(C-L)*100/L;
L1C:=(C-REF(L,1))*100/REF(L,1);
OC:=(C-REF(OPEN,1))*100/REF(OPEN,1);
O1H:=(H-REF(OPEN,1))*100/REF(OPEN,1);
KF:=(OPEN-REF(C,1))*100/REF(C,1);
MAV1:=MA(V,12);MAV2:=MA(V,53);
LB:=V/MAV2;
LB1:=V/MAV1;
LB3:=REF(V,2)/REF(V,1);
LB4:=REF(V,1)/V;
HSL:=100*VOL/(FINANCE(7)/100);
LT:=CAPITAL/1000000;
XG:REF(C,1)<REF(OPEN,1)ANDC>OPENANDC<REF(OPEN,1)ANDH>REF(H,1)ANDREF(ST,1)>1.2ANDC>(REF(OPEN,1)-REF(C,1))*0.585+REF(C,1)ANDKF>-1.5ANDKF<1.22ANDOC<-0.3ANDLB3<1.35ANDREF(LB3,1)<1.55ANDREF(LB3,2)<2.5ANDST>0.6ANDST<2.77ANDLB4>0.89ANDREF(LB4,1)>0.625ANDREF(LB4,2)>0.5ANDST1<2.2ANDLT<18ANDO1H<4.5ANDX<3.5ANDX6>-26ANDLC<4.85ANDL1C<5ANDS<3.5;
XG1:REF(C,1)<REF(OPEN,1)ANDC>OPENANDC<REF(OPEN,1)ANDH>REF(H,1)ANDREF(ST,1)>1.2ANDC>(REF(OPEN,1)-REF(C,1))*0.585+REF(C,1)ANDKF>-1.5ANDKF<1.22ANDOC<-0.3ANDLB3<1.35ANDREF(LB3,1)<1.55ANDREF(LB3,2)<2.5ANDST>0.6ANDST<2.77ANDLB4>0.89ANDREF(LB4,1)>0.625ANDREF(LB4,2)>0.5ANDST1<2.5ANDLT<18ANDO1H<4.5ANDX<3.5ANDX6>-20ANDLC<4.85ANDX6>-5.6ANDX4<15;
XG2:REF(C,1)<REF(OPEN,1)ANDC>OPENANDC<REF(OPEN,1)ANDH>REF(H,1)ANDREF(ST,1)>1.2ANDC>(REF(OPEN,1)-REF(C,1))*0.585+REF(C,1)ANDKF>-1.5ANDKF<1.22ANDOC<-0.3ANDLB3<1.35ANDREF(LB3,1)<1.55ANDREF(LB3,2)<2.5ANDST>0.6ANDST<2.77ANDLB4>0.89ANDREF(LB4,1)>0.625ANDREF(LB4,2)>0.5ANDST1<2.5ANDLT<18ANDO1H<4.5ANDX<3.5ANDX6>-20ANDLC<4.85;
DRAWBAND(20,RGB(65,20,28),10,RGB(65,80,68));
DRAWBAND(90,RGB(25,60,28),80,RGB(20,100,50));
DPK30:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1),COLORGRAY;
K30:Sma(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1),NODRAW;
stICKLINE(K30>=50,50,K30,3,0),COLOR000080;
STICKLINE(K30>=50,50,K30,2,0),COLOR0000A6;
STICKLINE(K30>=50,50,K30,1,0),COLOR0000CE;
STICKLINE(K30>=50,50,K30,0,0),COLOR0000FF;
STICKLINE(K30<50,50,K30,3,0),COLOR800000;
STICKLINE(K30<50,50,K30,2,0),COLORB00000;
STICKLINE(K30<50,50,K30,1,0),COLORD50000;
STICKLINE(K30<50,50,K30,0,0),COLORFF0000;
{DRAWBAND(K30,RGB(150,20,20),50,RGB(10,150,20));}
DRAWICON(K30>DPK30ANDK30>50,16,38);
大盘:DPK30,COLORYELLOW;
K250:SMA(((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100),3,1);
DRAWICON(crOSS(90,K30),K30,2);
DRAWICON(CROSS(K30,大盘)ANDK30<50,K30,1);
{
选股公式:
DPK30:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1);
K30:=SMA(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1);
K30>DPK30ANDK30>50;
}
[源码注释]通达信公式动态翻译结果
AA赋值:如果模糊匹配品种代码ORCODELIKE(‘688’),返回1.196,否则返回1.098
BB赋值:收盘价/1日前的收盘价>=AA
CC赋值:统计2日中满足BB的天数=2
统计30日中满足CC的天数>0
评论(0)