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

通达信源码精选:最强T+0,黄金四色,冠军1号分时主图副图

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

1、最强T+0

通达信公式, 最强T+0,两个公式,都要导入,才可以显示

{ZZ}
{分时引用}
T1:REF(MA(V,5),1);
HS:VOL*100/FINANCE(7)*100;
HST:REF(VOL*100/FINANCE(7)*100,1);
HST2:REF(VOL*100/FINANCE(7)*100,2);
前日量:REF(V,2);
昨日量:REF(V,1);
昨日额:REF(AMO,1);
成交额:AMO;
昨均价:REF(AMO/V/100,1);
M3:MA(C,3);
M5:MA(C,5);
M7:MA(C,7);
M9:MA(C,9);
M10:MA(C,10);
M15:MA(C,15);
M20:MA(C,20);
M21:MA(C,21);
M30:MA(C,30);
M55:MA(C,55);
M60:MA(C,60);
M120:MA(C,120);
M250:MA(C,250);
M888:MA(C,888);
今昨:CONST(V/REF(V,1));
今前:CONST(V/REF(V,2));
H1:REF(H,1);
L1:REF(L,1);
DKX:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
ZRL:REF(V,1);
ZSP:REF(C,1);
前高:V/REF(HHV(V,0),1);
{最强T+0}
量价:=(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)),'%');
 DRAWTEXT_FIX(DD1=1,0,0.04,0,AAA1),COLORRED;
 DRAWTEXT_FIX(DD1=1,0,0.12,0,AAA2),COLORGREEN;
 DRAWTEXT_FIX(DD1=1,0,0.20,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,'--风险'),COLORYELLOW;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
 L1:=MIN(DYNAINFO(3),DYNAINFO(6));
 P1:=H1-L1;
阻力:=L1+P1*7/8,COLORGREEN;
支撑:=L1+P1*0.5/8,COLORMAGENTA;
 DRAWTEXT(LONGCROSS(支撑,C,2),C,'--买入'),COLORFF00FF;
 DRAWTEXT(LONGCROSS(C,阻力,2),C,'--出货'),COLOR70DB93;
 
LC:=REF(CLOSE,1);
 WRSI:=SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100;
 DRAWICON(CROSS(20,WRSI),C,1);
 DRAWICON(CROSS(WRSI,80),C,2);
 
DRAWICON(CROSS(20,"RSI.RSI1"(9)),C,1);
 DRAWICON(CROSS("RSI.RSI1"(9),80),C,2);
 
均价:=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(均价,均);
DRAWTEXT(FILTER(横涨1,10),C,'突'),COLORYELLOW;
 DRAWICON(FILTER(横涨1,10),均价,1);
