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

通达信源码精选:诊股神器加强,涨停板K线的下方显示出一个标志,多周期K线图

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

1、诊股神器加强,有建仓加仓倍量柱清仓信号

MX:=EMA(C,2);
MXA:=EMA(SLOPE(C,21)*20+C,42); 
STICKLINE(MX>=MXA,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR600020;
STICKLINE(MX<MXA,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR404050; 
DRAWKLINE(H,O,L,C);
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
趋势线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORRED;
CC:=(CLOSE/趋势线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-趋势线)/趋势线)/3;
TMP:=MA1-MAAA*MA1;
JJ:IF(TMP<=趋势线,趋势线,DRAWNULL),LINETHICK3,COLORGREEN;
XJ:IF(TMP<=趋势线,TMP,DRAWNULL),LINETHICK2,COLORBLUE;
建仓:CROSS(MX,MXA),NODRAW;
SEL:=CROSS(MXA,MX);
DRAWICON(建仓,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
DRAWTEXT(建仓,L-0.68,'↖建仓持股')COLORMAGENTA;
DRAWTEXT(SEL,H+0.38,'↙清仓持币'),COLORBLUE;
STICKLINE(MX>=MXA,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(MX>=MXA,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(MX<MXA,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(MX<MXA,CLOSE,OPEN,3,1),COLORGREEN;
STICKLINE(建仓,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
CP:=MA(CLOSE,9),COLORCYAN,LINETHICK1;
JD:=MA(CLOSE,18),COLORMAGENTA;
DRAWICON(CROSS(CP,JD) AND MX>=MXA,JD-0.1,1);
DRAWTEXT(CROSS(CP,JD) AND MX>=MXA,JD-0.38,'↖加仓'),COLORYELLOW;
BL:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
DRAWTEXT(FILTER(BL,3),H+0.2,'↙倍量柱')COLORYELLOW;
STICKLINE(FILTER(BL,3),OPEN,CLOSE,1.5,0),COLORYELLOW;
XG:=SUMBARS(FILTER(BL,3),1);
STICKLINE(XG,REF(L,XG-1),REF(L,XG-1),10,0),COLORYELLOW;
{股民学院 www.58188.com 整理}



2、涨停板K线的下方显示出一个标志

支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;

阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;
 VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
 JL01:=MA(C,3);
 LJL07:=(3*C+L+O+H)/6;
牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;
马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;
等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT;
 VAR1L:=(C>REF(C,1) AND C>REF(C,2));
 VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));
持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;
 VARDL:=(C<REF(C,1) AND C<REF(C,2));
 VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));
 VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));
 VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));
持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;
 V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW;
 V10日涨跌%: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW; 
 V30日涨跌%: (C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW;
 STICKLINE(C>=O,C,O,3,0),COLOR000045;
 STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
 STICKLINE(C>=O,C,O,2,0),COLOR000085;
 STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
 STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
 STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
 STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
 STICKLINE(C<O,C,O,3,0),COLOR353500;
 STICKLINE(C<O,C,O,2.5,0),COLOR454500;
 STICKLINE(C<O,C,O,2,0),COLOR555500;
 STICKLINE(C<O,C,O,1.5,0),COLOR656500;
 STICKLINE(C<O,C,O,1,0),COLOR757500;
 STICKLINE(C<O,C,O,0.5,0),COLOR858500;
 STICKLINE(C<O,H,L,0,0),COLOR959500;
 VAR2:=EMA(VAR1,9);
 VAR3:=(CLOSE*2.5/100+CLOSE);
 VAR4:EMA(C,3), LINETHICK4,POINTDOT;
 VAR5:=LLV(HIGH,240);
 VAR6:=100*(CLOSE-VAR5)/VAR5;
 VAR7:=REF(LLV(CLOSE,480),1);
 VAR8:=REF(HHV(CLOSE,480),1);
 VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);
 VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
 VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
 VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
 VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
 VARE:=VARC>98.5 OR VARD>98.5;
 VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;
 VAR13:=VARA=0 AND VARC=0 AND VAR6<0;
 VAR14:=VARA=100 AND VARC=100;
 VAR15:=VARB=0 OR VARD=0 AND VAR9<0;
 VAR16:=VARB=100 AND VARD=100;
 VAR17:=VAR6<0 AND VAR9<0;
 VAR18:=VAR13 AND VAR15;
 VAR19:=VAR14 AND VAR16;
 VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
 VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;
 VAR1D:=BARSCOUNT(CLOSE);
 VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;
 VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;
 VAR20:=REF(CLOSE,1);
 VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;
 VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;
 VAR23:=BARSCOUNT(CLOSE);
 VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;
 VAR25:=VARA=0 AND VARF<1.2 AND VAR17;
 VAR27:=VAR18 AND VARF<1.2 AND VAR17;
 VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;
 VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;
  VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;
 VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;
