设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

通达信一月一箱体主图指标公式是什么?

2016-5-4 13:07:47 股票入门 http://rumen.southmoney.com

通达信一月一箱体主图指标公式是什么?附:通达信看乾坤决策眼主图公式源码  南方财富网小编为您提供


【通达信一月一箱体主图指标公式】

一个月20天左右交易日,每20天的最高价做箱顶 最低价做箱底。半年120个交易日共6个箱体。
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">

HH:=FINDHIGH(H,0,20,1);
LL:=FINDLOW(L,0,20,1);
HH1:=FINDHIGH(H,20,20,1);
LL1:=FINDLOW(L,20,20,1);
HH2:=FINDHIGH(H,40,20,1);
LL2:=FINDLOW(L,40,20,1);
HH3:=FINDHIGH(H,60,20,1);
LL3:=FINDLOW(L,60,20,1);
HH4:=FINDHIGH(H,80,20,1);
LL4:=FINDLOW(L,80,20,1);
HH5:=FINDHIGH(H,100,20,1);
LL5:=FINDLOW(L,100,20,1);
STICKLINE(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,CONST(HH),CONST(HH),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,CONST(LL),CONST(LL),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT=20 OR CURRBARSCOUNT=1 ,CONST(HH),CONST(LL),0,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21 ,CONST(HH1),CONST(HH1),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21,CONST(LL1),CONST(LL1),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT=40 OR CURRBARSCOUNT=21 ,CONST(HH1),CONST(LL1),0,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41,CONST(HH2),CONST(HH2),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41,CONST(LL2),CONST(LL2),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT=60 OR CURRBARSCOUNT=41,CONST(HH2),CONST(LL2),0,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61,CONST(HH3),CONST(HH3),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61,CONST(LL3),CONST(LL3),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT=80 OR CURRBARSCOUNT=61,CONST(HH3),CONST(LL3),0,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81,CONST(HH4),CONST(HH4),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81,CONST(LL4),CONST(LL4),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT=100 OR CURRBARSCOUNT=81,CONST(HH4),CONST(LL4),0,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101,CONST(HH5),CONST(HH5),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101,CONST(LL5),CONST(LL5),8,0)COLORYELLOW;
STICKLINE(CURRBARSCOUNT=120 OR CURRBARSCOUNT=101,CONST(HH5),CONST(LL5),0,0)COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=20,0.9,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=20,0.9,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=40,0.7,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH1,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=40,0.7,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL1,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=60,0.55,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH2,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=60,0.55,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL2,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=80,0.38,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH3,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=80,0.38,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL3,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=100,0.22,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH4,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=100,0.22,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL4,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=120,0.101,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH5,2)),'元'))COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=120,0.101,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL5,2)),'元'))COLORYELLOW;

附:【通达信看乾坤决策眼主图公式源码】

看乾坤决策眼指标说明:

1.股价高于平均线,视为强势;股价低于平均线,视为弱势;

2.平均线向上涨升,具有助涨力道;平均线向下跌降,具有助跌力道;

3.二条以上平均线向上交叉时,买进;

4.二条以上平均线向下交叉时,卖出

5.移动平均线的信号经常落后股价,若以EXPMA 、VMA 辅助,可以改善。

 

{☆精确风险}

 {【参数定义】}

显示仪表盘1:=1;

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;{//变异KD风险系数}

TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}

TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//变异KD乖离系数}

TYCFX:=TFXXS+TGLXS;{//变异KD预测风险}

乖离系数: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)<=范围高A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;

{=======================仪表盘=========================}

主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);

初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;

底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;

探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;

观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);

有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);

放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);

DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,'观望',0)COLOR00BF00;

DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;

DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,'主浪回调',0)COLORFF8080;

DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,'主浪深调',0)COLOR009500;

DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF;

DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,'底部反弹',0)COLORFFFF00;

DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,'探底阶段',0);

DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,'观望',0)COLORFFFF00;

DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;

DRAWGBK(显示仪表盘1=1 AND 放弃,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),LINETHICK1,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>=200 AND H>=顶点,O,C,2,0),COLORBLUE;

STICKLINE(CCI<=100 AND L<=低点,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;

{今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;}

波段10日:EMA(C,10),COLOR00FFFF,LINETHICK1;

红升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,LINETHICK1,NODRAW;

红升4:IF(趋势55日线>REF(趋势55日线,1),趋势55日线,DRAWNULL),COLOR0080FF,LINETHICK1;

绿降4:IF(趋势55日线<REF(趋势55日线,1),趋势55日线,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;

年线:EMA(C,120),COLORYELLOW,LINETHICK1,NODRAW;

半年红升:IF(半年线>REF(半年线,1),半年线,DRAWNULL),COLORFFFFFF,LINETHICK1;

半年绿降:IF(半年线<REF(半年线,1),半年线,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;

年线:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;

年红升:IF(年线>REF(年线,1),年线,DRAWNULL),COLOR8000FF,LINETHICK1;

年绿降:IF(年线<REF(年线,1),年线,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;

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,LINETHICK1;

DRAWTEXT(ISLASTBAR,止赢,'止赢'),LINETHICK1;

止损:0.97*CC,COLORYELLOW,LINETHICK1;

DRAWTEXT(ISLASTBAR,止损,'止损'),LINETHICK1;

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) AND F<0,1,0);

P1:=博尔;

量化:=IF(C<REF(O,2) AND F<0,1,0);

P2:=量化;

STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(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); 

更多通达信指标公式相关资讯请关注南方财富网

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。