以下是通达信智能解盘BBD副图指标源码和截图
通达信智能解盘BBD副图指标源码:
N:=20;
DRAWTEXTABS(10,10,STKLABEL+''+STKNAME+''+BKNAME),COLORGREEN;
均价:=(3*C+H+L+O)/6;
VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;
VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
SZ1:=REF(VAR1,1)=REF(VAR2,1)ANDVAR1 VAR2ANDCLOSE VAR1;
SZ2:=VAR1 VAR2ANDVAR1 REF(VAR1,1)ANDVAR2 REF(VAR2,1)ANDH/VAR1 1.1ANDL VAR2ANDCLOSE VAR1;
SZ3:=VAR1 VAR2ANDVAR1 REF(VAR1,1)ANDVAR2 =REF(VAR2,1)ANDH/VAR1
SZ4:=VAR1 VAR2ANDVAR1 REF(VAR1,1)ANDVAR2 REF(VAR2,1)ANDCLOSE VAR2ANDCLOSE VAR1;
SZ5:=(VAR1 VAR2ANDVAR2 REF(VAR2,1)ANDVAR1 REF(VAR1,1)ANDCLOSE VAR2)OR(VAR1 VAR2ANDVAR1 REF(VAR1,1)ANDVAR2 REF(VAR2,1)ANDCLOSE VAR2);;
SZ6:=REF(VAR1,1) REF(VAR2,1)ANDVAR1=VAR2ANDCLOSE VAR2;
XD1:=VAR1=VAR2ANDCLOSE VAR2OR(VAR1 REF(VAR1,1)ANDVAR2 REF(VAR2,1)ANDREF(VAR1,1)=REF(VAR2,1)ANDCLOSE VAR2);
XD2:=VAR1=VAR2ANDCLOSE VAR1;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
饱和度:=IF(SAT 1,1,SAT)*100;
IFBARSTATUS=2ANDSZ1THENBEGIN
DRAWTEXTABS(320,25,'调整结束介入'),COLORRED;
END
ELSE
IFBARSTATUS=2ANDSZ2THENBEGIN
DRAWTEXTABS(320,25,'上升通道走势良好'),COLORRED;
END
ELSE
IFBARSTATUS=2ANDSZ3THENBEGIN
DRAWTEXTABS(320,25,'股价偏离注意调整'),COLORRED;
END
ELSE
IFBARSTATUS=2ANDSZ4THENBEGIN
DRAWTEXTABS(320,25,'上升通道调整洗盘'),COLORGREEN;
END
ELSE
IFBARSTATUS=2ANDSZ5THENBEGIN
DRAWTEXTABS(320,25,'转向特征注意离场'),COLORGREEN;
END
ELSE
IFBARSTATUS=2ANDSZ6THENBEGIN
DRAWTEXTABS(320,25,'通道改变坚决离场'),COLORGREEN;
END
ELSE
IFBARSTATUS=2ANDXD1THENBEGIN
DRAWTEXTABS(320,25,'下跌通道只宜观望'),COLORGREEN;
END
ELSE
IFBARSTATUS=2ANDXD2THENBEGIN
DRAWTEXTABS(320,25,'短期底部准备进入'),COLORYELLOW;
END;
AB1:=COST(0.33);
AB2:=COST(5);
AB3:=COST(15);
AB4:=COST(55);
AB5:=COST(97);
AA1:=COST(90);
AA2:=COST(70);
AA3:=COST(30);
AA4:=COST(10);
获利:=WINNER(CLOSE)*100;
套牢:=100-WINNER(CLOSE)*100;
DRAWTEXTABS(15,25,'量能饱和度:'+NUMTOSTRN(量能饱和度,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(15,40,'90:'+NUMTOSTRN(AA1,2)),COLOR00FFFF;
DRAWTEXTABS(15,55,'70成本:'+NUMTOSTRN(AA2,2)),COLOR00FFFF;
DRAWTEXTABS(15,70,'30成本:'+NUMTOSTRN(AA3,2)),COLOR00FFFF;
DRAWTEXTABS(15,85,'10成本:'+NUMTOSTRN(AA4,2)),COLOR00FFFF;
DRAWTEXTABS(15,100,'底出击:'+NUMTOSTRN(AB1,2)),COLOR00FFFF;
DRAWTEXTABS(520,25,'建仓:'+NUMTOSTRN(AB2,2)),COLOR00FFFF;
DRAWTEXTABS(600,25,'整固:'+NUMTOSTRN(AB3,2)),COLOR00FFFF;
DRAWTEXTABS(675,25,'升浪:'+NUMTOSTRN(AB4,2)),COLOR00FFFF;
DRAWTEXTABS(520,40,'获利:'+NUMTOSTRN(获利,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(600,40,'套牢:'+NUMTOSTRN(套牢,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(675,40,'预测:'+NUMTOSTRN(AB5,2)),COLOR00FFFF;
AAA:=量能饱和度
BBB:=量能饱和度 10AND量能饱和度
CCC:=量能饱和度 20AND量能饱和度
DDD:=量能饱和度 30AND量能饱和度
EEE:=量能饱和度 50AND量能饱和度
FFF:=量能饱和度 70AND量能饱和度
GGG:=量能饱和度 80AND量能饱和度
HHH:=量能饱和度
IFBARSTATUS=2ANDAAATHENBEGINDRAWRECTREL(0,350,15,380,RGB(255,0,0));
END
ELSE
IFBARSTATUS=2ANDBBBTHENBEGINDRAWRECTREL(0,320,15,380,RGB(255,0,0));
END
ELSE
IFBARSTATUS=2ANDCCCTHENBEGINDRAWRECTREL(0,290,15,380,RGB(255,0,0));
END
ELSE
IFBARSTATUS=2ANDDDDTHENBEGINDRAWRECTREL(0,230,15,380,RGB(255,0,0));
END
ELSE
IFBARSTATUS=2ANDEEETHENBEGINDRAWRECTREL(0,170,15,380,RGB(255,0,0));
END
ELSE
IFBARSTATUS=2ANDFFFTHENBEGINDRAWRECTREL(0,140,15,380,RGB(255,0,0));
END
ELSE
IFBARSTATUS=2ANDGGGTHENBEGINDRAWRECTREL(0,110,15,380,RGB(255,0,0));
END
ELSE
IFBARSTATUS=2ANDHHHTHENBEGINDRAWRECTREL(0,85,15,380,RGB(255,0,0));
END;
RSI1预设:=5000;
RSI2预设:=5000;
RSI3预设:=5000;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
A:=SMA(MAX(CLOSE-LC,0),24,1);
B:=SMA(ABS(CLOSE-LC),24,1);
A1:=SMA(MAX(CLOSE-LC,0),6,1);
B1:=SMA(ABS(CLOSE-LC),6,1);
YCJ1:IF(C LC,(REF(A1,1)*5-REF(B1,1)*5*RSI1预设/10000)/(RSI1预设/10000-1)+LC,LC+REF(B1,1)*5-REF(A1,1)*5/(RSI1预设/10000));
A2:=SMA(MAX(CLOSE-LC,0),12,1);
B2:=SMA(ABS(CLOSE-LC),12,1);
YCJ2:IF(C LC,(REF(A2,1)*11-REF(B2,1)*11*RSI2预设/10000)/(RSI1预设/10000-1)+LC,LC+REF(B2,1)*11-REF(A2,1)*11/(RSI1预设/10000));
YCJ3:IF(C LC,(REF(A,1)*23-REF(B,1)*23*RSI3预设/10000)/(RSI3预设/10000-1)+LC,LC+REF(B,1)*23-REF(A,1)*23/(RSI3预设/10000));
A74:=MA(CLOSE,20);
A75:=(CLOSE MA(CLOSE,5));
A76:=(MA(CLOSE,5) MA(CLOSE,10));
A77:=(CLOSE MA(CLOSE,10));
A78:=(MA(CLOSE,5) MA(CLOSE,20));
A79:=(CLOSE MA(CLOSE,20));
A710:=REF(A74,1);
A711:=(A74 A710);
AVX:=(((((IF(A75,10,(0-10))+IF(A76,10,(0-10)))+IF(A77,10,(0-10)))+IF(A78,10,(0-10)))+IF(A79,10,(0-10)))+IF(A711,10,(0-10)));
DSLX:=(CLOSE/INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);T:=BARSLAST(DISPSTATUS=1)+1;
T:=BARSLAST(DISPSTATUS=1)+1;
HHg:=HHV(H,T);
ddg:=LLV(L,T);
IFBARSTATUS=2andc 200and((CROSS(AVX,1)AND(V1 =V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'的量能理想,有明显走强迹象,可以考虑进场参与,仓位在2/3左右。'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and((CROSS(AVX,1)AND(V1 V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and((CROSS(AVX,1)AND(V1 V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and((CROSS(AVX,1)AND(V1 =V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and((CROSS(1,AVX)AND(V1 =V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。'),color00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and((CROSS(1,AVX)AND(V1 V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'随一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。'),color00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and((CROSS(1,AVX)AND(V1 =V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'放量下跌,走势明显偏弱,离场观望。'),color00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and((CROSS(1,AVX)AND(V1 V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'缩量下跌,走势偏弱,离场观望。'),color00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'形态良好,强势明显,量能充足,可以继续持有。'),color00FFFF,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'上行不变,强势依然,但量能开始转弱,注意风险。'),color00FFFF,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),color00FFFF,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'走势趋弱,量能不足,减持大部分。'),color00FFFF,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'形态不佳,注意的变化,但目前不适合参与。'),COLOR00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX =DSLX1))THEN
DRAWTEXTREL(360,960,'趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),COLOR00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'有走强迹象,但量能不足,趋势不明,不适合操作。'),COLOR00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX DSLX1))THEN
DRAWTEXTREL(360,960,'走势太弱,没有参与价值。'),COLOR00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and(CROSS(AVX,1)AND(V1 =V2))THEN
DRAWTEXTREL(360,960,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右,'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and(CROSS(AVX,1)AND(V1 =V2))THEN
DRAWTEXTREL(360,960,'如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and(CROSS(AVX,1)AND(V1 V2))THEN
DRAWTEXTREL(360,960,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌,'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and(CROSS(AVX,1)AND(V1 V2))THEN
DRAWTEXTREL(360,960,'可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。'),color0000FF,LINETHICK1;
IFBARSTATUS=2andc 200and(CROSS(1,AVX)AND(V1 =V2))THEN
DRAWTEXTREL(360,960,'大盘形态走坏,重仓者可以减去大部分仓位。'),color00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and(CROSS(1,AVX)AND(V1 V2))THEN
DRAWTEXTREL(360,960,'大盘缩量调整,注意风险,短线清仓观望。'),color00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and(((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2))THEN
DRAWTEXTREL(360,960,'大盘走势良好,量能理想,可以继续持有强势股。'),color00FFFF,LINETHICK1;
IFBARSTATUS=2andc 200and(((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2))THEN
DRAWTEXTREL(360,960,'大盘形态良好,但量能稍显不足,随时准备减仓。'),color00FFFF,LINETHICK1;
IFBARSTATUS=2andc 200and(((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2))THEN
DRAWTEXTREL(360,960,'大盘趋势不明,注意成交量变化,目前不适宜进场。'),COLOR00FF00,LINETHICK1;
IFBARSTATUS=2andc 200and(((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))THEN
DRAWTEXTREL(360,960,'大盘趋势向下,量能萎缩,不适合进场。'),COLOR00FF00,LINETHICK1;
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
明日阻力:=2*E-LOW;
明日支撑:=2*E-HIGH;
明日:=E+(HIGH-LOW);
明日:=E-(HIGH-LOW);
今日阻力:=REF(明日阻力,1);
今日支撑:=REF(明日支撑,1);
DRAWTEXTREL(100,100,'今日阻力=:'+NUMTOSTRN(今日阻力,2)+''),Color00FFFF;
DRAWTEXTREL(100,140,'今日支撑=:'+NUMTOSTRN(今日支撑,2)+''),Color00FF00;
DRAWTEXTREL(100,180,'明日突破=:'+NUMTOSTRN(明日突破,2)),ColorFF00FF;
DRAWTEXTREL(100,220,'明日阻力=:'+NUMTOSTRN(明日阻力,2)),ColorFFFF00;
DRAWTEXTREL(100,260,'明日支撑=:'+NUMTOSTRN(明日支撑,2)),COLORRED;
DRAWTEXTREL(100,300,'明日反转=:'+NUMTOSTRN(明日反转,2)),COLORGREEN;
N:=10;
ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C ZZ,VOL,0);B:=IF(C ZZ,VOL,0);
总0:=(A-B);
BBD:EMA(总0,3)/SUM(VOL,5)*600,LINETHICK;
STICKLINE(BBD =0,0,BBD,3,0),COLOR000088;
STICKLINE(BBD =0,0,BBD,1.5,0),COLOR0000AA;
STICKLINE(BBD =0,0,BBD,1,0),COLOR0000CC;
STICKLINE(BBD =0,0,BBD,0.5,0),COLOR0000FF;
STICKLINE(BBD 0,0,BBD,3,0),COLOR888800;
STICKLINE(BBD 0,0,BBD,1.5,0),COLORAAAA00;
STICKLINE(BBD 0,0,BBD,1,0),COLORCCCC00;
STICKLINE(BBD 0,0,BBD,0.5,0),COLORFFFF00;
XH1:=REF(BBD,1) REF(BBD,2)ANDREF(BBD,1) -10ANDBBD REF(BBD,1)ANDBBD
XH2:=REF(BBD,1) =REF(BBD,2)ANDREF(BBD,1) 8ANDBBD REF(BBD,1)ANDBBD
DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1;
SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;
GG:=MA(HHH,5),LINETHICK1,COLORGREEN;
MM:=MA(CCC,5),LINETHICK1,COLORGREEN;
WW:=IF(QQ GG,SS,MM),LINETHICK1,COLOR0000FF;
EE:=IF(SS MM,GG,QQ),COLORFFFFCC,LINETHICK1;
★买:=IF(EE-WW 5.6,200,0);
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
量:=EMA(VOL,13);
:=EMA(AMOUNT,13);
过滤:=((资金/量)/100);
提纯:=(((CLOSE-过滤)/过滤)*100);
黄金:=((提纯 (0))ANDZXNH),COLORRED;
买:IF(黄金ANDRSVV VARB2-2,180,0),COLOR00FFFF,STICK,LINETHICK1;
DRAWTEXT(买 0,99.6,'买'),COLORFFFFFF;
STICKLINE(买,0,2,0,9),COLOR0000FF;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
小心:3.2,COLORYELLOW;
风险:3.5,COLORBLUE;
动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
STICKLINE(动力线 REF(动力线,1),动力线,REF(动力线,1),0,0),COLORRED;
STICKLINE(动力线 =REF(动力线,1),动力线,REF(动力线,1),0,0),COLOR00FF00;
底部:0.2,COLORC6C600;
关注:0.5,COLORFF75FF;
强弱分界:1.75,COLORRED;
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,45,'低进'),COLORFFFFFF;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,85,'▲'),COLORFF00FF;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,80,'▲'),COLORFF00FF;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,75,'↑'),COLORFF00FF;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,70,'↑'),COLORFF00FF;
小股民:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
:=EMA(0.667*REF(小股民,1)+0.333*小股民,2);
DRAWTEXT(CROSS(庄家,小股民)AND小股民 70,90.5,'高出'),COLOR00FF00;
DRAWTEXT(CROSS(庄家,小股民)AND小股民 70,80,'●'),COLOR00FF00;
高出:100*(CROSS(庄家,小股民)AND小股民 70),COLOR00FF00,STICK,LINETHICK1;
盘1:=COST(0.33);
盘2:=COST(5);
盘3:=COST(15);
盘4:=COST(55);
盘5:=COST(97);
获利:=WINNER(CLOSE)*100;
套牢:=100-WINNER(CLOSE)*100;
DRAWTEXT_FIX(1,0.02,0,0,EXTERNSTR(0,1)),COLOR719FFF;
DRAWTEXT_FIX(1,0.4,0,1,'升浪:'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.41,0,0,CONST(COST(55))),COLOR007DFB;
DRAWTEXT_FIX(1,0.5,0,0,'预测:'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.55,0,0,CONST(COST(97))),COLOR007DFB;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,30);
多头排列:=MA1 MA2ANDMA2 MA3ANDMA3
MA60:=MA(C,60),COLORFFCC66;MA13:=MA(C,13),COLORFFCC66;
MA75:=MA(C,75),COLORFFCC66;
空头排列:=MA1 MA2ANDMA2 MA3ANDMA3
下跌趋势:=MA4 REF(MA4,3)ANDMA4 REF(MA4,1);
上升趋势:=MA4 REF(MA4,3)ANDMA4 REF(MA4,1);
下降成:=CONST(IF(下跌趋势ANDMA1 REF(MA1,1)ANDREF(NOT(下跌趋势),1),1,0));
上升成:=CONST(IF(上升趋势ANDREF(NOT(上升趋势),1),1,0));
DRAWTEXT_FIX(ISLASTBARAND下降成=1,0.8,0.2,0,'下降趋势成'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARAND上升成=1,0.8,0.2,0,'上升趋势成'),COLOR8080FF;
一阴穿2线:=C/O 0.985ANDH MA1ANDC
一阳穿2线:=C/O 1.016ANDL MIN(MA1,MA3)ANDC MAX(MA1,MA3);
发散度:=MA1/MA4;
下发散:=下跌趋势AND发散度 0.9AND发散度 0.99*REF(发散度,1);
均线上发散:=MA1 REF(MA1,1)ANDMA2 REF(MA2,1)ANDMA3 REF(MA3,1)ANDMA4 REF(MA4,1)ANDMA1 MA2ANDMA2 MA3ANDMA3
AAAA1:=MAX(MAX(MA(V,5),MA(V,10)),MA(V,60))/MIN(MIN(MA(V,5),MA(V,10)),MA(V,60)) =1.4;
AAAA2:=MAX(MA(C,5),MA(C,10))/MIN(MA(C,5),MA(C,10)) =1.4;
DIFF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIFF,9);
升:=CONST(IF(DIFF 0,1,0)),COLORRED;
DRAWTEXT_FIX(ISLASTBARAND升=1,0.1,0.35,0,'处于上升趋势'),COLOR8080FF;
降:=CONST(IF(DIFF -0,1,0)),COLORRED;
DRAWTEXT_FIX(ISLASTBARAND降=1,0.1,0.35,0,'处于下降趋势'),COLORFFFF00;
VARF:=LOW*0.9;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
RSV0:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K0:=SMA(RSV,3,1);
D0:=SMA(K,3,1);
J0:=3*K-2*D;
均线密集:=DIFF DEAANDK DAND(MA5-MA10) 0.05AND(MA20-MA5) 0.05AND(MA10-MA5) 0.05AND(MA5-MA20) 0.05;
A0:=MA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),19);
B0:=-100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));
DD:=EMA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),4);
:=A+100;
短线:=B+100;
中线:=DD+100;
见顶:=(REF(中线,1) 85ANDREF(短线,1) 85ANDREF(长线,1) 65ANDCROSS(长线,短线));
顶区:=(中线 REF(中线,1)ANDREF(中线,1) 80ANDREF(短线,1) 95ORREF(短线,2) 95
AND长线 60AND短线 83.5AND短线 中线AND短线 长线+4);
底区:=长线 20AND中线 18AND短线 40ANDREF(短线,1) 5AND中线 REF(中线,1)AND短线 REF(短线,1);
顶部:=FILTER(顶区,4);
{}
VAR2N:=LLV(LOW,3) =LLV(LOW,60);
VAR3N:=C OAND(C/O 1.03ORC 1.03*REF(C,1));
绝地反击:=IF(VAR2NANDVAR3N,90,0),COLORYELLOW,LINETHICK2;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
A1:=SMA(MAX(C-LC,0),6,1);
B1:=SMA(ABS(C-LC),6,1);
界:=IF(C LC,(REF(A1,1)*5-REF(B1,1)*5*0.5)/(0.5-1)+LC,LC+REF(B1,1)*5-REF(A1,1)*5/0.5),COLORWHITE;
MACD:=4*(DIFF-DEA);
{}
缩头:=IF(MACD 0ANDREF(MACD,1) REF(MACD,2)ANDMACD REF(MACD,1),1,0);
缩脚:=IF(MACD 0ANDREF(MACD,1) REF(MACD,2)ANDMACD REF(MACD,1),1,0);
ZDIF:=EMA(INDEXC,12)-EMA(INDEXC,26);
ZHIDEA:=EMA(ZDIF,9);
ZEMACD:=(ZDIF-ZHIDEA)*2/100,COLORSTICK;DK:=ZEMACD;
{}
Z缩头:=IF(DK 0ANDREF(DK,1) REF(DK,2)ANDDK REF(DK,1),1,0);
Z缩脚:=IF(DK 0ANDREF(DK,1) REF(DK,2)ANDDK REF(DK,1),1,0);
{}
TT:=240/FROMOPEN;
比:=TT;
J12:=(HIGH-((HIGH-LOW)/3));
J23:=(LOW+((HIGH-LOW)/3));
AAA1:=CONST(HHV(H,90));
BBB0:=CONST(LLV(L,30))+2;
T1:=CONST(IF(CLOSE 界,1,0));
T2:=CONST(IF(CLOSE 界,1,0));
T3:=CONST(IF(C MA(C,75),1,0));
T4:=CONST(IF(CROSS(CLOSE,界),1,0));
T5:=CONST(IF(CROSS(MA(CLOSE,13),CLOSE),1,0));
T6:=CONST(IF(C =MA(C,5)ANDC MA(C,13),1,0));
T7:=CONST(IF(C =MA(C,75),1,0));
VAR1Y:=VOL/CAPITAL*100;
VAR2Y:=LLVBARS(LOW,10);
VAR3Y:=(CLOSE-REF(OPEN,VAR2Y))/REF(OPEN,VAR2Y)*100;
VAR4Y:=REF(CLOSE,2)*0.865;
VAR5Y:=REF(CLOSE,13)*0.772;
VAR6Y:=MAX(VAR4Y,VAR5Y);
T9:=(CLOSE-VAR6Y)/CLOSE 0.2ANDVAR3Y 50ANDSUM(VAR1Y,5)/5
T10:=CONST(IF(VAR2NANDVAR3N,1,0));
T11:=CONST(IF(缩脚,1,0));
T12:=CONST(IF(ZDIF 0,1,0));
T14:=CONST(IF(ZEMACD =REF(ZEMACD,1)ANDZEMACD 0ANDZDIF =0,1,0));
DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,'看均线'),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.35,0,'看MACD'),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.50,0,'看大盘'),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.65,0,'看'),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBARANDT1=1,0.26,0.2,0,'短线上升持股'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDT2=1,0.26,0.2,0,'短线下降持币'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDT3=1,0.38,0.2,0,'长线下降持币'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDT7=1,0.38,0.2,0,'长线上升持股'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDT6=1,0.1,0.65,0,'低买点持股信号'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDT4=1,0.65,0.65,0,'加买点信号'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDT5=1,0.65,0.65,0,'短线卖出信号'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDT14=1,0.1,0.5,0,'处于上升趋势'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDT12=1,0.1,0.5,0,'处于下降趋势'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDT9=1,0.2,0.65,0,'阳线卖点'),COLOR00FFFF;
LC1:=REF(INDEXC,1);
ZRSI:=SMA(MAX(INDEXC-LC1,0),6,1)/SMA(ABS(INDEXC-LC1),6,1)*100,COLORD9D900;
X0:=INDEXC;
Y:=INDEXO;
Z:=INDEXL;
I:=INDEXH;
急速超跌:=(X-MA(X,34))/MA(X,34)*100
当日收阳:=(I-Z)/Z 0.01AND(X-Y)/Y 0.01ANDX/REF(X,1) 1.01;
超跌收阳:=CONST(IF(急速超跌AND当日收阳,1,0));
DRAWTEXT_FIX(ISLASTBARAND超跌收阳=1,0.65,0.5,0,'大盘短底,少量买'),COLOR8080FF;
A1W:=SMA(MAX(X-LC1,0),6,1);
B1W:=SMA(ABS(X-LC1),6,1);
界1:=IF(X LC1,(REF(A1W,1)*5-REF(B1W,1)*5*0.5)/(0.5-1)+LC1,LC1+REF(B1W,1)*5-REF(A1W,1)*5/0.5),COLORWHITE;
TYP:=(Z+I+X)/3;
YY:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;
BB:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
超卖:=CONST(IF(CROSS(BB,-200),1,0));
DRAWTEXT_FIX(ISLASTBARAND超卖=1,0.65,0.5,0,'大盘超卖,少量买'),COLOR8080FF;
KS:=(C-MA(C,17))/MA(C,17)*(-100);
RKS:=REF(KS,1);
MLS:=RKS/KS =1.23ANDRKS =8ANDC/REF(C,1) =1.01;
大盘4:=CONST(IF(X 界1,1,0));
大盘3:=CONST(IF(X 界1,1,0));
大盘12{M13}:=CONST(IF(ZEMACD REF(ZEMACD,1)ANDZEMACD 0ANDZDIF 0,1,0));
大盘13:=CONST(IF(ZEMACD 0ANDZDIF 0,1,0));
M整理:=CONST(IF(MACD 0ANDDIFF 0,1,0));
M走缓:=CONST(IF(MACD REF(MACD,1)ANDMACD 0ANDDIFF 0,1,0));
DRAWTEXT_FIX(ISLASTBARANDM整理=1,0.26,0.35,0,'股价升途整理'),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBARANDM走缓=1,0.26,0.35,0,'股价上升走缓'),COLOR00FFFF;
大盘16:=CONST(IF(ZEMACD REF(ZEMACD,1)ANDZEMACD 0ANDZDIF 0,1,0));
大盘11:=CONST(IF(KS =17,1,0));
大盘2:=CONST(IF(MLS=1,1,0));
DRAWTEXT_FIX(ISLASTBARAND大盘4=1,0.26,0.5,0,'短线持股'),COLOR8080FF;
DRAWTEXT_FIX(大盘3=1ANDISLASTBAR,0.26,0.5,0,'短线持币'),COLORFFFF00;
DRAWTEXT_FIX(大盘13=1ANDISLASTBAR,0.3,0.5,0,'上升趋势,升途整理,谨慎'),COLOR00FFFF;
DRAWTEXT_FIX(大盘11=1ANDISLASTBAR,0.2,0.65,0,'今日价超跌'),COLORFFFF00;
DRAWTEXT_FIX(大盘2=1ANDISLASTBAR,0.2,0.65,0,'今日价反弹'),COLOR8080FF;
M弹:=CONST(IF(MACD REF(MACD,1)ANDMACD 0ANDDIFF 0,1,0));
{DRAWTEXT_FIX(大盘12=1ANDISLASTBAR,0.3,0.5,0,'大盘下降趋势,反弹,谨慎'),COLORWHITE;}
DRAWTEXT_FIX(大盘12ANDISLASTBAR,0.5,0.5,0,'处于反弹区'),COLOR8080FF;
DRAWTEXT_FIX(M弹=1ANDISLASTBAR,0.26,0.35,0,'反弹阶段小心'),COLORYELLOW;
MM3:=CONST(IF(RSI1 ZRSI,1,0));
MM4:=CONST(IF((RSI1 =ZRSI),1,0));
DRAWTEXT_FIX(ISLASTBARANDMM3=1,0.1,0.2,0,'弱于大盘走势'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDMM4=1,0.1,0.2,0,'强于大盘走势'),COLOR8080FF;
WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
买盘1:=DYNAINFO(23)*比;
卖盘1:=DYNAINFO(22)*比;
买盘2:=IF(ISLASTBARANDC 300,(V9+V8)*TT,(V9+V8));
卖盘2:=IF(ISLASTBARANDC 300,(V6+V7)*TT,(V6+V7));
买盘:=IF(ISLASTBARANDPERIOD=5ANDC 300,买盘1,买盘2);
卖盘:=IF(ISLASTBARANDPERIOD=5ANDC 300,卖盘1,卖盘2);MFI:=(HIGH-LOW)*1000000/(VOL*比);
绿灯:=MFI =REF(MFI,1)ANDVOL*比 =REF(VOL,1);
M1:=CONST(IF(空头排列AND均线下发散,1,0));
M2:=CONST(IF(多头排列AND均线上发散,1,0));
M3:=CONST(IF(空头排列ANDNOT(均线下发散),1,0));
M9:=CONST(IF(空头排列,1,0));
M10:=CONST(IF(多头排列,1,0));
MM1:=CONST(IF(均线密集,1,0));
MM2:=CONST(IF(上升趋势ANDNOT(一阴穿2线)ANDREF(上升趋势,1),1,0));
M4:=CONST(IF(下跌趋势ANDNOT(一阳穿2线),1,0));
MM5:=CONST(IF(DIFF 0ANDMACD 0ANDMACD REF(MACD,1),1,0));
MM7:=CONST(IF(ZEMACD REF(ZEMACD,1)ANDZEMACD 0,1,0));
MM8:=CONST(IF(下跌趋势ANDREF(下跌趋势,1)ANDNOT(一阳穿2线),1,0));
MM9:=CONST(IF(ZEMACD REF(ZEMACD,1)ANDZEMACD 0,1,0));
量大:=(卖盘+买盘)/REF(VOL,1)
M5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)
M6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘
M7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘
M8:=CONST(买量大);
DRAWTEXT_FIX(ISLASTBARANDM2=1,0.7,0.2,0,'多头发散,注意13日线得失'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDM7=1,0.7,0,0,'☆卖出量大于买入量40%以上'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDM8=1,0.7,0,0,'☆买入量大于卖出量40%以上'),COLOR8080FF;
{{DRAWTEXT_FIX(ISLASTBARANDMM1=1,0.2,0,7,'均线密集,注意方向变化'),COLORYELLOW;}
DRAWTEXT_FIX(ISLASTBARANDM1=1,0.4,0.2,0,'有加速下跌趋势'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDM2=1,0.4,0.2,0,'有加速上升趋势'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDM4=1,0.5,0.2,0,'下跌趋势未变,'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDMM2=1,0.5,0.2,0,'上升趋势未变'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDM9=1,0.8,0.2,0,'空头排列'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBARANDM10=1,0.8,0.2,0,'多头排列'),COLOR8080FF;
DRAWTEXT_FIX(ISLASTBARANDMM5=1,0.25,0.35,0,'下跌趋势趋缓,可能转折'),COLOR00FFFF;
{DRAWTEXT(VAR2NANDVAR3N,L*0.99,'反击'),COLOR00FF00;}
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
乖:=CONST(IF(CROSS(BIAS,乖离)AND乖离 -9,1,0)),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBARAND乖=1,0.65,0.35,0,'乖离买点'),COLOR8080FF;
坑:=CONST(IF(乖离 -19,1,0)),COLORRED;
DRAWTEXT_FIX(ISLASTBARAND坑=1,0.65,0.5,0,'深坑买点'),COLOR8080FF;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
支撑:=L1+P1*0.5/8;
底:CROSS(支撑,C),COLOR8080FF,STICK,LINETHICK1;
DRAWTEXT(底 0,19.26,'底'),COLOR4646FF;
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR21:=8;
RSI0:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
减:CROSS(88,RSI),STICK,LINETHICK1,COLORFFFF00;
DRAWTEXT(减 0,13.1,'↓减'),COLORFFFF00;
STICKLINE(减,0,1,0,0),COLORFFFF00;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,2,'低进'),COLORFFFFFF;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,13,'▲'),COLORFF00FF;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 19,10,'↑'),COLORFF00FF;
小股民0:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家0:=EMA(0.667*REF(小股民,1)+0.333*小股民,2);
DRAWTEXT(CROSS(庄家,小股民)AND小股民 70,1.9,'卖'),COLOR00FF00;
DRAWTEXT(CROSS(庄家,小股民)AND小股民 70,12,'↓'),COLOR00FF00;
高出0:100*(CROSS(庄家,小股民)AND小股民 70),COLOR000000,LINETHICK1,STICK;
RSVV0:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB20:=(RSVV/2+22)*1;
量0:=EMA(VOL,13);
资金0:=EMA(AMOUNT,13);
过滤0:=((资金/量)/100);
提纯0:=(((CLOSE-过滤)/过滤)*100);
黄金0:=((提纯 (0))ANDZXNH),COLORRED;
买0:IF(黄金ANDRSVV VARB2-2,18,0),COLOR2E2E2E,STICK,LINETHICK1;
DRAWTEXT(买 0,13.6,'买'),COLOR8080FF;
短线成本:=Ema(CLOSE,17),LINETHICK2,COLORWHITE;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
中线成本:=EMA(X,13),LINETHICK2,COLORFF00FF;
stICKLINE(BArslAST(短线成本 中线成本) 30,95,100,5,0),COLORRED;
STICKLINE(BARSLAST(短线成本 中线成本) 30,0,5,5,0),COLORGREEN;
VAR1:=1;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT 1,1,SAT)*100;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2 0,REF(C,W2),REF(C,W2));
W4:=crOSS(C,REF(W3,1));
STICKLINE(饱和度 =97ANDCQ 90,0,100,3,0),COLORRED;
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
短期线:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30,LINETHICK2,COLORGREEN;
中期线:MA(持股,12),COLORWHITE,LINETHICK2;
STICKLINE(支撑 中期线,支撑,中期线,3,0),COLOR6B8E23;
STICKLINE(持股 0,支撑,持股,3,0),COLORRED;
STICKLINE(支撑 中期线,中期线,支撑,3,0),COLOR38B0DE;
STICKLINE(支撑=持股AND持股 中期线,中期线,支撑,3,0),COLORFF00FF;
STICKLINE(REF(中期,1) 1AND中期 1,0,15,3,0),COLORWHITE;
STICKLINE(W4ANDCOUNT(W4,5)=1,85,100,3,0),COLORYELLOW;
底部线:0,COLORWHITE;
警戒线:85,COLORYELLOW;
卖出线:100,COLORRED;
通达信智能解盘BBD副图指标截图