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

通达信源码:金波段,主力资金,黄金分割坐标线

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

1、金波段,有所属板块

 {金波段}

DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORRED;
DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORRED;
DRAWTEXT_FIX(1,0.005,0.06,0,'所属概念:'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.06,0.06,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.005,0.12,0,'所属板块:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.12,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.11,0.12,0,HYBLOCK),COLORYELLOW;
YSTB:=STRCAT(CON2STR(FINANCE(44)/1,2),'%');
LRTB:=STRCAT(CON2STR(FINANCE(43)/1,2),'%');
DRAWTEXT_FIX(1,0.7,0,0,'营收同比:'),COLORWHITE; 
DRAWTEXT_FIX(1,0.76,0,0,YSTB),COLORWHITE; 
DRAWTEXT_FIX(1,0.84,0,0,'利润同比:'),COLORWHITE; 
DRAWTEXT_FIX(1,0.9,0,0,LRTB),COLORWHITE;
净资收益率:=(FINANCE(33)/FINANCE(34)*100);
主营利润率:=(FINANCE(23)/FINANCE(20)*100);
主营业增长率:=FINANCE(44);
每股净资产:=CONST(FINANCE(34));
每股收益:=CONST(FINANCE(38));
净利润增长率:=FINANCE(43);
市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));
现金负债比:=(FINANCE(25)/FINANCE(15));
每股未分配:=CONST(FINANCE(32));
每股公积金:=CONST(FINANCE(18));
SY01:=净资收益率>3;
SY02:=净资收益率>0.01 AND 净资收益率<=3;
SY03:=主营利润率>2;
SY04:=主营利润率>0;
SY05:=主营业增长率>1;
SY06:=主营业增长率>0;
SY07:=净利润增长率>2;
SY08:=净利润增长率>0.2;
SY09:=每股收益>0.01;
SY10:= 每股收益>0.001;
SY11:=每股净资产>2;
SY12:=每股净资产>0.01;
SY13:=每股未分配>0.5;
SY14:=每股未分配>0.001;
SY15:=每股公积金>0.5;
SY16:=每股公积金>0.002;
SY17:=每股未分配>=2 AND 每股公积金>=2;
SY18:=每股未分配<2 OR 每股公积金<2;
优秀:=SY01 AND SY03 AND SY05 AND SY07 AND SY09 AND SY11
  AND SY13 AND SY15;
较好:=SY02 AND SY04 AND SY06 AND SY08 AND SY10 AND SY12
  AND SY14 AND SY16;
一般:=NOT(优秀) AND NOT(较好);
DRAWTEXT_FIX(优秀 AND 较好=0,0.7,0.05,0,'综合评估基本面:优秀!'),COLORMAGENTA;
DRAWTEXT_FIX(较好,0.7,0.05,0,'综合评估基本面:较好!'),COLORRED;
DRAWTEXT_FIX(一般,0.7,0.05,0,'综合评估基本面:一般!'),COLORGREEN;
DRAWTEXT_FIX(SY17,0.84,0.05,0,'是否具备高送转潜力:是!'),COLORMAGENTA;
DRAWTEXT_FIX(SY18,0.84,0.05,0,'是否具备高送转潜力:否!'),COLORGREEN;
MA5:MA(CLOSE,5);
 
MA10:MA(CLOSE,10);
 
MA20:MA(CLOSE,20);
 
MA60:MA(CLOSE,60);
 
BB:=REF(INDEXC,1)<REF(INDEXC,2) AND REF(C,2)*0.95>=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05 
AND REF(C,1)<REF(O,1) AND C>O AND C/O>=1.05 AND C>REF(O,1) 
AND REF(VOL,1)<REF(VOL,2);
 
STICKLINE(BB,O,C,4,0),COLORRED;
 
STICKLINE(BB,O,H,0,0),COLORRED;
 
STICKLINE(BB,L,C,0,0),COLORRED;
 
DRAWTEXT(BB,L*0.95,'追!'),COLORYELLOW;
 
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);
 
VAR2:=8; 
 
CC:=CROSS(VAR1,VAR2); 
 
DRAWTEXT(CC,L*0.95,'买!'),COLORMAGENTA;
 
TYP:=(H+L+C)/3;
 
TYP1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))<=20 AND REF(MA(C,21),1)<MA(C,21);
 
TJ1:=O<MAX(REF(C,1),REF(O,1));
TJ2:=REF(C,1)>=MA(C,21) AND L/MA(C,21)>=1.015 AND MA(C,144)>MA(C,250) AND V<MA(V,10) AND MIN(REF(V,2),REF(V,1))>V;
 
