当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:仓位增减,佛手向上,分时主图

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、仓位增减

{仓位增减}

上线:=SMA(C,6.5,1);  
下线:=SMA(C,13.5,1);  
上线1:=SMA(C,3,1);  
下线1:=SMA(C,10,1);  
STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),COLORRED,LINETHICK2;  
STICKLINE(下线>上线,上线,下线,2.5,0),LINETHICK2,COLORBLUE;  
DRAWTEXT( CROSS(上线,下线),LOW *0.96,'全仓' ),COLORRED;  
DRAWTEXT(CROSS(下线1,上线1),H*1.02,'清仓'),COLORBLUE;  
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;  
UPR:=BBI+3*STD(BBI,13);  
DWN:=BBI-3*STD(BBI,13);  
安全线:MA(CLOSE,60);  
LC:=REF(CLOSE,1);  
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;  
DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'减仓') ,LINETHICK2,COLORBLUE;  
 
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; 
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'加仓'),COLORRED;
 
A7:=(2*C+H+L)/4;  
操作:=MA(A7,5);  
操作1:=MA(A7,5)*1.03;  
操作2:=MA(A7,5)*0.97;  
VAR1:=LLV(A7,21);  
VAR2:=HHV(A7,21);  
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);  
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);  
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND  COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'买进') ;  
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND  COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND  REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND  OPEN>REF(CLOSE,1),1,0),LOW*0.98,'买进') ;  
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;  
DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08  AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'抄底');



2、佛手向上,捉妖神器

核心投资理念:
贪婪是投资的天敌;恐惧是交易的通病( 顶尖财经 股票学院: http://58188.com )
耐心是获利的起点;纪律是免死的金牌
 
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0>=0,XYS0,0,2,0),COLORRED;
STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN;
WWW58188COM:=AMOUNT/VOL/100;
PJGJ:=AMOUNT/VOL/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
ZZX:0,COLORWHITE;
STICKLINE(XYSHSL>6.1 AND CYS13>5,2,0,2,0),COLORGREEN;
STICKLINE(XYSHSL>3.8 AND CYS13>5,1.5,0,2,0),COLORYELLOW;
STICKLINE(XYSHSL>2.1 AND CYS13>5,1,0,2,0),COLORCYAN;
STICKLINE(XYSHSL>1.8 AND CYS13>5,0.5,0,2,0),COLORBLUE;
XYS1:MA(XYS0,2);
XYS2:MA(XYS0,1);



3、分时主图,强大实用,手机电脑端可用

{分时主图手机}
 