买点:=VAR25 AND VAR2B;
绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;
 VAR2D:=VAR1F AND VAR2C AND VAR25;
股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));
 DRAWTEXT(FILTER(绝对卖点>0,3),H,'风险'), COLOR00FF00;
 DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;
 DRAWICON(买点>0,L,4);
 DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;
 DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'抄底'),COLORYELLOW;
 STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;
 DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;
 DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,5);
 DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)AND VARF>REF(VARF,1)AND C>O,3),L,11);
 DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);
 DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C<O,H*1.02,6);
{通达信公式大全 分析家公式网}
 Y:=CLOSE/REF(CLOSE,1)>1.07;
 X:=VOL>MA(VOL,5);
 A1:=Y AND X;
 DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;
 Z:=CLOSE/REF(CLOSE,1)<0.93;
 W:=VOL<MA(VOL,5);
 A2:=Z AND W;
 DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;
 
STICKLINE(C>=REF(C,1)*1.095 AND C=H,C,O,2,0),COLOR00FFFF;
DRAWTEXT(C>=REF(C,1)*1.095 AND C=H,C*0.97,'△'),COLORFF00FF;



3、多周期K线图

本公式,是缠论的公式,需要DLL支持才可以完整显示的。

{公式名称: 多周期K线图
公式描述: 
参数数量: 8
参数1: 周期1, 最小: 0, 最大: 1, 缺省: 1, 日线: 0
参数2: 周期2, 最小: 0, 最大: 1, 缺省: 1
参数3: 填充, 最小: 0, 最大: 1, 缺省: 1, 1分钟线: 0
参数4: 均线, 最小: 0, 最大: 999, 缺省: 20, 1分钟线: 60, 5分钟线: 0, 15分钟线: 0, 30分钟线: 0, 60分钟线: 0, 日线: 0, 周线: 0
 
参数5: 微信公众号, 最小: 0, 最大: 1, 缺省: 0
参数6: 缠论炒股, 最小: 0, 最大: 1, 缺省: 0
参数7: 联系永久使用请, 最小: 0, 最大: 1, 缺省: 0
参数8: QQ, 最小: 0, 最大: 1, 缺省: 0
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:
请设置计算参数:
周期1: PARAM#0 (0.00--1.00)
周期2: PARAM#1 (0.00--1.00)
填充: PARAM#2 (0.00--1.00)
均线: PARAM#3 (0.00--999.00)
缠论炒股: PARAM#5 (0.00--1.00)
用法注释:无
公式源码:}
XA_1:=TDXDLL1(666,CLOSE,HIGH,LOW);
XA_2:=17171=XA_1;
XA_3:=OPEN#MIN15;
XA_4:=CLOSE#MIN15;
XA_5:=HIGH#MIN15;
XA_6:=LOW#MIN15;
XA_7:=TIME=931 OR TIME=945 OR TIME=946 OR TIME=1000 OR TIME=1001 OR TIME=1015 OR TIME=1016 OR TIME=1030 OR TIME=1031 OR TIME=1045 OR TIME=1046 OR TIME=1100 OR TIME=1101 OR TIME=1115 OR TIME=1116 OR TIME=1301 OR TIME=1315 OR TIME=1316 OR TIME=1330 OR TIME=1331 OR TIME=1345 OR TIME=1346 OR TIME=1400 OR TIME=1401 OR TIME=1415 OR TIME=1416 OR TIME=1430 OR TIME=1431 OR TIME=1445 OR TIME=1446 OR TIME=1500;
XA_8:=XA_7 OR TIME=1130;
XA_9:=TIME=938 OR TIME=953 OR TIME=1008 OR TIME=1023 OR TIME=1038 OR TIME=1053 OR TIME=1108 OR TIME=1123 OR TIME=1308 OR TIME=1323 OR TIME=1338 OR TIME=1353 OR TIME=1408 OR TIME=1423 OR TIME=1438 OR TIME=1453;