TJ3:=REF(MA(C,250),90)<REF(MA(C,144),90) AND MA(C,144)>MA(C,250) AND O>MA(C,250);
 
TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));
 
TOUJI:=TYP1 AND TJ1 AND TJ2 AND REF(C,2)/REF(O,2)<1.06 AND C/O<=1.05 AND HHV(H,5)/LLV(L,30)>=1.65 AND REF(H,5)/REF(L,1)>=1.15 AND REF(C,1)/REF(O,1)<=0.995 AND (L<REF(L,2) OR (REF(H,2)-REF(L,2))/(H-L)>=2) AND O/REF(L,1)<=1.04
OR TYP1 AND TJ1 AND O/REF(L,1)<1.05 AND REF(L,1)/REF(O,4)<=0.85 AND REF(C,1)/REF(O,1)<=1.03 AND O<REF(C,1) AND HHV(H,5)/LLV(L,35)>1.35 AND V<MA(V,10);
 
TOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)<1.05 AND O/LLV(L,3)<1.1 AND REF(C,1)/REF(0,1)<=1.05 AND HHV(H,4)/LLV(L,16)>=1.35 AND REF(O,4)/REF(C,2)>=1.08 AND REF(C,2)/REF(O,2)<=0.995 AND (REF(L,2)<REF(L,3) OR (REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1))>=2) AND L<MIN(REF(C,1),REF(O,1))
OR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)>=1.3 AND REF(C,5)<REF(H,5) AND REF(C,4)<REF(C,5) AND REF(C,3)<REF(C,4) AND REF(C,2)<REF(C,3) AND REF(C,1)<REF(C,2) AND L<REF(L,1) AND MA5/O<1.1;
 
DATOUJI:=TYP1 AND TJ3 AND O<REF(C,5) AND O<=REF(C,1) AND REF(H,10)/O>=1.17 AND HHV(H,10)/LLV(L,30)>1.4 AND (MA(V,10)/HHV(V,10)>0.5 AND V/HHV(V,10)>0.2 AND V/HHV(V,10)<0.4 OR REF(V,3)>REF(V,2) AND REF(V,2)>REF(V,1)) AND REF(C,1)/REF(C,2)<=1.02;
 
DATOUJI1:=TYP1 AND TJ3 AND O<REF(L,6) AND O<MIN(REF(C,5)AND REF(O,5),5);
 
DRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI OR DATOUJI1,L*0.98,'△'),COLORYELLOW;
 
DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)>MA(VOL,10) AND L<MA(C,20) AND C>=MA(C,20),L*0.98,'量托'),COLORWHITE;
 
卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);
 
DRAWTEXT(卖出,H*1.05,'短卖'),COLORGREEN;
 
C3:=REF(C,1);
 
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
 
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
 
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
 
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
 
W1:=C=HHV(C,20); 
 
W2:=BARSLAST(W1); 
 
W3:=IF(W2>0,REF(C,W2),REF(C,W2)); 
 
W4:=CROSS(C,REF(W3,1)); 
 
突破盘整:=W4 AND COUNT(W4,5)=1; 
 
DRAWICON(突破盘整,L-0.10,1);
 
红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
 
绿轨道:=MA(MA(CLOSE,3),3);
 
上升:IF(红轨道>=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;
 
AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);
 
加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);
 
波段底:=(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));
 
DRAWICON(加仓,L*0.97,7);
 
DRAWICON(CROSS(波段底,3),L*0.97,1);
 
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;
MTM:=C-REF(C,1);
 
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
 
CB:=EMA(X,13);
 
卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
 
DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;
 
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
 
DRAWTEXT(FILTER(买=1,5),LOW-0.2,'买'),COLORRED;
 
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
 
K:=SMA(RSV,3,1);
 
D:=SMA(K,3,1);
 
J:=3*K-2*D;
 
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
 
注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
 
DRAWTEXT(注意 AND 卖!=1,HIGH*1.02,'减'),COLORFFFF50;
 
加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
 
DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买!=1,3),LOW-0.1,'加'),COLOR0080FF;
 
MA18:=MA(C,18);
 
跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);
 
DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;
 
买价:=((C-REF(MA5,1))/5+MA5)*1.004; 
 
买条件:=CROSS(C,买价) AND 买价>REF(买价,1); 
 
醉白K买进:IF(买条件,L,H),COLORWHITE,POINTDOT; 
 
STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK2; 
 
STICKLINE(买条件,O,C,4,1),COLORWHITE,LINETHICK2; 
 