MA30:=EMA(CLOSE,30); 
强弱:=EMA(CLOSE,900); 
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6)); 
P1:=H1-L1;
阻力:L1+P1*7/8,COLORLIMAGENTA,DOTLINE; 
支撑:L1+P1*0.5/8,COLORCYAN,DOTLINE;
中:(支撑+阻力)/2,COLORBLUE,POINTDOT; 
现价:=CLOSE,COLORWHITE,LINETHICK3;
{DRAWTEXT(ISLASTBAR AND 现价,现价,STRCAT('-',CON2STR(现价,2))),COLORYELLOW;}
MZ0:=(BARSLAST(((HOUR=9) AND (MINUTE=31)))+1);
上穿分时:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIRED;
底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIGREEN;
STICKLINE(TIME=931 OR TIME=1000,上穿分时,底支,0,-1),COLORLIBLUE;
分时上突:=CROSS(C,上穿分时);上突:=C<上穿分时 AND 上穿分时>底支;
股价支撑线:=MA(CLOSE,20);
VAR106:=BARSCOUNT(CLOSE);
VAR107:=MAX(DYNAINFO(3),DYNAINFO(5));
VAR108:=MIN(DYNAINFO(3),DYNAINFO(6));
VAR109:=VAR107-VAR108;
VAR110:=VAR108+VAR109*7/8;
VAR111:=VAR108+VAR109*0.5/8;
DRAWICON(LONGCROSS(VAR111,CLOSE,2),CLOSE,1);
DRAWICON(LONGCROSS(CLOSE,VAR110,2),CLOSE,2);
双轨线上强势:0,COLORRED,NODRAW;
双轨线下弱势:0,NODRAW,COLORFF9900;
把握疯牛卖点:0,NODRAW,COLOR00FF00;
HH:=(H+C)/2;
LL:=(L+O)/2;
三日均高:=(H+REF(H,2)+REF(H,3))/3;
三日收盘:=(C+REF(C,2)+REF(C,3))/3;
强势线:EMA((三日均高+三日收盘)/2,7),COLORRED,LINETHICK2;
支撑线:EMA((LL+REF(LL,2)+REF(LL,3))/3,7),COLOR00FF00,LINETHICK2;
IF(强势线>REF(强势线,1),强势线,DRAWNULL),LINETHICK2,COLORRED;
IF(强势线<REF(强势线,1),强势线,DRAWNULL),LINETHICK2,COLORGREEN;
IF(支撑线>REF(支撑线,1)*0.997,支撑线,DRAWNULL),LINETHICK4,COLORRED;
IF(支撑线<REF(支撑线,1)*0.997,支撑线,DRAWNULL),LINETHICK4,COLORGREEN;
量比:=DYNAINFO(17),NODRAW;
涨幅:=(CLOSE/DYNAINFO(3))>=1.005 AND (CLOSE/DYNAINFO(3))<=1.04;
涨幅1:=(CLOSE/DYNAINFO(3))>=1.005 AND (CLOSE/DYNAINFO(3))>=1.05;
收盘涨幅:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
A1:=NAMELIKE('ST');
A2:=NAMELIKE('*');
A3:=NAMELIKE('S');
去除ST:=(A1+A2+A3)=0;
冲高减仓:=C>=HHV(H,60) AND 涨幅1 AND 量比<2 AND CLOSE/DYNAINFO(3)<9 AND 去除ST ,NODRAW;
VAR3:=REF(CLOSE,1);
VAR4:=(SMA(MAX(CLOSE-VAR3,0),6,1))/(SMA(ABS(CLOSE-VAR3),6,1))*100;
追涨:=CROSS(85,VAR4) AND 涨幅;
高抛:=CROSS(VAR4,80) AND 涨幅1 AND 量比<2;
DRAWTEXT(追涨,L*0.985,'强势'),COLORYELLOW;
DRAWTEXT(COUNT(冲高减仓,3)>=1 AND 收盘涨幅<2 AND C>强势线*1.12,H*1.01,'卖'),COLORGREEN;
上穿双轨:=(CROSS(C,强势线) AND CROSS(C,支撑线)) OR (支撑线>REF(支撑线,1) AND L<支撑线 AND C>强势线) OR REF(CROSS(C,支撑线),1)=1 AND CROSS(C,强势线);
双穿卖出:=(CROSS(强势线,C) AND CROSS(支撑线,C)) OR ( (C<支撑线 AND H>强势线) OR (REF(H,1)>强势线 AND CROSS(支撑线,C)));
STICKLINE(上穿双轨 ,OPEN,CLOSE,3.3,0),COLOR0055FF;
STICKLINE(上穿双轨,OPEN,CLOSE,3.3,0),COLOR0077FF;
STICKLINE(上穿双轨 ,OPEN,CLOSE,3,0),COLOR0099FF;
STICKLINE(上穿双轨,OPEN,CLOSE,2.2,0),COLOR00BBFF;
STICKLINE(上穿双轨,OPEN,CLOSE,1.5,0),COLOR00DDFF;
STICKLINE(上穿双轨,OPEN,CLOSE,0.4,0),COLOR00FFFF;
{STICKLINE(双穿卖出,OPEN,CLOSE,3.3,0),COLOR00FF00;};
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
卖一:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
量价:=(VOL/CLOSE)/3;
A22:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
A33:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);
A66:=A22+A33;
DD1:=1;
比:=A22/A33;
AAA1:=STRCAT(STRCAT('买= ',CON2STR((100*A22)/A66,0)),'%');
AAA2:=STRCAT(STRCAT('卖= ',CON2STR((100*A33)/A66,0)),'%');
AAA3:=STRCAT(STRCAT('差= ',CON2STR((100*(A22-A33))/A66,0)),'%');
DRAWTEXT_FIX(DD1=1,0.4,0.7,0,AAA1),COLORRED;
DRAWTEXT_FIX(DD1=1,0.6,0.7,0,AAA2),COLORGREEN;
DRAWTEXT_FIX(DD1=1,0.8,0.7,0,AAA3),COLOR00FFFF;
DRAWTEXT_FIX(比>2,0,0.40,0,'涨'),COLORCYAN;
DRAWTEXT_FIX(比>2,0,0.48,0,'停'),COLORMAGENTA;
DRAWTEXT_FIX(比>2,0,0.56,0,'板'),COLORRED;
中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;
DRAWTEXT(比<1.1,(DYNAINFO(5)+DYNAINFO(6))/2,'。'),COLORGREEN;
DRAWTEXT(比>1.5,(DYNAINFO(5)+DYNAINFO(6))/2,'。'),COLORCYAN;
DRAWTEXT(比>2,(DYNAINFO(5)+DYNAINFO(6))/2,'。'),COLORMAGENTA;
DRAWTEXT(比>2.5,(DYNAINFO(5)+DYNAINFO(6))/2,'。'),COLORRED;
DRAWTEXT((比>1.1 AND 中期线<5),(DYNAINFO(5)+DYNAINFO(6))/2,'。'),COLORWHITE;
DRAWTEXT((比<1.1 AND 中期线>98.0),(DYNAINFO(5)+DYNAINFO(6))/2,'。'),COLORWHITE;
DRAWTEXT((比>1.1 AND 中期线<5),C,'买'),COLORYELLOW;
DRAWTEXT((比<1.1 AND 中期线>98.0),C,'卖'),COLORGREEN;


