以下是通达信分时B指标,预警公式源码和使用说明
使用说明
1、假设B指标的取值范围为0到100,其中0表示极弱势,100表示极强势。
2、定义买入预警和卖出预警的阈值。例如,买入预警阈值可以设置为30,卖出预警阈值可以设置为70。
3、当B指标低于买入预警阈值时,可以视为买入信号,投资者可以考虑买入股票。
4、当B指标高于卖出预警阈值时,可以视为卖出信号,投资者可以考虑卖出股票。
通达信分时B指标,预警公式源码:
MA25:EMA(CLOSE,25);
FJ:EMA(CLOSE,905);
STICKLINE((MA25>FJ),MA25,FJ,1,0),COLOR0000FF;
STICKLINE((MA25>FJ)ANDMA25<REF(MA25,1),MA25,FJ,1,0),COLORYELLOW;
STICKLINE((MA25>FJ)ANDFJ<REF(FJ,1),MA25,FJ,1,0),COLORCYAN;
STICKLINE((MA25<FJ),MA25,FJ,1,0),COLOR00FF00;
STICKLINE((MA25<FJ)ANDMA25>REF(MA25,1),MA25,FJ,1,0),COLORCYAN;
STICKLINE((MA25<FJ)ANDFJ>REF(FJ,1),MA25,FJ,1,0),COLORLIRED;
DRAWICON(CROSS(MA25,FJ),FJ,23);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
ZL:L1+P1*7/8,COLOR00DD00;
ZC:L1+P1*0.5/8,COLOR00DD00;
XJ:CLOSE,COLORWHITE,LINETHICK2;
STICKLINE(CROSS(ZC,XJ),ZC,ZL,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(ZC,XJ,2),ZC*1.001,'★B'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(XJ,ZL,2),XJ,'★'),COLORRED;{抛};
MA30:=EMA(CLOSE,30);
{强弱:EMA(CLOSE,900);
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★卖'),COLORRED;{抛};
日时转换:=IF(PERIOD=5,120,240);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(VAR1>REF(VAR1,1),5)ANDEVERY(VAR4>REF(VAR4,1),5);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW;
强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60))ANDVAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5)ANDVAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5ANDVAR6,1,0),NODRAW,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(量价关注=1,EMA(VAR1,60),'★'),COLORWHITE;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
ZC:=L1+P1*0.5/8,;
XJ:=CLOSE,;
DRAWTEXT(LONGCROSS(ZC,XJ,2),ZC*1.001,'★B'),COLORYELLOW;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
上轨:=1.06*AHC22;
下轨:=AHC22*0.94;
ZT:=REF(C,1)*1.1-C<0.01ANDH=C;
暴力启动点:CROSS(C,上轨)ORCROSS(C,下轨)ANDZT,COLORYELLOW;
通达信分时B指标,预警公式截图
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)