加码价:=((C-REF(MA10,1))/20+MA10)*1.004; 
 
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1); 
 
醉黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT; 
 
STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2; 
 
STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;
 
 
DRAWTEXT_FIX(1,0.0,0.15,0,'在上升过程中, 白线出现在红线下方明显分开则卖出!'),COLORMAGENTA;




2、主力资金 黑马启动 非妖即顶,配合使用

主力资金另送黑马启动和非妖即顶

 
这个公式,自己用了多年,感觉比以往用的都要好很多,没有未来函数,拿来与大家分享
另外提供了黑马启动和非妖即顶是选股公式( 顶尖财经 股票学院: http://58188.com )

 
{主力资金}
DRAWGBK(CLOSE>0,RGB(0,0,0),RGB(0,50,50),0,1,0);
X_1:=VOL;
X_2:=SMA((CLOSE-REF(CLOSE,1))*X_1,3,1)/10000;
X_3:=EMA(X_2,12)-EMA(X_2,26);
X_4:=EMA(X_3,9);
X_5:=(X_3-X_4)*2;
主力资金:X_5,NODRAW,COLORYELLOW;
流入:CROSS(X_5,0),NODRAW,COLORRED;
DRAWICON(CROSS(X_5,0),REF(X_5,1),38);
流出:CROSS(0,X_5),NODRAW,COLORGREEN;
DRAWICON(CROSS(0,X_5),REF(X_5,1),39);
X_6:=1;
X1:=CLOSE*VOL,NODRAW;
X2:=EMA((EMA(X1,3)/EMA(VOL,3)+EMA(X1,6)/EMA(VOL,6)+EMA(X1,12)/EMA(VOL,12)+EMA(X1,24)/EMA(VOL,24))/4,13),NODRAW;
X3:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,NODRAW;
X_7:=X3;
X_8:=X1;
X_9:=X2;
X_10:=1.06*X_9;
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>6;
X_12:=EMA(HIGH,10)*(1+6/100);
X_13:=X_6 AND X_11>0 AND CROSS(CLOSE,X_12) AND CROSS(CLOSE,X_10);
X_14:=FILTER(CROSS(X_7,EMA(HIGH,55)*(1+10/100)),5);
黑马启动:IF(X_6 AND X_13,1,0),NODRAW,COLORRED;
非妖即顶:IF(X_6 AND X_14,1,0),NODRAW,COLORMAGENTA;
STICKLINE(X_5>0 AND X_5>=REF(X_5,1),X_5,0,3,1),COLORRED;
STICKLINE(X_5>0 AND X_5<REF(X_5,1),X_5,0,3,1),COLORGREEN;
STICKLINE(X_5<0,X_5,0,3,1),COLORCYAN;
STICKLINE(黑马启动>0,X_5,0,4,0),COLORRED;
STICKLINE(非妖即顶>0,X_5,0,4,0),COLORMAGENTA;
X_15:=X_6;
X_16:=IF(X_6<=0,0,HHVBARS(X_5,BARSLAST(X_5<0)+1));
X_17:=IF(X_15>0,CROSS(BACKSET(CROSS(0,X_5),REF(X_16,1)+2),0.5),0);
X_18:=CROSS(BACKSET(CROSS(0,X_5) OR (ISLASTBAR AND X_5>0),REF(X_16,1)+2),0.5);
X_19:=DRAWLINE(X_17,X_5,REF(X_17,1),REF(X_5,1),1);
NOTEXT前高:X_19,COLORGRAY;
X_20:=LLVBARS(X_5,BARSLAST(X_5>0)+1);
X_21:=CROSS(BACKSET(CROSS(X_5,0),REF(X_20,1)+2),0.5);
X_22:=BARSLAST(FILTERX(CROSS(0,X_5),BARSCOUNT(CLOSE)));
X_23:=DRAWLINE(X_21,X_5,REF(X_21,1),REF(X_5,1),1);
NOTEXT前低:X_23,COLORGRAY;
X_24:=IF(X_5<0,FILTERX(X_5=LLV(X_5,BARSLAST(X_5>0)),BARSCOUNT(CLOSE)),DRAWNULL);
X_25:=BARSLAST(X_24);
X_26:=FILTERX(X_5<CONST(LLV(X_5,X_22+1)),BARSCOUNT(CLOSE));
X_27:=BARSLAST(X_26);
X_28:=IF(X_22+1>=1,CONST(LLV(X_5,X_22+1)),DRAWNULL);
NOTEXT本低:X_28,COLORWHITE;
X_29:=CROSS(COUNT(CROSS(X_5>X_28/2 AND X_5<0,0.5),X_25)=1,0.5) AND X_25>=0;
X_30:=IF(ISLASTBAR AND X_5>0 AND X_5=HHV(X_5,BARSLAST(X_5<0)),1,IF(FILTERX(X_18,BARSCOUNT(CLOSE)),2,DRAWNULL));
X_31:=X_30=1 OR X_30=2 AND X_5>0;
X_32:=FILTERX(X_31,BARSCOUNT(CLOSE));
X_33:=DRAWLINE(X_32,X_5,REF(X_32,1),REF(X_5,1),1);
NOTEXT本高:X_33,COLORWHITE;
X_34:=CONST(REF(X_5,BARSLAST(X_32)));
X_35:=X_5>X_34;
X_36:=FILTERX(REFX(BARSLAST(X_35),1)=1,BARSCOUNT(CLOSE));
NOTEXT天数:BARSLAST(X_36),NODRAW,COLORYELLOW;
NOTEXT上横线:DRAWLINE(X_36,X_34,X_32,X_34,0),DOTLINE,COLORGREEN;
NOTEXT下横线:DRAWLINE(X_26,CONST(LLV(X_5,X_22+1)),X_24=1,X_5,0),DOTLINE,COLORYELLOW;
X_37:=IF(X_36,BARSNEXT(X_32),DRAWNULL);
X_38:=IF(NOTEXT天数>0 AND NOTEXT天数<=REF(X_37,NOTEXT天数),SUM(X_5>0,NOTEXT天数),DRAWNULL);
X_39:=REF(CLOSE,NOTEXT天数);
X_40:=(X_39-CLOSE)/CLOSE*100;
X_41:=BARSLAST(X_32);
X_42:=CROSS(COUNT(CROSS(X_5<X_33/2 AND X_5>0,0.5),X_32)=1,0.5) AND X_32>=0;
STICKLINE(X_5>X_19 AND X_33>X_19 AND BARSLAST(CROSS(X_5<X_33/2,0.5))>0 AND X_5>(X_19+X_33)/2,X_5,X_19,1,0),COLORYELLOW;
X_43:=IF(X_5>0 AND X_33!=X_19,DRAWLINE(X_42,(X_19+X_33)/2,REF(X_42,1),REF((X_19+X_33)/2,1),1),DRAWNULL);
STICKLINE(X_5>X_19,X_5,X_19,1,0),COLORYELLOW;
STICKLINE(X_42,X_5,0,1,0),COLORGREEN;
STICKLINE(X_5<0 AND X_5<X_23 AND X_23<0,X_5,X_23,1,0),COLORBLUE;
X_44:=IF(CROSS(X_5<0,0.5),BARSNEXT(X_24),DRAWNULL);
X_45:=BARSLAST(X_5>0)-1;
STICKLINE(BARSLAST(X_29)>=0 AND X_5<X_23 AND X_5<0,X_5,X_23,1,0),COLORGREEN;
STICKLINE(X_29,X_5,0,1,0),COLORWHITE;
STICKLINE(X_5>X_19 AND X_33>X_19 AND BARSLAST(X_42)>0,X_5,X_19,1,0),COLORRED;
STICKLINE(CROSS(X_19,0.01) OR CROSS(X_33,0.01),X_5,0,0,0),COLORWHITE;
STICKLINE(CROSS(X_23<0,0.01) OR CROSS(X_28<0,0.01),X_5,0,0,0),COLORWHITE;
IF(BARSLAST(X_29)>=0,X_28/2,DRAWNULL),DOTLINE,COLORRED;




3、黄金分割坐标线

{黄金分割坐标线
参数:T   1  10000  1080天 [90看时间周期进行调整]
 设置:T1  1  10000   5}
{DRAWGBK(C>0, RGB(01,01,01),RGB(01,01,01),0,0,1);黑色}
{涨停次数}
DRAWKLINE(H,O,L,C);
涨停:=C/REF(C,1)>=1.097 AND C=H;
半年板数:SUM(涨停,130),NODRAW;
 
DRAWKLINE(H,O,L,C);
 
HH:=REF(HHV(H,T),T1);
LL:=REF(LLV(L,T),T1);
H1:=HH-(HH-LL)*0.191;
H2:=HH-(HH-LL)*0.382;
H3:=HH-(HH-LL)*0.5;
H4:=HH-(HH-LL)*0.618;
H5:=HH-(HH-LL)*0.764;
H6:=HH-(HH-LL)*0.809;
H7:=HH-(HH-LL)*0.236;
顶1:=HH+(HH-LL)*0.191;
顶2:=HH+(HH-LL)*0.382;
顶3:=HH+(HH-LL)*0.618;
底1:=IF((HH-LL)<LL,LL-(HH-LL)*0.191,LL-LL*0.191);
底2:=IF((HH-LL)<LL,LL-(HH-LL)*0.382,LL-LL*0.382);
底3:=IF((HH-LL)<LL,LL-(HH-LL)*0.618,LL-LL*0.618);
高:=IF(CURRBARSCOUNT<=T+T1 AND CURRBARSCOUNT>T1,REFDATE(HH,DATE),DRAWNULL);
一:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H1,DATE),DRAWNULL);
二:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H2,DATE),DRAWNULL);
三:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H3,DATE),DRAWNULL);
四:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H4,DATE),DRAWNULL);
五:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H5,DATE),DRAWNULL);
六:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H6,DATE),DRAWNULL);
七:=IF(CURRBARSCOUNT<=T+T1,REFDATE(H7,DATE),DRAWNULL);
低:=IF(CURRBARSCOUNT<=T+T1 AND CURRBARSCOUNT>T1,REFDATE(LL,DATE),DRAWNULL);
NOTEXT1:高,COLOR007799;WWW58188COM:=L,COLOR007799;
{NOTEXT2:IF(GOQI,DRAWNULL,一),DOTLINE,COLOR777777;
NOTEXT3:IF(GOQI,DRAWNULL,二),DOTLINE,COLOR777777;
NOTEXT4:IF(GOQI,DRAWNULL,三),DOTLINE,COLOR777777;
NOTEXT5:IF(GOQI,DRAWNULL,四),DOTLINE,COLOR777777;
NOTEXT6:IF(GOQI,DRAWNULL,五),DOTLINE,COLOR777777;
NOTEXT7:IF(GOQI,DRAWNULL,六),DOTLINE,COLOR777777;}
AA:REFDATE(一,DATE),DOTLINE,COLOR555555;
BB:REFDATE(二,DATE),DOTLINE,COLOR005858;
CC:REFDATE(三,DATE),DOTLINE,COLORYELLOW;
DD:REFDATE(四,DATE),DOTLINE,COLOR005858;
EE:REFDATE(五,DATE),DOTLINE,COLOR555555;
FF:REFDATE(六,DATE),DOTLINE,COLOR555555;
GG:REFDATE(七,DATE),DOTLINE,COLOR555555;
NOTEXT8:低,COLOR668800;
TT:=INTPART(T*0.5)+T1;
TT1:=(CURRBARSCOUNT=TT);
TT2:=(CURRBARSCOUNT=TT-32);
TT3:=(CURRBARSCOUNT=TT-40);
DRAWTEXT(TT1 AND 高,高-(高-低)*0.025,STRCAT('【   高点   】: ',CON2STR(HH,2))),COLOR007799;
DRAWTEXT(TT1 AND 一,一+(高-低)*0.020,STRCAT('191 (809): ',CON2STR(H1,2))),COLOR888888;
DRAWTEXT(TT1 AND 二,二+(高-低)*0.020,STRCAT('382 (618): ',CON2STR(H2,2))),COLOR008888;
DRAWTEXT(TT1 AND 三,三+(高-低)*0.020,STRCAT('【   中轴   】: ',CON2STR(H3,2))),COLORYELLOW;
DRAWTEXT(TT1 AND 四,四+(高-低)*0.020,STRCAT('618 (382): ',CON2STR(H4,2))),COLOR008888;
DRAWTEXT(TT1 AND 五,五+(高-低)*0.020,STRCAT('764 (236): ',CON2STR(H5,2))),COLORRED;
DRAWTEXT(TT1 AND 六,六+(高-低)*0.020,STRCAT('809 (191): ',CON2STR(H6,2))),COLOR888888;
DRAWTEXT(TT1 AND 七,七+(高-低)*0.020,STRCAT('236 (764): ',CON2STR(H7,2))),COLORRED;
DRAWTEXT(TT1 AND 低,低+(高-低)*0.020,STRCAT('【   低点   】: ',CON2STR(LL,2))),COLOR668800;
DRAWTEXT(TT3 AND 高,高+(高-低)*0.040,''),COLOR007799;{顶距};
{DRAWTEXT_FIX(1,0.68,0.02,0,'【注意:高低点的位置是否找对?不对一定要调整参数找准!】'),COLOR0000FF;};

上一篇:同花顺公式下载:短中期波段,长短波段操盘,第一筹码副图,随波逐浪,个股与大盘强弱对比

下一篇:通达信源码:红线精准买卖,半仓进,机构操盘线