短线布林(源码 主图 通达信 贴图)轻松逃顶见低买入
2016-4-22 10:51:53点击:
参数 最小 最大 缺省
M1 2.00 300.00 5.00
M2 2.00 300.00 10.00
M3 2.00 300.00 20.00
M4 2.00 300.00 30.00
M5 2.00 300.00 60.00
M6 2.00 300.00 120.00
{短线布林} HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,2); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H);{顶部} DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=CONST(DINGBUTS1); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L*0.98,1); 高:=MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1); 低:=MA(REF(LOW,1)/REF(CLOSE,2),27)*REF(CLOSE,1); 测高:=高,COLORRED; 测低:=低,COLORGREEN; GJ:=IF(C>=100,(C+H+L+O)/4,AMOUNT/(V+0.01)/100); 明阻:=L+(GJ-L)+(C-L); 明支:=L+(C-GJ); 今阻:=REF(明阻 , 1); 今支:=REF(明支 , 1),COLORYELLOW; MA3:=MA(C,3); YTSL:=(3*C+L+O+H)/6; 辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLORFFFF00; 牵牛线:MA(C,26),COLOR669933; 等待:IF(MA3<=辰星线,牵牛线,DRAWNULL),COLORGREEN,LINETHICK2; 中轨:=MA(C,26); 上轨:=中轨+STD(C,20); 下轨:=中轨-STD(C,20); 上极限:(中轨+2*STD(C,20)),COLORFF937F,LINETHICK2; 下极限:(中轨-2*STD(C,20)),COLORWHITE,LINETHICK2; 急速超跌:=(C-MA(C,34))/MA(C,34)*100<-14; VAR1:=(C>REF(C,1) AND C>REF(C,2)); VAR2:=(REF(VAR1,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR3:=(REF(VAR2,1) AND C>=REF(C,1) AND C<=REF(C,2)); VAR4:=(REF(VAR3,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR5:=(REF(VAR4,1) AND C>=REF(C,1) AND C<=REF(C,2)); VAR6:=(REF(VAR5,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR7:=(REF(VAR6,1) AND C>=REF(C,1) AND C<=REF(C,2)); VAR8:=(REF(VAR7,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR9:=(REF(VAR8,1) AND C>=REF(C,1) AND C<=REF(C,2)); VARA:=(REF(VAR9,1) AND C<=REF(C,1) AND C>=REF(C,2)); VARB:=(REF(VARA,1) AND C>=REF(C,1) AND C<=REF(C,2)); VARC:=(REF(VARB,1) AND C<=REF(C,1) AND C>=REF(C,2)); 持股:IF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,辰星线,DRAWNULL),COLORRED,POINTDOT,LINETHICK5; VARD:=(C<REF(C,1) AND C<REF(C,2)); VARE:=(REF(VARD,1) AND C>=REF(C,1) AND C<=REF(C,2)); VARF:=(REF(VARE,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR10:=(REF(VARF,1) AND C>=REF(C,1) AND C<=REF(C,2)); VAR11:=(REF(VAR10,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR12:=(REF(VAR11,1) AND C>=REF(C,1) AND C<=REF(C,2)); VAR13:=(REF(VAR12,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR14:=(REF(VAR13,1) AND C>=REF(C,1) AND C<=REF(C,2)); VAR15:=(REF(VAR14,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR16:=(REF(VAR15,1) AND C>=REF(C,1) AND C<=REF(C,2)); VAR17:=(REF(VAR16,1) AND C<=REF(C,1) AND C>=REF(C,2)); VAR18:=(REF(VAR17,1) AND C>=REF(C,1) AND C<=REF(C,2)); 持币:IF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,辰星线,DRAWNULL),COLORLIGRAY,POINTDOT,LINETHICK5; VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1); VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD); DRAWTEXT(VAR19,L,'←短买'),COLOR33FFCC; DRAWTEXT(VAR1A,H+0.1,'↙离场'),COLORGREEN; RC:=(H+L+C*2)/4; R2D:=WMA(RC,27); R2E:=STD(RC,27); R3F:=(RC-R2D)/R2E*100; R40:=WMA(R3F,3); R41:=WMA(R40,3); JD:=WMA(R41,2); AJ:=3*R41-2*JD; DRAWTEXT(CROSS(AJ,JD) ,L-0.2,'←短买'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(JD,AJ) ,H+0.2,'↙离场'),COLORFF99FF,LINETHICK2; DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,'←买') , COLORYELLOW,LINETHICK1; DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.010,'↓卖') , COLORGREEN,LINETHICK1; GD:=HHVBARS(H,20); DD:=FINDLOWBARS(L,GD+1,20,1); C1:=REF(C,GD); C2:=REF(C,DD+1); ZF:=(C1-C2)/C2*100; GZ:=REF(ZF,GD); DF:=(C-REF(C,GD+1))/REF(C,GD+1)*100; A:=EVERY(MACD.DIF>MACD.DEA,GD); A1:=EVERY(L<REF(L,1),GD); A2:=L<MA(C,20) AND MIN(C,O)>MA(C,20); A3:=REF(MACD.DIF,1)<MACD.DIF AND REF(MACD.DIF,1)<REF(MACD.DIF,2); A4:=REF(DF,1)<-8.5 AND GZ>20; XG:=A AND REF(A1,1) AND REF(A2,1) AND A3 AND A4; DRAWICON(XG,L*0.95,1); 超B:=L2_AMO(0,2)/10000.0; 大B:=L2_AMO(1,2)/10000.0; 中B:=L2_AMO(2,2)/10000.0; 小B:=L2_AMO(3,2)/10000.0; 超S:=L2_AMO(0,3)/10000.0; 大S:=L2_AMO(1,3)/10000.0; 中S:=L2_AMO(2,3)/10000.0; 小S:=L2_AMO(3,3)/10000.0; TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 大宗进:=(超B)+(大B),NODRAW; 大宗出:=(超S)+(大S),NODRAW; 非大宗进:=(中B)+(小B),NODRAW; 非大宗出:=(中S)+(小S),NODRAW; DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW; DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255))); DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0))); DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,122,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255))); DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0))); DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN; DRAWTEXT_FIX(C>0,0.40,0.770,0,'%19.1'); DRAWTEXT_FIX(C>0,0.40,0.580,0,'%38.2'); DRAWTEXT_FIX(C>0,0.40,0.466,0,'%50.0'); DRAWTEXT_FIX(C>0,0.40,0.352,0,'%61.8'); DRAWTEXT_FIX(C>0,0.40,0.166,0,'%80.9'); 月K:="KDJ.K#MONTH"; 月D:="KDJ.D#MONTH"; 周K:="KDJ.K#WEEK"; 周D:="KDJ.D#WEEK"; 日K:="KD.K"; 日D:="KD.D"; 日金叉:=IF(CROSS(日K,日D),15,0); 周金叉:=IF(CROSS(周K,周D),25,0); 月金叉:=IF(CROSS(月K,月D),35,0); 日周月:=IF(日金叉=15 AND 周金叉=25 AND 月金叉=35,1,0); 日周月赚:=日周月=1; 日周:=IF(日金叉=15 AND 周金叉=25,2,0); 日周赚:=日周=2; 周月:=IF(周金叉=25 AND 月金叉=35,3,0); 日月:=IF(日金叉=15 AND 月金叉=35,4,0); 日月赚:=日月=4; 周月赚:=周月=3; DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26); DEA:=EMA(DIF,9); AAA:=(DIF-DEA)*2*60; 启动:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2; DRAWTEXT(启动,L*0.99,'↖金牛启动'),COLORYELLOW,LINETHICK2; DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF; DRAWTEXT_FIX(1,0.20,0,0,DYBLOCK)COLOR00FFFF; DRAWTEXT_FIX(1,0.35,0.00,0,'主题投资1:')COLORWHITE; DRAWTEXT_FIX(1,0.36,0.00,0,EXTERNSTR(0,2))COLORWHITE; DRAWTEXT_FIX(1,0.00,0.05,0,'主营业务:')COLORWHITE; DRAWTEXT_FIX(1,0.06,0.05,0,EXTERNSTR(0,3))COLORWHITE; DRAWTEXT_FIX(1,0.45,8,0,EXTERNSTR(0,1))COLOR0000FF,LINETHICK3; Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95); Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C)))); STICKLINE(CROSS((C/Q2),1.03),0.02,0,4,0), COLORYELLOW; DRAWTEXT(CROSS((C/Q2),1.03),HIGH*1.010,'↓半'),COLORGREEN;
- 上一篇:没有啦
- 下一篇:多功能(可调) 五合一主图 (通达信 指标 源码 贴图) 2016/4/22