IF(MACD.DEA<0,C,DRAWNULL),COLORYELLOW ,LINETHICK9;
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,38);
 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,24);}
 DRAWTEXT(CROSS(主力,1.02),C*0.999,'--拉升'),COLORCYAN;
{ DRAWICON(CROSS(主力,1.04),C,6);}
 DRAWTEXT(CROSS(主力,1.04),C*0.999,'--冲涨停'),COLORRED;
{ DRAWICON(CROSS(散户,主力),C,6);}
 DRAWTEXT(CROSS(散户,主力),C*0.9995,'--小心'),COLORGREEN;
{DRAWICON(CROSS(散户,大户),C,6);}
 DRAWTEXT(CROSS(散户,大户),C*0.9995,'--走弱'),COLORGREEN;
{WA1:=V*C/100;
WA2:=SUM((IF(((WA1/8>20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA3:=SUM((IF(((WA1/8>20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
WA4:=SUM((IF(((WA1/8<20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA5:=SUM((IF(((WA1/8<20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
机构买盘:=(WA2);
机构卖盘:=(WA3);
散户买盘:=(WA4);
散户卖盘:=(WA5);
DRAWTEXT_FIX(1,0.400,1-0.128,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),' 万')),COLORRED;
DRAWTEXT_FIX(1,0.400,1-0.001,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),' 万')),COLORGREEN;
DRAWTEXT_FIX(1,0.620,1-0.128,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),' 万')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.620,1-0.001,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),' 万')),COLORCYAN;
 
{WA6:=((WA2+WA3)+WA4)+WA5;
WA7:=IF((ISLASTBAR),((100*WA2)/WA6),0);
WA8:=IF((ISLASTBAR),((100*WA3)/WA6),0);
WA9:=IF((ISLASTBAR),((100*WA4)/WA6),0);
WA10:=IF((ISLASTBAR),((100*WA5)/WA6),0);
机构买:=(WA2);
机构卖:=(WA3);
机构进出:=机构买-机构卖;
强势:=((100*WA2)/WA6>50);}
 
{所属板块}
{DRAWTEXT_FIX(C>0,0.920,0.66,0,HYBLOCK),COLORCYAN,LINETHICK2;{行业}
DRAWTEXT_FIX(C>0,0.00,0.80,0,GNBLOCK),COLORCYAN,LINETHICK2;{概念};
{流通市值}
DRAWTEXT_FIX(1,0.710,0.66,0,STRCAT(STRCAT('流通市值:',CON2STR(FINANCE(46)*C/100000000,2)),'亿元'))COLORCYAN;
 
 
{竞价情况}
JJCJL:=DYNAINFO(15)/DYNAINFO(4)/100;
JJJEDW:=IF(DYNAINFO(15)>10000,'万元','元');
JJJE:=IF(DYNAINFO(15)>10000,CON2STR(DYNAINFO(15)/10000,1),CON2STR(DYNAINFO(15),1));
JJJE1:=STRCAT(JJJE,JJJEDW);
JJ:=STRCAT('竞价量额:',STRCAT(CON2STR(JJCJL/10000,2),'万手'));
JJ1:=STRCAT(JJ,' = ');
 
DRAWTEXT_FIX(1,0.00,0.66,0,STRCAT(JJ1,JJJE1))COLORRED;{竞价量额位置}
{DRAWTEXT_FIX(1,0.95,0.50,0,STRCAT('占昨成交:',STRCAT(CON2STR(DYNAINFO(15)/ZZ.昨日额#DAY*100,2),'%')))COLORYELLOW;}
 
今日竞价股数:=DYNAINFO(15)/DYNAINFO(4);
ZSPJ:=ZZ.ZSP#DAY;
A:=今日竞价股数/FINANCE(46)*10000*(O-ZSPJ)/ZSPJ;
 
DRAWTEXT_FIX(1,0.410,0.66,0,STRCAT(STRCAT('竞价动能:',CON2STR(A,2)),''))COLORRED;
 
ZG:=ZZ.H1#DAY;
昨均:=ZZ.昨均价#DAY;
ZD:=ZZ.L1#DAY;
DRAWTEXT_FIX(1,1,1-0.988,1,STRCAT('昨高 :  ',CON2STR(ZG,2))),COLORWHITE;
DRAWTEXT_FIX(1,1,1-0.857,1,STRCAT('昨均 :  ',CON2STR(昨均,2))),COLORCYAN;
DRAWTEXT_FIX(1,1,1-0.714,1,STRCAT('昨低 :  ',CON2STR(ZD,2))),COLORWHITE;
五日:=ZZ.M5#DAY,COLORMAGENTA;
十日:=ZZ.M10#DAY,COLORGREEN;
二十日:=ZZ.M20#DAY;
六十日:=ZZ.M60#DAY;
{一百二十日:=ZZ.M120#DAY;}
DRAWTEXT_FIX(1,1,1-0.571,1,STRCAT('M5 :  ',CON2STR(五日,2))),COLORMAGENTA;
DRAWTEXT_FIX(1,1,1-0.428,1,STRCAT('M10 :  ',CON2STR(十日,2))),COLORYELLOW;
DRAWTEXT_FIX(1,1,1-0.285,1,STRCAT('M20 :  ',CON2STR(二十日,2))),COLORCYAN;
DRAWTEXT_FIX(1,1,1-0.142,1,STRCAT('M60 :  ',CON2STR(六十日,2))),COLORWHITE;
{DRAWTEXT_FIX(1,1,1-0.0,1,STRCAT('M120 :  ',CON2STR(一百二十日,2))),COLORWHITE;}
DK:=ZZ.DKX#DAY;
DRAWTEXT_FIX(1,0,1,0,STRCAT('BBI :  ',CON2STR(DK,2))),COLORGREEN;
DRAWTEXT_FIX(1,0.15,1,0,STRCAT('净流入: ',CON2STR(ZJBY.净流入#DAY,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.3,1,0,STRCAT('超大单(万): ',CON2STR(ZJBY.超大单#DAY,2))),COLORMAGENTA;
DRAWTEXT_FIX(1,0.45,1,0,STRCAT('大单(万): ',CON2STR(ZJBY.大单#DAY,2))),COLORRED;
DRAWTEXT_FIX(1,0.6,1,0,STRCAT('中单(万): ',CON2STR(ZJBY.中单#DAY,2))),COLORGREEN;
DRAWTEXT_FIX(1,0.75,1,0,STRCAT('小单(万): ',CON2STR(ZJBY.小单#DAY,2))),COLORLIGRAY;




2、黄金四色

黄金四色 妖股买点

{公式名称: 黄金四色
公式描述: 
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:无
用法注释:无
公式源码:}
DRAWGBK(CLOSE>0,RGB(20,0,28),RGB(20,0,28),0,0,1);
XA_1:=120;
XA_2:=BARSLAST(CURRBARSCOUNT=XA_1);
XA_3:=CONST(IF(ISLASTBAR=1,HHV(HIGH,XA_2),0));
XA_4:=CONST(IF(ISLASTBAR=1,LLV(LOW,XA_2),0));
XA_5:=XA_3-XA_4;
高:IF(CURRBARSCOUNT<=XA_1,XA_3,DRAWNULL),POINTDOT,COLORYELLOW;
压:IF(CURRBARSCOUNT<=XA_1,XA_3-XA_5*0.191,DRAWNULL),NODRAW,COLORMAGENTA;
平衡:IF(CURRBARSCOUNT<=XA_1,XA_4+XA_5/2,DRAWNULL),NODRAW,COLORYELLOW;
支撑:IF(CURRBARSCOUNT<=XA_1,XA_4+XA_5*0.191,DRAWNULL),NODRAW,COLORGREEN;
低:IF(CURRBARSCOUNT<=XA_1,XA_4,DRAWNULL),POINTDOT,COLORGREEN;
天:BARSLAST(LOW=XA_4),NODRAW,COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=XA_1,平衡,平衡,3,(-1)),COLORWHITE;
STICKLINE(CURRBARSCOUNT<=XA_1,压,压,3,(-1)),COLORRED;
STICKLINE(CURRBARSCOUNT<=XA_1,支撑,支撑,3,(-1)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,压,1),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,平衡,2),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,支撑,3),COLORYELLOW;
XA_6:=EMA(CLOSE,21);
XA_7:=XA_6<REF(XA_6,1);
XA_8:=IF(XA_7-1,XA_6,DRAWNULL);
XA_9:=EMA(CLOSE,3)>EMA(CLOSE,21);
XA_10:=EMA(CLOSE,3)<EMA(CLOSE,21);
XA_11:=EMA(CLOSE,3)>EMA(CLOSE,8);
XA_12:=EMA(CLOSE,3)<EMA(CLOSE,8);
STICKLINE(XA_9,LOW,HIGH,0,0),COLOR0088EE;
STICKLINE(XA_9,CLOSE,OPEN,3,0),COLOR0055AA;
STICKLINE(XA_9,CLOSE,OPEN,2.8,0),COLOR0066BB;
STICKLINE(XA_9,CLOSE,OPEN,2.5,0),COLOR0077CC;
STICKLINE(XA_9,CLOSE,OPEN,2.2,0),COLOR0088DD;
STICKLINE(XA_9,CLOSE,OPEN,1.7,0),COLOR0099EE;
STICKLINE(XA_9,CLOSE,OPEN,1.2,0),COLOR00AAFF;
STICKLINE(XA_9,CLOSE,OPEN,0.7,0),COLOR00CCFF;
STICKLINE(XA_9,CLOSE,OPEN,0.2,0),COLORYELLOW;
STICKLINE(XA_10,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(XA_10,CLOSE,OPEN,3.2,0),COLOR006600;
STICKLINE(XA_10,CLOSE,OPEN,2.6,0),COLOR008800;
STICKLINE(XA_10,CLOSE,OPEN,1.9,0),COLOR00AA00;
STICKLINE(XA_10,CLOSE,OPEN,1.1,0),COLOR00CC00;
STICKLINE(XA_10,CLOSE,OPEN,0.3,0),COLORGREEN;
STICKLINE(XA_10 AND XA_11,HIGH,LOW,0,1),COLORFF55FF;
STICKLINE(XA_10 AND XA_11,CLOSE,OPEN,3.2,0),COLOR880088;
STICKLINE(XA_10 AND XA_11,CLOSE,OPEN,2.6,0),COLORAA00AA;
STICKLINE(XA_10 AND XA_11,CLOSE,OPEN,1.9,0),COLORCC00CC;
STICKLINE(XA_10 AND XA_11,CLOSE,OPEN,1.1,0),COLOREE00EE;
STICKLINE(XA_10 AND XA_11,CLOSE,OPEN,0.3,0),COLORFF44FF;
STICKLINE(XA_9 AND XA_12,HIGH,LOW,0,1),COLORFF8800;
STICKLINE(XA_9 AND XA_12,CLOSE,OPEN,3.2,0),COLORFF2200;
STICKLINE(XA_9 AND XA_12,CLOSE,OPEN,2.6,0),COLORFF4400;
STICKLINE(XA_9 AND XA_12,CLOSE,OPEN,1.9,0),COLORFF6600;
STICKLINE(XA_9 AND XA_12,CLOSE,OPEN,1.1,0),COLORFF8800;
STICKLINE(XA_9 AND XA_12,CLOSE,OPEN,0.3,0),COLORFFAA00;
DRAWTEXT(CURRBARSCOUNT=XA_1/2+9,XA_3-XA_5/12,4),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=XA_1/2+9,XA_3-XA_5/3,5),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=XA_1/2+9,XA_4+XA_5/3,6),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=XA_1/2+9,XA_4+XA_5/10,7),COLORCYAN;
XA_13:=EMA(CLOSE,13)-EMA(CLOSE,55);
XA_14:=EMA(0.618*REF(XA_13,1)+0.382*XA_13,3);
XA_15:=REF(CLOSE,1);
XA_16:=EMA(HHV(HIGH,1),8);
XA_17:=EMA(CLOSE,8);
XA_18:=XA_17<REF(XA_17,1) AND CLOSE<XA_17;
XA_19:=IF(XA_16<REF(XA_16,1) OR XA_18,1,0);
XA_20:=SMA(MAX(CLOSE-XA_15,0),2,1)/SMA(ABS(CLOSE-XA_15),2,1)*100;
XA_21:=45;
XA_22:=20;
XA_23:=XA_20<XA_21 AND REF(XA_20,1)>XA_21;
XA_24:=XA_20<XA_22 AND REF(XA_20,1)>XA_22;
XA_25:=(COUNT(XA_19=1,4)=3 AND XA_19=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065)*10>=10 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065 AND (REF(XA_24,1) OR REF(XA_23,1)));
DRAWICON(XA_25,LOW,7);
STICKLINE(XA_25,LOW,LOW+(HIGH-LOW)/2,2.7,0),COLORYELLOW;
STICKLINE(XA_25,LOW+(HIGH-LOW)/2,HIGH,2.7,0),COLORRED;
{股民学院 www.58188.com 整理}



3、冠军1号分时主图副图

{冠军1号分时副图}
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5); 
V4:=2*(V2-V3)*5.5;
主力撤:IF(V4<=0,V4,0),COLORGREEN;
主力进: IF(V4>=0,V4,0);
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);VB:=(V9-VA)/2;
大盘资金进场:IF(VB>=0,VB,0),COLORRED;
大盘资金撤走:IF(VB<=0,VB,0),COLORYELLOW;
DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0,'11',0);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8,COLORGREEN;
支撑:=L1+P1*0.5/8,COLORRED;
中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT;
 
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买入:STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;
BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;
BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
下单买入:STICKLINE(BB=1 AND C<中线,11,50,5,0),COLORRED;
DRAWICON(BB=1 AND C<中线,55,1);
DRAWTEXT(BB0,60,'★买'),COLORRED;
DRAWTEXT(AA,16,'准备买入'),COLORYELLOW;
 
准备卖出:STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;
CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;
DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;
DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
下单卖出:STICKLINE(DD=1 AND C>中线,89,50,5,0),COLORGREEN;
DRAWICON(DD=1 AND C>中线,45,2);
DRAWTEXT(DD0,40,'★卖'),COLORGREEN;
DRAWTEXT (CC,84,'准备卖出'),COLORWHITE;
冠军1号QQ:=474131998;
顶:89,COLORGREEN;
底:11,COLORRED;
中:50,POINTDOT,COLORWHITE; 
DRAWTEXT(ISLASTBAR,顶,'顶'),COLORGREEN;
DRAWTEXT(ISLASTBAR,底,'底'),COLORRED;
DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;

上一篇:通达信源码精选:箱体捉妖专Z 箱体捉妖专F2 箱体捉妖专F1

下一篇:通达信公式下载:凌波微步,红升绿降主图,分时指标T+0