电脑版:
 

MA30:=EMA(CLOSE,30);
强弱:=EMA(CLOSE,900);
{-------------------------------------------------------------------------------------}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORLIMAGENTA,DOTLINE;
支撑:L1+P1*0.5/8,COLORCYAN,DOTLINE;
中:(支撑+阻力)/2,COLORLIGRAY,POINTDOT;
均价:=SUM(V*C,0)/SUM(V,0),COLORYELLOW,DOTLINE;
现价:=CLOSE,COLORWHITE,LINETHICK1;
DRAWTEXT(ISLASTBAR AND 现价,现价,STRCAT('←',CON2STR(现价,2))),COLORYELLOW;
STICKLINE(CROSS(支撑,现价),支撑,中,0,-1),COLORYELLOW;
STICKLINE(CROSS(现价,阻力),阻力,中,0,-1),COLORGREEN;
DRAWTEXT(LONGCROSS(支撑,现价,2),C*0.9982,' 买'),COLORYELLOW;
DRAWTEXT(LONGCROSS(现价,阻力,2),C*1.0018,' 卖'),COLORCYAN;
STICKLINE(C<支撑,支撑,C,1,0),COLORYELLOW;
DRAWICON(CROSS(支撑,现价),(支撑-中)/5+支撑,26);
 
{DRAWICON(CROSS(现价,阻力),阻力-(支撑-中)/5,15);}
DRAWTEXT(CURRBARSCOUNT=8,阻力+0.003,'顶'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=8,支撑-0.003,'底'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=8,(支撑+阻力)/2,'中'),COLORLIRED;
量价:=(VOL/CLOSE)/3;
A2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
A3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);
A6:=A2+A3;DD1:=1;比:=A2/A3;
AAA1:=STRCAT(STRCAT('买= ',CON2STR((100*A2)/A6,0)),'%');
AAA2:=STRCAT(STRCAT('卖= ',CON2STR((100*A3)/A6,0)),'%');
AAA3:=STRCAT(STRCAT('差= ',CON2STR((100*(A2-A3))/A6,0)),'%');
中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;
 
DRAWTEXT(比<1.1,中,'O'),COLORGREEN;
DRAWTEXT(比>1.5,中,'O'),COLORCYAN;
DRAWTEXT(比>2,中,'O'),COLORMAGENTA;
DRAWTEXT(比>2.5,中,'O'),COLORRED;
DRAWTEXT((比>1.1 AND 中期线<5),中,'O'),COLORWHITE;
DRAWTEXT((比<1.1 AND 中期线>98.0),中,'O'),COLORWHITE;
DRAWTEXT((比>1.1 AND 中期线<5),C,'-买'),COLORYELLOW;
DRAWTEXT((比<1.1 AND 中期线>98.0),C,'-卖'),COLORYELLOW;
{-------------------------------------------------------------------------------------}
均价1:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;
TT:=BARSCOUNT(C);均:=MA(C,TT);
上均线:=均+2*STD(C,3);下均线:=均-2*STD(C,3);
时长:=TIME>93000;涨幅:=C/REF(C,1)>1.02;跌幅:=C/REF(C,1)<0.98;
横盘:=((HHV(C,TT)-LLV(C,TT))/C)<0.05;YY:=SMA(VOL,30,1);
放量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.95;
涨跌幅:=涨幅 OR 跌幅;
横涨1:=涨跌幅=0 AND 横盘  AND 放量 AND CROSS(均价1,均);
DRAWTEXT(FILTER(横涨1,10),均价1,'--突破'),COLORCYAN;
DRAWICON(FILTER(横涨1,10),均价1,1);
 
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
主力:=EXPMA(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120);
底:=1;1.02,NODRAW;高:=1.03;
AA:=主力>大户 AND 主力>1.003 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60);
DRAWICON(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C,25);
DRAWTEXT(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C*0.999,'-主力'),COLORYELLOW;
DRAWICON(CROSS(主力,1.02),C,26);
DRAWTEXT(CROSS(主力,1.02),C*0.999,'-拉升'),COLORCYAN;
DRAWICON(CROSS(主力,1.04),C,24);
DRAWTEXT(CROSS(主力,1.04),C*0.999,'-冲涨停'),COLORLIMAGENTA;
DRAWICON(CROSS(散户,主力),C,6);
DRAWTEXT(CROSS(散户,主力),C*0.9995,'-小心'),COLORGREEN;
DRAWICON(CROSS(散户,大户),C,6);
DRAWTEXT(CROSS(散户,大户),C*0.9995,'-走弱'),COLORGREEN;
 
