通达信乾坤决策眼 + 超级涨停最新优化分时副图 源码

2016-10-17 18:17:00来源:本站整理浏览:963

{乾坤眼}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
 L1:=MIN(DYNAINFO(3),DYNAINFO(6));
 P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00FFFF,DOTLINE;
支撑:L1+P1*0.5/8,COLORRED,DOTLINE;
中:(支撑+阻力)/2,COLORC0C0C0,DOTLINE;
现价:CLOSE,COLORWHITE,LINETHICK1;
 MR:=C<支撑 AND CROSS(C,REF(C,2));
 MC:=C>阻力 AND CROSS(REF(C,2),C);
均价:=SUM(V*C,0)/SUM(V,0),COLOR004080,DOTLINE;
 DRAWTEXT(CURRBARSCOUNT=1,阻力,"--------阻力"),COLOR00FFFF;
 DRAWTEXT(CURRBARSCOUNT=1,支撑,"--------支撑"),COLORA2A2FF;
 DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,"--------中"),COLORWHITE;
 DRAWTEXT(CURRBARSCOUNT=4,均价,"--------均"),COLORFFFFFF,LINETHICK2;

{---------------------------------}
 DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,"★底"),COLORYELLOW;
 DRAWTEXT(CROSS(现价,阻力),阻力-(支撑-中)/5,"★顶"),COLORMAGENTA;


 {------------新图---------------------}
Q:=250;
高点:=HHV(C,Q);
低点:=LLV(C,Q);
最高:=CONST(高点),NODRAW;
最低:=CONST(低点),NODRAW;
轴差:=最高-最低;
中价轴:=(最高+最低)/2;
 HL3:=(100-0)/2*1.3;
 HL4:=(100-0)/1*1.3;
中间价轴:=中;
平安轴:=中;
BGTYU:=1;
 GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
 VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))));
起动线:=EXPMA((CLOSE/VBNH),20)*1,COLORYELLOW,POINTDOT;
主力线:=EXPMA((CLOSE/VBNH),60)*1,COLORMAGENTA,LINETHICK2;
散户线:=EXPMA((CLOSE/VBNH),120)*1,COLORGREEN,LINETHICK2;
限制起动线:=起动线*中间价轴;
限制主力线:=主力线*中间价轴;
限制散户线:=散户线*中间价轴;
主散MIN:=MIN(限制主力线,限制散户线);
 {分时转强:=主散MIN>金龙线 AND ((LONGCROSS(限制主力线,金龙线,2) OR CROSS(限制主力线,限制散户线)) OR (限制主力线>限制散户线 AND LONGCROSS(牵引线,金龙线,2)));}
 DRAWBAND(限制主力线,RGB(250,125,0),限制散户线,RGB(0,100,250));
 STICKLINE(起动线<主力线,限制起动线,限制主力线,1.0,0),COLOR00FF00;
 STICKLINE(起动线>主力线,限制起动线,限制主力线,1.0,0),COLORFFFFFF;
 STICKLINE(VOL>EMA(VOL,60) AND 起动线>主力线,限制起动线,限制主力线,1,0),COLORFF00FF;
 STICKLINE(VOL>EMA(VOL,30) AND 起动线>主力线 AND 起动线>1.01 AND 起动线>REF(起动线,1),限制起动线,限制主力线,1,0),COLOR00FFFF;


 {乾坤眼划线}
STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORFFFF00;
 STICKLINE(MC=1,阻力,中,2,0),COLORFFFF00;
 DRAWICON(MC=1 OR CROSS(阻力,现价),中,35);
 STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00F0F0;
 DRAWICON(MR=1 OR CROSS(现价,支撑),中,34);


 {---------分时均线-------------------}
W:=BARSLAST(DAY-REF(DAY,1))+1;
 FSJX:=SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLORYELLOW;
 FSJX1:=IF(FSJX<REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLORGREEN;


 {-------鬼鬼分时-------};
VARG1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
 VARG2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
 VARG3:=SMA(VARG2,2,1);
天:=100+(-ABS(VARG1));
下:=SMA(VARG3,2,1);
无:=ABS(VARG1);
买:=CROSS(下,无);
卖:=CROSS(下,天);
DRAWICON(买,C,25);
 DRAWICON(卖,C,26);

{财神必买}
VAR01:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR01-REF(VAR01,1))/REF(VAR01,1)*1000;
 JJ:=DYNAINFO(11);
 P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
 BTJ11:=(C-JJ)/JJ<-0.03;
 BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
 BTJ3:=CROSS(财,神) AND 财<-0.3;
 BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
 {必买}
DRAWICON(BTJ811 AND TIME>10,C,24);
 {买底}
BTJ1:=(C-JJ)/JJ<-0.005;
 BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
 DRAWICON(BTJ81 AND TIME>10,L*0.999,1);{买底};
 {必卖}
STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;
 STJ02:=控盘>0;
 STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND 财>1.618;
 STJ1:=(C-JJ)/JJ>0.005;
 STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
 STJ82:=FILTER(STJ02 AND STJ32 ,13);
 STJ83:=STJ81 AND STJ82;
 DRAWICON(STJ83 AND TIME>10,C*1.005,27);
 {可能顶}
DRAWICON(STJ81,H*1.01,2);

{分时心理}
PSY:=COUNT(CLOSE>REF(CLOSE,1),13)/13*100,COLOR00FFFF;
 PA:=MA(PSY,3),COLOR0000FF;
 TJ1:=FILTER((C-JJ)/JJ<-0.04 AND PA<16,13);
 {红球---红买}
DRAWICON(TJ1,C,13);
 TJ2:=FILTER((C-JJ)/JJ>0.05 AND PA>60,14);
 {蓝球---绿卖}
DRAWICON(TJ2,C,14);


 {-------抓涨停-------}
获利盘:=100*WINNER(CLOSE)<0.15;
 DRAWICON(获利盘,C,9);{钱袋};

{波段}
VAR7:=SMA(C,6.18,1);

[1] [2] [3]  下一页

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式