以下是通达信炒股决策是关键乾坤决策眼指标主图源码和截图
通达信炒股决策是关键乾坤决策眼指标主图源码:
ma5:MA(C,5);
MA6:=MA(C,6);
MA10:MA(C,10);
MA20:MA(C,20);
A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);
MA30:MA(C,30);
MA55:MA(C,60);
MA120:MA(C,120);
乖离2:=(MA20-MA30)/MA30*100;
VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);
MAX1:=MAX(MA20,MA30);
MAX2:=MAX(MAX1,MA55);
MIN1:=MIN(MA20,MA30);
MIN2:=MIN(MIN1,MA55);
K1:=(MAX2/MIN2-1)*100;
VAR2:=IF(K1 =8,1,0);
上火车轨:=MA20 MA30ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1)ANDMA20-MA30 REF((MA20-MA30),1);
stICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;
神枪手:=DRAWTEXT(FILTER(上火车轨AND".DIF" 0.15AND
"MacD.DIF" REF("MACD.DIF",1)ANDMA(V,60) REF(MA(V,60),1)AND
MA(V,5) MA(V,10)ANDJ1 REF(J1,1)AND
(L =MA20ANDC MA20OR(crOSS(MA5,MA20))),5),L*0.98,'←神枪手');
神枪手:=FILTER(上火车轨AND"MACD.DIF" 0.15AND
"MACD.DIF" REF("MACD.DIF",1)ANDMA(V,60) REF(MA(V,60),1)AND
MA(V,5) MA(V,10)ANDJ1 REF(J1,1)AND
(L =MA20ANDC MA20OR(CROSS(MA5,MA20))),5);{44.40%15240}
暴涨:DRAWTEXT(FILTER((VAR1ORVAR2)ANDMA10 REF(MA10,1)AND
COUNT(MA30 REF(MA30,1),3)=3ANDMA30 MA55AND
COUNT(CROSS(MA5,MA30),3)ANDJ1 MJ1ANDMA(V,5) MA(V,60)
ANDMA(V,60) REF(MA(V,60),1),5),MA55*0.99,'短线暴涨'),COLORRED;
DRAWTEXT(CROSS(".K"(5,2,3),"kdJ.D"(5,2,3))AND"KDJ.D"(5,2,3) 30
ANDJ1 MJ1ANDMA55 REF(MA55,1)ANDCOUNT(J1 1,3) =1
,L*0.995,'←买入'),COLORYELLOW;
DRAWTEXT(CROSS("KDJ.D"(5,2,3),"KDJ.K"(5,2,3))AND"KDJ.D"(5,2,3) 65
ANDJ1 MJ1ANDCOUNT(J1 1,3) =1,H*1.005,'←卖出'),COLORGREEN;
DRAWTEXT(CROSS("KDJ.D"(18,9,6),"KDJ.K"(18,9,6))AND"KDJ.D"(18,9,6) 60AND"KDJ.J"(45,15,15) 90,H*1.03,'←顶'),COLORRED;
DRAWTEXT(CROSS(MA5,MA6)AND"KDJ.K"(5,3,3) =50AND"KDJ.J"(5,3,3) 31,L*0.92,'←再买'),COLORMAGENTA;
XL1:=((LLV(LOW,3)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1)) =1.04));
XL2:=(((CLOSE-EMA(CLOSE,21))/EMA(CLOSE,21))*100);
XL3:=CROSS(XL2,(0-20));
DRAWTEXT(FILTER(((XL1 0)ANDLOW),5),(LOW-0.4),'买点');
DRAWTEXT((XL3 0),(LOW-0.2),'绝对底部');
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(Abs((CLOSE-X6)),7,1))*100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9,(HIGH*1.02),'出货'),COLOR9000F5;
STICKLINE(C 1.098*REF(C,1),C,O,0,0),COLORYELLOW;
VVAR1:=AMOUNT//7;
VVAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K1:=SMA(RSV,10,1);
D1:=SMA(K1,5,1);
KK:=INTPART(K1);
DD0:=INTPART(D1);
TFXXS:=KK+DD0;
TGLD:=MOD(TFXXS,10);
TGLXS:=(TFXXS-REF(TFXXS,1))*10;
TYCFX:=TFXXS+TGLXS;
乖离系数:TGLXS,LINETHICK0,COLORGREEN,NODRAW;
DRAWTEXT_FIX(4,0.01,0,0,'备注'),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0,0.92,0,'1、乖离系数,大于40关注,小于-50坚决不进场,大于60坚决买入,买入时看股价运行的情况而定。
2、控盘系数大于20,可以做个小,准确率80%。')COLOR4080FF;
DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'BJ1',0);
范围高A:=REFDATE(HHV(H,120),DATE)*1.05;
范围低A:=REFDATE(LLV(L,120),DATE)*0.95;
MA5:=MA(C,5),COLORCYAN,LINETHICK2;
MA24:=MA(C,24),COLORGREEN,LINETHICK2;
MA72:=MA(C,72),COLORRED,LINETHICK2;
MA200:=IF((MA(C,200) =范围高AANDMA(C,200) =范围低A)ORC =MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;
主升浪:=ISLASTBARANDMA5 MA24ANDMA24 MA72ANDMA72 IF(MA200=DRAWNULL,0,MA200);
主浪回调:=ISLASTBARANDMA24 MA5ANDMA5 MA72ANDMA72 IF(MA200=DRAWNULL,0,MA200);
主浪深调:=ISLASTBARANDMA24 MA72ANDMA72 MA5ANDMA5 IF(MA200=DRAWNULL,0,MA200);
初升浪:=ISLASTBARANDIF(MA200=DRAWNULL,300,MA200) MAX(MA24,MA72)ANDMA5 MA24ANDMA24 MA72;
底部反弹:=ISLASTBARANDIF(MA200=DRAWNULL,300,MA200) MA72ANDMA72 MA24ANDMA5 MA24;
探底阶段:=ISLASTBARANDIF(MA200=DRAWNULL,300,MA200) MA72ANDMA72 MA24ANDMA24
观望:=ISLASTBARANDIF(MA200=DRAWNULL,MA24 MA72ANDC MA72,MA72 MA200ANDC MA200);
有牛:=ISLASTBARANDIF(MA200=DRAWNULL,MA24 MA72ANDC =MA72,MA72 MA200ANDC =MA200);
放弃:=ISLASTBARANDIF(MA200=DRAWNULL,MA24 MA72ANDC MA72,MA72 MA200ANDC MA200);
DRAWGBK(显示仪表盘1=1AND主升浪=0AND主浪回调=0AND主浪深调=0AND初升浪=0AND底部反弹=0AND探底阶段=0AND观望=0AND有牛=0AND放弃=0,0,0,0,'观望',0)COLOR00BF00;
DRAWGBK(显示仪表盘1=1AND主升浪,0,0,0,'主升浪',0)COLORFF00FF;
DRAWGBK(显示仪表盘1=1AND主浪回调,0,0,0,'主浪回调',0)COLORFF8080;
DRAWGBK(显示仪表盘1=1AND主浪深调,0,0,0,'主浪深调',0)COLOR009500;
DRAWGBK(显示仪表盘1=1AND初升浪,0,0,0,'初升浪',0)COLOR00FFFF;
DRAWGBK(显示仪表盘1=1AND底部反弹,0,0,0,'底部反弹',0)COLORFFFF00;
DRAWGBK(显示仪表盘1=1AND探底阶段,0,0,0,'探底阶段',0);
DRAWGBK(显示仪表盘1=1AND观望,0,0,0,'观望',0)COLORFFFF00;
DRAWGBK(显示仪表盘1=1AND有牛,0,0,0,'有牛',0)COLOR00FFFF;
DRAWGBK(显示仪表盘1=1AND放弃,0,0,0,'放弃',0)COLOR00BF00;
引差:=REF(C,1)-LOW,LINETHICK1,NODRAW;
引跌幅:IF((REF(C,1)-LOW)/REF(C,1)*100 0,(REF(C,1)-LOW)/REF(C,1)*100,0),NODRAW;
三日均跌:MA(引跌幅,3),COLORWHITE,NODRAW;
N:=120;
K:=BARSLAST(CURRBARSCOUNT=N);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0)),NODRAW;
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0)),NODRAW;
KJ:=GD-DD;
GD4:=IF(CURRBARSCOUNT =N/2,GD,DRAWNULL);
高区:IF(CURRBARSCOUNT =N,GD,DRAWNULL),COLORRED,LINETHICK2,NODRAW;
低区:IF(CURRBARSCOUNT =N,DD,DRAWNULL),COLOR00FF00,LINETHICK2,NODRAW;
平衡:=IF(CURRBARSCOUNT =N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW;
低:IF(CURRBARSCOUNT =N/2,DD,DRAWNULL),COLORFFFF00;
高:IF(CURRBARSCOUNT =N/2,GD,DRAWNULL),COLOR00FFFF;
支撑:IF(CURRBARSCOUNT =N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
强势:IF(CURRBARSCOUNT =N/2,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
:IF(CURRBARSCOUNT =N/2,DD+KJ/2,DRAWNULL),COLOR0000FF;
警示:IF(CURRBARSCOUNT =N/2,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;
压力:IF(CURRBARSCOUNT =N/2,DD+KJ*0.809,DRAWNULL),COLOR00FF00;
低涨:IF(CURRBARSCOUNT =N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天数:BARSLAST(L=DD),COLORCYAN,NODRAW;
顶点:IF(CURRBARSCOUNT =N/2,CONST(IF(ISLASTBAR=1,HHV(H,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,CROSSDOT,NODRAW;
低点:IF(CURRBARSCOUNT =N/2,CONST(IF(ISLASTBAR=1,LLV(L,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,CROSSDOT,NODRAW;
STICKLINE(CCI =200ANDH =顶点,O,C,2,0),COLORBLUE;
STICKLINE(CCI =100ANDL =低点,O,C,2,0),COLORYELLOW;
DRAWBAND(高区,RGB(0,0,0),平衡,RGB(0,0,0));
DRAWBAND(平衡,RGB(0,0,0),低区,RGB(0,0,0));
DRAWBAND(高,RGB(120,100,0),压力,RGB(0,0,0));
DRAWBAND(压力,RGB(258,58,0),警示,RGB(0,0,0));
DRAWBAND(警示,RGB(128,58,0),突破,RGB(0,0,0));
DRAWBAND(突破,RGB(68,0,0),强势,RGB(0,0,0));
DRAWBAND(强势,RGB(38,0,0),支撑,RGB(0,0,0));
DRAWBAND(支撑,RGB(38,38,38),低,RGB(0,0,0));
STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080,NODRAW;
STICKLINE(CURRBARSCOUNT =N/2,支撑,支撑,2,0),COLOR1E1E1E;
STICKLINE(CURRBARSCOUNT =N/2,强势,强势,2,0),COLOR1E1E1E;
STICKLINE(CURRBARSCOUNT =N/2,突破,突破,2,0),COLOR1E1E1E;
STICKLINE(CURRBARSCOUNT =N/2,警示,警示,2,0),COLOR1E1E1E;
STICKLINE(CURRBARSCOUNT =N/2,压力,压力,2,0),COLOR1E1E1E;
DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF,NODRAW;
DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;
DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;
DRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF,NODRAW;
DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF,NODRAW;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--拉升'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLORFFFFFF;
第一防线:REFDATE(低,DATE),DOTLINE,COLORYELLOW,NODRAW;
第二防线:REFDATE(支撑,DATE),DOTLINE,COLORWHITE,NODRAW;
波段10日:EMA(C,10),COLOR00FFFF;
红升2:IF(波段10日 REF(波段10日,1),波段10日,DRAWNULL),COLORFF00FF;
绿降2:IF(波段10日 REF(波段10日,1),波段10日,DRAWNULL),COLORFFFF00;
操作30日:EMA(C,30),COLORYELLOW,LINETHICK4;
红升:IF(操作30日均线 REF(操作30日均线,1),操作30日均线,DRAWNULL),COLORRED,LINETHICK4;
绿降:IF(操作30日均线 REF(操作30日均线,1),操作30日均线,DRAWNULL),COLOR009300,LINETHICK4;
55日线:EMA(C,55),COLORYELLOW,NODRAW;
红升4:IF(趋势55日线 REF(趋势55日线,1),趋势55日线,DRAWNULL),COLOR0080FF;
绿降4:IF(趋势55日线 REF(趋势55日线,1),趋势55日线,DRAWNULL),COLORFFFF00,DOTLINE;
半年线:EMA(C,120),COLORYELLOW,NODRAW;
半年红升:IF(半年线 REF(半年线,1),半年线,DRAWNULL),COLORFFFFFF;
半年绿降:IF(半年线 REF(半年线,1),半年线,DRAWNULL),COLORFFFF00,DOTLINE;
年线:EMA(C,250),COLORYELLOW,NODRAW;
年红升:IF(年线 REF(年线,1),年线,DRAWNULL),COLOR8000FF;
年绿降:IF(年线 REF(年线,1),年线,DRAWNULL),COLORFFFF00,DOTLINE;
STICKLINE(C =O,HIGH,LOW,0,1),COLORRED;
STICKLINE(C =O,OPEN,CLOSE,3.1,0),COLOR000033;
STICKLINE(C =O,OPEN,CLOSE,2.7,0),COLOR000066;
STICKLINE(C =O,OPEN,CLOSE,2.1,0),COLOR000099;
STICKLINE(C =O,OPEN,CLOSE,1.5,0),COLOR0000CC;
STICKLINE(C =O,OPEN,CLOSE,0.9,0),COLOR0000FF;
STICKLINE(C =O,OPEN,CLOSE,0.3,0),COLORCC66FF;
STICKLINE(C O,HIGH,LOW,0,1),COLORCYAN;
STICKLINE(C O,OPEN,CLOSE,3.1,0),COLOR990000;
STICKLINE(CLOSE O,OPEN,CLOSE,2.7,0),COLORCC0000;
STICKLINE(CLOSE O,OPEN,CLOSE,2.1,0),COLORFF4400;
STICKLINE(CLOSE O,OPEN,CLOSE,1.5,0),COLORFF8800;
STICKLINE(CLOSE O,OPEN,CLOSE,0.9,0),COLORFFCC00;
STICKLINE(CLOSE O,OPEN,CLOSE,0.3,0),COLORCYAN;
CC:IF(CURRBARSCOUNT 18,CONST(REF(C,1)),DRAWNULL),COLOR000000,NODRAW;
止赢:1.05*CC,COLORMAGENTA,;
DRAWTEXT(ISLASTBAR,止赢,'止赢');
止损:0.97*CC,COLORYELLOW;
DRAWTEXT(ISLASTBAR,止损,'止损');
DRAWNUMBER(ISLASTBAR,C,C),COLORWHITE;
AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);
F:=100*(C-REF(C,1))/REF(C,1);
博尔:=IF(C REF(O,1)ANDF 0,1,0);
P1:=博尔;
量化:=IF(C REF(O,2)ANDF 0,1,0);
P2:=量化;
STICKLINE(P1=0ANDREF(P1,1)=1ANDP2=0ANDREF(P2,1)=1,OPEN,CLOSE,3,0),COLORFF09FF;
三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);
三日最高:=EMA((REF(H,4)+REF(H,3)+REF(H,2))/3,3),COLORWHITE;
S:=CROSS(CROSS(三日最高,C),0.6);
B0:=CROSS(CROSS(C,三日最低),0.5);
DRAWICON(B0,LOW*0.99,13);
DRAWICON(S,H*1.01,14);
附送大满贯波段监控指标公式如下:
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短线多:SMA(RSV,3,1),COLORRED;
短线空:SMA(短线多,3,1),COLORYELLOW;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
多:SMA(RSV1,5,1),COLORFF00FF;
中线空:SMA(中线多,10,1),COLORGREEN;
STICKLINE(短线多 短线空,短线多,短线空,1,0),COLORRED;
STICKLINE(短线多 =短线空,短线多,短线空,1,0),COLORYELLOW;
STICKLINE(中线多 中线空,中线多,中线空,1,0),COLORFF00FF;
STICKLINE(中线多 =中线空,中线多,中线空,1,0),COLORGREEN;
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
长强势区:=IF((EVERY(短线多 =REF(短线多,1),1)AND短线多 短线空),5,0)COLOR0000FF,LINETHICK3;
长强势区1:=IF((EVERY(中线多 =REF(中线多,1),1)AND中线多 18),5,0)COLOR0000FF,LINETHICK3;
长强势区11:=IF((EVERY(中线多 =REF(中线多,1),1)AND中线多 85),5,0)COLOR0000FF,LINETHICK3;
长强势区2:=IF((EVERY(短线多 =REF(短线多,1),1)AND短线多 短线空),5,0)COLOR0000FF,LINETHICK3;
力:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),colorred,LINETHICK2;
即将爆发线:65,COLOR00FF00;
爆发线:80,colorwhite,LINETHICK1;
爆发警戒线:50,COLOR00FF00;
线:20,colorwhite,LINETHICK2;
DRAWTEXT(CROSS(主力资金,抄底线),主力资金,''),colorwhite;
DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,''),colorwhite;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,''),colorwhite;
DRAWTEXT(CROSS(爆发线,主力资金),爆发线,''),colorwhite;
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);
RE:=CROSS(J,REF(J+0.01,1))ANDXANDJ
STICKLINE(RE,0,1,3,0),coloryellow;
CSS:=((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100);
HH:=CROSS(20,EMA(CSS,3));
CE:=REF(HH,1);
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;
HHH:=BBB-LLV(BBB,10);
SS:=(MA(HHH,2)*3+HHH*13)/16;
短线买点:=IF(SS 13,MA(SS,2),SS)/6;
短线出击:=IF(CROSS(短线买点,1)AND(短线买点 30),30,1);
II:=短线出击=30;
合成:CEANDII;
IF(合成,40,20),colormagenta;
DRAWTEXT(CROSS(主力资金,爆发线),主力资金,'始');
DRAWTEXT(主力资金 85,主力资金,'终');
通达信炒股决策是关键乾坤决策眼指标主图截图