飘带100%吃肉 红蓝飘带多开100%吃肉主图 {DRAWGBK(C>0,RGB(20,20,120),RGB(1,1,5),1,0,1);} DRAWKLINE(H,O,L,C); DRAWTEXT_FIX(1,0.00,0,0,'行业:')COLOR0080FF; DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF; DRAWTEXT_FIX(1,0.20,0,0,'地区:')COLOR00FFFF; DRAWTEXT_FIX(1,0.25,0,0,DYBLOCK)COLOR00FFFF; UR:=6; LR:=UR; TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL); TC2:=CONST(BARSLAST(TC1=H))+1; UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1))); BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL); BC2:=CONST(BARSLAST(BC1=L))+1; LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1))); LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位} HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位} { STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962; STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;} NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}; LR1:=FORCAST(C,NOD+1); NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点=} LR2:=SLOPE(C,NOD+1); LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1))); FP:=NP-LR3*(NOD),POINTDOT,COLOR93BDA8;{远点=} EQU:=(NP+FP)/2,POINTDOT,COLOR93BDA8;{=} AD:=ABS(NP-FP);{高差} DBL:=BARSLAST(BC1!=DRAWNULL)+1; DBH:=BARSLAST(TC1!=DRAWNULL)+1; BSP:=IF(BC2>TC2,DBL,DBH)-1; LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP); AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL); AT2:=HHV(AT1-LRL,MAX(BC2,TC2)); AT3:=CONST(BARSLAST(AT1-LRL=AT2)); AT4:=CONST(IF(AT3=0,H,REF(H,AT3))); AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3))); ATL:=LRL+AT5; UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL); UT2:=HHV(LRL-UT1,MAX(BC2,TC2)); UT3:=CONST(BARSLAST(LRL-UT1=UT2)); UT4:=CONST(IF(UT3=0,H,REF(H,UT3))); UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3))); UTL:=LRL-UT5; RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高} RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低} 上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORRED; 中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR628962; 下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORGREEN; AAAA:=MA(C,1); AAA:=SMA(SMA(SMA(AAAA,2,1),2,1),2,1); BBB:=MA(AAA,3);{股民学院 www.58188.com 整理} DRAWBAND(AAA,RGB(255,255,0),BBB,RGB(0,0,255)); CCC:=(3*C+L+O+H)/6; 牛线:=(20*CCC+19*REF(CCC,1)+18*REF(CCC,2)+17*REF(CCC,3)+16*REF(CCC,4)+15*REF(CCC,5)+14*REF(CCC,6)+13*REF(CCC,7)+12*REF(CCC,8)+11*REF(CCC,9)+10*REF(CCC,10)+9*REF(CCC,11)+8*REF(CCC,12)+7*REF(CCC,13)+6*REF(CCC,14)+5*REF(CCC,15)+4*REF(CCC,16)+3*REF(CCC,17)+2*REF(CCC,18)+REF(CCC,20))/210,COLORRED,LINETHICK2; 马线:=MA(牛线,5); DRAWBAND(牛线,RGB(255,40,0),马线,RGB(256,200,0)); STICKLINE(IF((C>REF(C,1)*1.096),2,0),OPEN,CLOSE,3,0),COLORRED; 起爆:=COUNT(C>REF(C,1)*1.096,55)>0 AND ((CROSS(C,AAA) AND CROSS(C,BBB) AND CROSS(C,牛线) AND CROSS(C,马线)) OR (CROSS(C,AAA) AND CROSS(C,BBB) AND 牛线>REF(牛线,1) AND BBB>马线) OR (CROSS(C,牛线) AND CROSS(C,马线) AND 牛线>REF(牛线,1))),COLORGREEN,LINETHICK2; DRAWTEXT(起爆,LOW*0.97,'↖100%大肉'),COLORYELLOW; 黄金线:LLV(LOW,60)*1.09,DOTLINE,COLORYELLOW; 获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),COLORCYAN,NODRAW; 平衡价:IF(CAPITAL>0,SUM(AMO,32)/SUM(VOL,32)/100,SUM((H+L+C)/32,32)/32),COLORWHITE,LINETHICK3; 涨停:DYNAINFO(3)*1.1,COLORRED,NODRAW; 跌停:DYNAINFO(3)*0.9,COLORGREEN,NODRAW; 昨收:REF(C,1),COLORRED,NODRAW; 今开:O,COLORWHITE,NODRAW; 现价:CLOSE,COLORWHITE,LINETHICK2,NODRAW; ST涨停:=IF((C-昨收)*100/昨收>=(5-0.01*100/昨收),1,0); ST跌停:=IF((昨收-C)*100/昨收>=(5-0.01*100/昨收),1,0); STICKLINE(ST涨停,OPEN,CLOSE,2,0),COLORFF00FF; STICKLINE(ST跌停,OPEN,CLOSE,2,0),COLORCYAN; STICKLINE(C>1.095*REF(C,1),C,O,2,0),COLORYELLOW; STICKLINE(C<0.905*REF(C,1),C,O,2,0),COLORWHITE; 今收盘:=C,NODRAW,COLORWHITE; 警示:=NAMELIKE('S') OR NAMELIKE('*'); 今涨停:ZTPRICE(REF(C,1),IF(警示,0.05,0.1)),NODRAW,COLORYELLOW; 今跌停:DTPRICE(REF(C,1),IF(警示,0.05,0.1)),NODRAW,COLORGREEN; 明涨停:今收盘+(今收盘*0.1),NODRAW,COLORRED; 明跌停:=今收盘-(今收盘*0.1),NODRAW,COLORGREEN; 明ST涨停:=今收盘+(今收盘*0.05),NODRAW,COLORMAGENTA; 明ST跌停:=今收盘-(今收盘*0.05),NODRAW,COLORCYAN; |
上一篇:金涨停GJS3(通达信公式源码)