相关简介:通达信布林线选股指标(三种买入绝招)公式源码分享
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
1.股价K线在布林线里面,懂得布林用法的兄弟们知道,K线在布林线里面一直顺着上布林慢慢往上爬是一个最稳健的走势。
2.股价又是突破前高而且没有突破上轨,那么说明这只股后市还是很值得期待,属于中线持股思维。
3.当布林线喇叭缩口,可是股价又是突破前高,那么说明后面很有可能一波大涨。
4.如果布林一直是窗口调整,股价没跌的话一直在前高附近徘徊,那么也是可以考虑持股一段时间看看是否有突破。如果没有突破可以考虑撤退。
通达信指标公式源码:
MV2:=EMA(V,2);
MA5:=EMA(C,5);
MV2量度:=ATAN((MV2/REF(MV2,1)-1)*100)*180/3.1416;
MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
QSXS:=MA5角度>REF(MA5角度,1)ANDMV2量度>80;
买入1:IF(CROSS(MA5角度,-30)ANDQSXS,1,0);
买入2:IF(CROSS(MA5角度,0)ANDQSXS,1,0);
买入3:IF(CROSS(MA5角度,30)ANDQSXS,1,0);
ma线:=EMA(CLOSE,3.1415926535*EMA(C,18));
VAR2:=REF(LOW,1);
VAR3:=SMA(Abs(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:=0-VAR9;
VAR10:=IF(VAR9>-120,VAR9,0);
VAR11:=VAR10<REF(VAR10,1);
XG1:=crOSS(C,MA线);
金柱初现:XG1,COLORYELLOW,NODRAW;
安全出击:COUNT(MA线>REF(MA线,1),3)=3ANDVAR11ANDREF(VAR11,1)<1ANDMA(C,5)>MA(C,20)ANDMA(C,10)>MA(C,20)ANDCROSS(C,MA(C,20))ANDMA(C,20)>REF(MA(C,20),1),COLORRED,NODRAW;
stICKLINE(XG1,0,3.82,0,0),COLOR0088EE;
STICKLINE(XG1,0,3.82,3,0),COLOR0055AA;
STICKLINE(XG1,0,3.82,2.8,0),COLOR0066BB;
STICKLINE(XG1,0,3.82,2.5,0),COLOR0077CC;
STICKLINE(XG1,0,3.82,2.2,0),COLOR0088DD;
STICKLINE(XG1,0,3.82,1.7,0),COLOR0099EE;
STICKLINE(XG1,0,3.82,1.2,0),COLOR00AAFF;
STICKLINE(XG1,0,3.82,0.7,0),COLOR00CCFF;
STICKLINE(XG1,0,3.82,0.2,0),COLOR00FFFF;
STICKLINE(安全出击,0,3.82,0,0),COLOR0000AA;
STICKLINE(安全出击,0,3.82,3,0),COLOR000055;
STICKLINE(安全出击,0,3.82,2.8,0),COLOR000066;
STICKLINE(安全出击,0,3.82,2.5,0),COLOR000077;
STICKLINE(安全出击,0,3.82,2.2,0),COLOR000088;
STICKLINE(安全出击,0,3.82,1.7,0),COLOR000099;
STICKLINE(安全出击,0,3.82,1.2,0),COLOR0000AA;
STICKLINE(安全出击,0,3.82,0.7,0),COLOR0000CC;
STICKLINE(安全出击,0,3.82,0.2,0),COLOR0000FF;
{
选股公式:
MA线:=EMA(CLOSE,3.1415926535*EMA(C,18));
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:=0-VAR9;
VAR10:=IF(VAR9>-120,VAR9,0);
VAR11:=VAR10<REF(VAR10,1);
COUNT(MA线>REF(MA线,1),3)=3ANDVAR11ANDREF(VAR11,1)<1ANDMA(C,5)>MA(C,20)ANDMA(C,10)>MA(C,20)ANDCROSS(C,MA(C,20))ANDMA(C,20)>REF(MA(C,20),1);
}
MID2:=MA(CLOSE,21),COLORWHITE;
UPPER2:=MID2+1.96*STD(CLOSE,21),COLORYELLOW;
LOWER2:=MID2-1.96*STD(CLOSE,21),COLORYELLOW;
UP2:=MID2+2.56*STD(CLOSE,21),COLORFF00FF;
LOOW2:=MID2-2.56*STD(CLOSE,21),COLORFF00FF;
{上升趋势}
STICKLINE(C>=MID2,MID2,UP2,2,0),COLOR330066;
{下降趋势}
STICKLINE(C<MID2,MID2,LOOW2,2,0),COLOR545454;
MID:MID2,COLORWHITE;
UPPER:UPPER2,COLORYELLOW;
UP:UP2,COLORFF00FF;
LOWER:LOWER2,COLORYELLOW;
LOOW:LOOW2,COLORFF00FF;
开口:=UP-LOOW;
相离:=C-MID;
DRAWTEXT(C>=MIDANDREF(开口,1)=HHV(开口,20),UPPER,’减仓’),COLOR00FF00;
DRAWTEXT(C>=MIDANDREF(相离,1)=LLV(相离,5),MID,’加仓’);
股价多头:=C>MA(C,5)ANDMA(C,5)>MA(C,10)ANDMA(C,10)>MA(C,20);
DRAWTEXT(FILTER(股价多头,20),LOOW*0.95,’开始建仓’),COLORRED;
DRAWICON(FILTER(股价多头,20),LOWER,1),COLORRED;
DRAWTEXT(CROSS(MID,C),UP,’空仓观望’),COLORYELLOW;
DRAWICON(CROSS(MID,C),UPPER,2),COLORYELLOW;
[源码注释]通达信公式动态翻译结果
AA赋值:上次成交量(手)=30日内成交量(手)的最高值距今天数
输出XG:收盘价上穿AA日前的最高价
评论(0)