STICKLINE(XA_2 AND 填充 AND XA_4>=XA_3 AND PERIOD=0,XA_4,XA_3,4,0),COLOR00002B;
STICKLINE(XA_2 AND XA_4>=XA_3 AND XA_8 AND PERIOD=0,XA_4,XA_3,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_4>=XA_3 AND NOT(XA_8) AND PERIOD=0,XA_4,XA_4,10,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_4>=XA_3 AND NOT(XA_8) AND PERIOD=0,XA_3,XA_3,10,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_4>=XA_3 AND XA_9 AND PERIOD=0,XA_5,XA_4,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_4>=XA_3 AND XA_9 AND PERIOD=0,XA_3,XA_6,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND 填充 AND XA_4<XA_3 AND PERIOD=0,XA_4,XA_3,4,0),COLOR2B2B00;
STICKLINE(XA_2 AND XA_4<XA_3 AND XA_8 AND PERIOD=0,XA_4,XA_3,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_4<XA_3 AND NOT(XA_8) AND PERIOD=0,XA_4,XA_4,10,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_4<XA_3 AND NOT(XA_8) AND PERIOD=0,XA_3,XA_3,10,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_4<XA_3 AND XA_9 AND PERIOD=0,XA_5,XA_3,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_4<XA_3 AND XA_9 AND PERIOD=0,XA_4,XA_6,0,(-1)),COLORGREEN;
XA_10:=OPEN#MIN60;
XA_11:=CLOSE#MIN60;
XA_12:=HIGH#MIN60;
XA_13:=LOW#MIN60;
XA_14:=TIME=1000 OR TIME=1100 OR TIME=1330 OR TIME=1430;
XA_15:=TIME=935 OR TIME=1030 OR TIME=1035 OR TIME=1130 OR TIME=1135 OR TIME=1305 OR TIME=1400 OR TIME=1405 OR TIME=1500;
STICKLINE(XA_2 AND 填充 AND XA_11>=XA_10 AND PERIOD=1,XA_11,XA_10,4,0),COLOR00002B;
STICKLINE(XA_2 AND XA_11>=XA_10 AND XA_15 AND PERIOD=1,XA_11,XA_10,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_11>=XA_10 AND NOT(XA_14 OR XA_15) AND PERIOD=1,XA_11,XA_11,10,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_11>=XA_10 AND NOT(XA_14 OR XA_15) AND PERIOD=1,XA_10,XA_10,10,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_11>=XA_10 AND XA_14 AND PERIOD=1,XA_11,XA_12,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_11>=XA_10 AND XA_14 AND PERIOD=1,XA_10,XA_13,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND 填充 AND XA_11<XA_10 AND PERIOD=1,XA_11,XA_10,4,0),COLOR2B2B00;
STICKLINE(XA_2 AND XA_11<XA_10 AND XA_15 AND PERIOD=1,XA_11,XA_10,0,(-1)),COLORLIGREEN;
STICKLINE(XA_2 AND XA_11<XA_10 AND NOT(XA_14 OR XA_15) AND PERIOD=1,XA_11,XA_11,10,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_11<XA_10 AND NOT(XA_14 OR XA_15) AND PERIOD=1,XA_10,XA_10,10,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_11<XA_10 AND XA_14 AND PERIOD=1,XA_10,XA_12,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_11<XA_10 AND XA_14 AND PERIOD=1,XA_11,XA_13,0,(-1)),COLORGREEN;
XA_16:=OPEN#DAY;
XA_17:=CLOSE#DAY;
XA_18:=HIGH#DAY;
XA_19:=LOW#DAY;
XA_20:=XA_17>=XA_16;
XA_21:=TIME=1130;
XA_22:=PERIOD=3 OR PERIOD=4;
XA_23:=周期1=1;
XA_24:=周期2=1;
XA_25:=TIME=945 OR TIME=1500;
STICKLINE(XA_2 AND 填充 AND XA_17>=XA_16 AND PERIOD=2,XA_17,XA_16,4,0),COLOR00002B;
STICKLINE(XA_2 AND XA_17>=XA_16 AND XA_25 AND PERIOD=2,XA_17,XA_16,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_17>=XA_16 AND NOT(XA_25) AND PERIOD=2,XA_17,XA_17,10,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_17>=XA_16 AND NOT(XA_25) AND PERIOD=2,XA_16,XA_16,10,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_17>=XA_16 AND TIME=1130 AND PERIOD=2,XA_18,XA_17,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_17>=XA_16 AND TIME=1130 AND PERIOD=2,XA_16,XA_19,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND 填充 AND XA_17<XA_16 AND PERIOD=2,XA_17,XA_16,4,0),COLOR2B2B00;
STICKLINE(XA_2 AND XA_17<XA_16 AND XA_25 AND PERIOD=2,XA_17,XA_16,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_17<XA_16 AND NOT(XA_25) AND PERIOD=2,XA_17,XA_17,10,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_17<XA_16 AND NOT(XA_25) AND PERIOD=2,XA_16,XA_16,10,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_17<XA_16 AND TIME=1130 AND PERIOD=2,XA_18,XA_16,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_17<XA_16 AND TIME=1130 AND PERIOD=2,XA_17,XA_19,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_17>=XA_16 AND PERIOD=3 AND XA_23,XA_17,XA_16,4,0),COLOR00002B;
STICKLINE(XA_2 AND XA_17<XA_16 AND PERIOD=3 AND XA_23,XA_17,XA_16,4,0),COLOR2B2B00;
STICKLINE(XA_2 AND XA_17>=XA_16 AND XA_21 AND XA_22 AND XA_23,XA_18,XA_17,1,0),COLOR00002B;
STICKLINE(XA_2 AND XA_17>=XA_16 AND XA_21 AND XA_22 AND XA_23,XA_16,XA_19,1,0),COLOR00002B;
STICKLINE(XA_2 AND XA_17<XA_16 AND XA_21 AND XA_22 AND XA_23,XA_18,XA_16,1,0),COLOR2B2B00;
STICKLINE(XA_2 AND XA_17<XA_16 AND XA_21 AND XA_22 AND XA_23,XA_17,XA_19,1,0),COLOR2B2B00;
STICKLINE(XA_2 AND XA_17>=XA_16 AND PERIOD=4 AND XA_23,XA_16,XA_17,4,0),COLOR00002B;
STICKLINE(XA_2 AND XA_17<XA_16 AND PERIOD=4 AND XA_23,XA_16,XA_17,4,0),COLOR2B2B00;
XA_26:=OPEN#WEEK;
XA_27:=CLOSE#WEEK;
XA_28:=HIGH#WEEK;
XA_29:=LOW#WEEK;
XA_30:=PERIOD=3 OR PERIOD=4;
XA_31:=PERIOD=5;
XA_32:=XA_27>=XA_26;
XA_33:=WEEKOFYEAR!=REF(WEEKOFYEAR,1) OR WEEKOFYEAR!=REFX(WEEKOFYEAR,1);
STICKLINE(XA_2 AND XA_32 AND XA_33 AND XA_30 AND XA_24,XA_27,XA_26,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_32) AND XA_33 AND XA_30 AND XA_24,XA_27,XA_26,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_32 AND XA_30 AND ISLASTBAR AND XA_24,XA_27,XA_26,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_32) AND XA_30 AND ISLASTBAR AND XA_24,XA_27,XA_26,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_32 AND NOT(XA_33) AND XA_30 AND NOT(ISLASTBAR) AND XA_24,XA_27,XA_27,8,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_32 AND NOT(XA_33) AND XA_30 AND NOT(ISLASTBAR) AND XA_24,XA_26,XA_26,8,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_32) AND NOT(XA_33) AND XA_30 AND NOT(ISLASTBAR) AND XA_24,XA_27,XA_27,8,(-1)),COLORGREEN;
STICKLINE(XA_2 AND NOT(XA_32) AND NOT(XA_33) AND XA_30 AND NOT(ISLASTBAR) AND XA_24,XA_26,XA_26,8,(-1)),COLORGREEN;
XA_34:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1))=BARSNEXT(WEEKOFYEAR!=REFX(WEEKOFYEAR,1)) AND BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1))>=1;
XA_35:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1))=BARSNEXT(WEEKOFYEAR!=REF(WEEKOFYEAR,1)) AND BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1))>=1;
XA_36:=XA_34 OR XA_35;
XA_37:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1))=CURRBARSCOUNT OR BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1))=CURRBARSCOUNT-1;
XA_38:=IF(BARSNEXT(WEEKOFYEAR!=REF(WEEKOFYEAR,1))=DRAWNULL,XA_37,XA_36);
STICKLINE(XA_2 AND XA_32 AND XA_30 AND XA_38 AND XA_24,XA_27,XA_28,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_32 AND XA_30 AND XA_38 AND XA_24,XA_26,XA_29,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_32) AND XA_30 AND XA_38 AND XA_24,XA_26,XA_28,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND NOT(XA_32) AND XA_30 AND XA_38 AND XA_24,XA_27,XA_29,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_32 AND XA_31 AND XA_23,XA_27,XA_26,4,0),COLOR00002B;
STICKLINE(XA_2 AND XA_32 AND XA_38 AND XA_31 AND XA_23,XA_28,XA_27,1,0),COLOR00002B;
STICKLINE(XA_2 AND XA_32 AND XA_38 AND XA_31 AND XA_23,XA_26,XA_29,1,0),COLOR00002B;
STICKLINE(XA_2 AND NOT(XA_32) AND XA_31 AND XA_23,XA_27,XA_26,4,0),COLOR2B2B00;
STICKLINE(XA_2 AND NOT(XA_32) AND XA_38 AND XA_31 AND XA_23,XA_28,XA_26,1,0),COLOR2B2B00;
STICKLINE(XA_2 AND NOT(XA_32) AND XA_38 AND XA_31 AND XA_23,XA_27,XA_29,1,0),COLOR2B2B00;
XA_39:=CLOSE#MONTH;
XA_40:=OPEN#MONTH;
XA_41:=HIGH#MONTH;
XA_42:=LOW#MONTH;
XA_43:=XA_39>=XA_40;
XA_44:=MONTH!=REF(MONTH,1) OR MONTH!=REFX(MONTH,1);
STICKLINE(XA_2 AND XA_43 AND XA_44 AND XA_31 AND XA_24,XA_40,XA_39,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_43) AND XA_44 AND XA_31 AND XA_24,XA_40,XA_39,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_43 AND XA_31 AND ISLASTBAR AND XA_24,XA_40,XA_39,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_43) AND XA_31 AND ISLASTBAR AND XA_24,XA_40,XA_39,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_43 AND NOT(XA_44) AND XA_31 AND NOT(ISLASTBAR) AND XA_24,XA_40,XA_40,8,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_43 AND NOT(XA_44) AND XA_31 AND NOT(ISLASTBAR) AND XA_24,XA_39,XA_39,8,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_43) AND NOT(XA_44) AND XA_31 AND NOT(ISLASTBAR) AND XA_24,XA_40,XA_40,8,(-1)),COLORGREEN;
STICKLINE(XA_2 AND NOT(XA_43) AND NOT(XA_44) AND XA_31 AND NOT(ISLASTBAR) AND XA_24,XA_39,XA_39,8,(-1)),COLORGREEN;
XA_45:=BARSLAST(MONTH!=REF(MONTH,1))=BARSNEXT(MONTH!=REFX(MONTH,1)) AND BARSLAST(MONTH!=REF(MONTH,1))>0;
XA_46:=BARSLAST(MONTH!=REF(MONTH,1))=BARSNEXT(MONTH!=REF(MONTH,1)) AND BARSLAST(MONTH!=REF(MONTH,1))>0;
XA_47:=XA_46 OR XA_45;
XA_48:=BARSLAST(MONTH!=REF(MONTH,1))=CURRBARSCOUNT OR BARSLAST(MONTH!=REF(MONTH,1))=CURRBARSCOUNT-1;
XA_49:=IF(BARSNEXT(MONTH!=REF(MONTH,1))=DRAWNULL,XA_48,XA_47);
XA_50:=PERIOD=6;
STICKLINE(XA_2 AND XA_43 AND XA_31 AND XA_49 AND XA_24,XA_39,XA_41,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_43 AND XA_31 AND XA_49 AND XA_24,XA_40,XA_42,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_43) AND XA_31 AND XA_49 AND XA_24,XA_40,XA_41,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND NOT(XA_43) AND XA_31 AND XA_49 AND XA_24,XA_39,XA_42,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_43 AND XA_50 AND XA_23,XA_39,XA_40,4,0),COLOR00002B;
STICKLINE(XA_2 AND NOT(XA_43) AND XA_50 AND XA_23,XA_39,XA_40,4,0),COLOR2B2B00;
STICKLINE(XA_2 AND XA_43 AND XA_50 AND XA_49 AND XA_23,XA_39,XA_41,1,0),COLOR00002B;
STICKLINE(XA_2 AND XA_43 AND XA_50 AND XA_49 AND XA_23,XA_40,XA_42,1,0),COLOR00002B;
STICKLINE(XA_2 AND NOT(XA_43) AND XA_50 AND XA_49 AND XA_23,XA_40,XA_41,1,0),COLOR2B2B00;
STICKLINE(XA_2 AND NOT(XA_43) AND XA_50 AND XA_49 AND XA_23,XA_39,XA_42,1,0),COLOR2B2B00;
XA_51:=OPEN#SEASON;
XA_52:=CLOSE#SEASON;
XA_53:=HIGH#SEASON;
XA_54:=LOW#SEASON;
XA_55:=XA_52>=XA_51;
XA_56:=IF(MONTH=1 OR MONTH=2 OR MONTH=3,1,IF(MONTH=4 OR MONTH=5 OR MONTH=6,2,IF(MONTH=7 OR MONTH=8 OR MONTH=9,3,4)));
XA_57:=XA_56!=REF(XA_56,1) OR XA_56!=REFX(XA_56,1);
STICKLINE(XA_2 AND XA_55 AND XA_57 AND XA_50 AND XA_24,XA_51,XA_52,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_55 AND ISLASTBAR AND XA_50 AND XA_24,XA_51,XA_52,0,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_55) AND XA_57 AND XA_50 AND XA_24,XA_51,XA_52,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND NOT(XA_55) AND ISLASTBAR AND XA_50 AND XA_24,XA_51,XA_52,0,(-1)),COLORGREEN;
STICKLINE(XA_2 AND XA_55 AND NOT(XA_57) AND XA_50 AND XA_24 AND NOT(ISLASTBAR),XA_51,XA_51,8,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND XA_55 AND NOT(XA_57) AND XA_50 AND XA_24 AND NOT(ISLASTBAR),XA_52,XA_52,8,(-1)),COLORMAGENTA;
STICKLINE(XA_2 AND NOT(XA_55) AND NOT(XA_57) AND XA_50 AND XA_24 AND NOT(ISLASTBAR),XA_51,XA_51,8,(-1)),COLORGREEN;
STICKLINE(XA_2 AND NOT(XA_55) AND NOT(XA_57) AND XA_50 AND XA_24 AND NOT(ISLASTBAR),XA_52,XA_52,8,(-1)),COLORGREEN;
XA_58:=1;
XA_59:=OPEN;
XA_60:=CLOSE;
XA_61:=HIGH;
XA_62:=LOW;
XA_63:=XA_60>=XA_59;
XA_64:=YEAR!=REF(YEAR,1) OR YEAR!=REFX(YEAR,1);
XA_65:=BARSLAST(YEAR!=REF(YEAR,1))=BARSNEXT(YEAR!=REFX(YEAR,1)) AND BARSLAST(YEAR!=REF(YEAR,1))>0;
XA_66:=BARSLAST(YEAR!=REF(YEAR,1))=BARSNEXT(YEAR!=REF(YEAR,1)) AND BARSLAST(YEAR!=REF(YEAR,1))>0;
XA_67:=XA_65 OR XA_66;
XA_68:=BARSLAST(YEAR!=REF(YEAR,1))=CURRBARSCOUNT OR BARSLAST(YEAR!=REF(YEAR,1))=CURRBARSCOUNT-1;
XA_69:=IF(BARSNEXT(YEAR!=REF(YEAR,1))=DRAWNULL,XA_68,XA_67);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA1:MA(CLOSE,均线),COLORYELLOW;

上一篇:通达信源码精选:空间幅度分析,MACD狙击黑马,K线画三角形

下一篇:通达信精选下载组合公式33个