{-------------------------------------------------------------------------------------}
现手买:BUYVOL*DYNAINFO(7)*100/10000 COLOR0000FF,NODRAW;
现手卖:SELLVOL*DYNAINFO(7)*100/10000 COLOR00FF00,NODRAW;
合:=ABS(现手买)+ABS(现手卖)COLOR80FFFF,NODRAW;
差:=ABS(现手买)-ABS(现手卖)COLOR80FFFF,NODRAW;
MPB1:=ABS(现手买)/合*100;
MPB2:=ABS(现手卖)/合*100;
TESTSKIP(NOT(现手买 OR 现手卖 OR 合 OR 差 OR MPB1 OR MPB2)!=0);
DRAWRECTREL(595,1000,795,940,RGB(0,128,0));
DRAWRECTREL(595,995,795,945,RGB(0,148,0));
DRAWRECTREL(595,990,795,950,RGB(0,168,0));
DRAWRECTREL(595,985,795,955,RGB(0,188,0));
DRAWRECTREL(595,980,795,960,RGB(0,208,0));
DRAWRECTREL(595,975,795,965,RGB(0,228,0));
DRAWRECTREL(595,970,795,970,RGB(0,248,0));
DRAWRECTREL(595,1000,595+现手买*210/合,940,RGB(128,0,0));
DRAWRECTREL(595,995,595+现手买*210/合,945,RGB(148,0,0));
DRAWRECTREL(595,990,595+现手买*210/合,950,RGB(168,0,0));
DRAWRECTREL(595,985,595+现手买*210/合,955,RGB(188,0,0));
DRAWRECTREL(595,980,595+现手买*210/合,960,RGB(208,0,0));
DRAWRECTREL(595,975,595+现手买*210/合,965,RGB(228,0,0));
DRAWRECTREL(595,970,595+现手买*210/合,970,RGB(248,0,0));
DRAWRECTREL(595+现手买*210/合,940,595+现手买*210/合,1000,RGB(128,0,0));
DRAWRECTREL(795,940,795,1000,RGB(0,0.0,10));
DRAWRECTREL(594.8,939.8,594.8,1000,RGB(0,0,10));
DRAWRECTREL(594.8,939.8,594.8,939.8,RGB(0,0,10));
DRAWRECTREL(594.8,1000,594.8,1000,RGB(0,0,10));
DRAWTEXT_FIX(1,0.560,0.89,0,STRCAT(STRCAT('',CON2STR(现手买,1)),'万')),COLORRED;
DRAWTEXT_FIX(1,0.800,0.89,0,STRCAT(STRCAT('',CON2STR(现手卖,1)),'万')),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)>0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)<0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)=0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLOR80FFFF;
DRAWTEXT_FIX(1,0.800,0.98,0,STRCAT(STRCAT(' ',CON2STR(MPB2,1)),'%')),COLORGREEN;
DRAWTEXT_FIX(1,0.560,0.98,0,STRCAT(STRCAT('',CON2STR(MPB1,1)),'%')),COLORRED;
{-------------------------------------------------------------------------------------}
D1:=YEAR AND MONTH AND DAY;
AA1:=STRCAT(CON2STR(YEAR,0),'年');
AA2:=STRCAT(CON2STR(MONTH,0),'月');
AA3:=STRCAT(CON2STR(DAY,0),'日');
AA4:=STRCAT('星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));
AAC:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'');
DRAWTEXT_FIX(D1,0.888,0.001,0,AAC),COLORLIGRAY;
{-------------------------------------------------------------------------------------}
MZ0:=(BARSLAST(((HOUR=9) AND (MINUTE=31)))+1);
上穿分时:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIRED;
底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIGREEN;
STICKLINE(TIME=931 OR TIME=1000,上穿分时,底支,0,-1),COLORLIBLUE;
分时上突:=CROSS(C,上穿分时);
上突:=C<上穿分时 AND 上穿分时>底支;
 
股价支撑线:=MA(CLOSE,20);
底价线:=股价支撑线-2*STD(CLOSE,20),COLORMAGENTA,LINETHICK2;
 
VAR106:=BARSCOUNT(CLOSE);
VAR107:=MAX(DYNAINFO(3),DYNAINFO(5));
VAR108:=MIN(DYNAINFO(3),DYNAINFO(6));
VAR109:=VAR107-VAR108;
VAR110:=VAR108+VAR109*7/8;
VAR111:=VAR108+VAR109*0.5/8;
DRAWICON(LONGCROSS(VAR111,CLOSE,2),CLOSE,1);
DRAWICON(LONGCROSS(CLOSE,VAR110,2),CLOSE,2);

上一篇:通达信源码:八九不离十,波段共振,旗手-波段王

下一篇:通达信源码:坐拥天下,自用VOL,逃顶抄底