N:=102; M:=7; AA:=MA((2*CLOSE+HIGH+LOW)/4,5); 通道1:AA*N/100; 通道2:AA*(200-N)/100; CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 通道3:(1+M/100)*DD; 通道4:(1-M/100)*DD; DIF:=EMA(DCLOSE,9)-EMA(DCLOSE,17); DEA:=EMA(DIF,6); AAA:=(DIF-DEA)*2*60; 起爆:=CROSS(AAA-REF(AAA,1),12); DRAWTEXT(起爆,L*0.975,'爆'),COLORRED; DRAWTEXT(起爆,L*0.95,'漲'),COLORRED; {紅} STICKLINE(起爆,CLOSE,OPEN,3,0),COLOR000099; STICKLINE(起爆,CLOSE,OPEN,2.2,0),COLOR0000CC; STICKLINE(起爆,CLOSE,OPEN,1.5,0),COLOR0000FF; STICKLINE(起爆,CLOSE,OPEN,0.5,0),COLORCC66FF; STICKLINE(起爆,OPEN,CLOSE,0.5,0),COLORYELLOW; :=(DIF-DEA)*2,COLORSTICK; TYP:=(HIGH+LOW+CLOSE)/3; :=(TYP-MA(TYP,21))/(0.015*AVEDEV(TYP,21)); DRAWTEXT_FIX(ISLASTBAR,0.0,0,0,HYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,DYBLOCK),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,GNBLOCK),COLORGREEN; DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,FGBLOCK),COLORWHITE; {MA2報警器 K線圖上變成藍色,立馬出局,(股市名言:預測與實戰(zhàn)截然區(qū)分,預測海闊天空,實戰(zhàn)機敏靈活),(股市名言:周k線走出第三次金叉,買入此股就發(fā)家),別猶豫,(股市名言:會買的是徒弟,會賣的是師傅,會休息的是師爺),(股市名言:一旦沖破壓力線,托著股價上天庭),切記}; VAR1P:=ZIG(3,13); STICKLINE((REF(VAR1P,2) < REF(VAR1P,1)) AND (VAR1P < REF(VAR1P,1)), CLOSE,OPEN,3,0),COLORBLUE; DRAWICON(CROSS(REF(ZIG(3,12),1),ZIG(3,12)),HIGH*1.02,2); STICKLINE((REF(VAR1P,2) > REF(VAR1P,1)) AND (VAR1P >REF(VAR1P,1)), CLOSE,OPEN,3,0),COLORYELLOW; DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,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(15,CONST(950-(ABS(大宗進)*250/DAZHIV))-20,30,950,IF(CONST(大宗進>0),RGB(255,0,0),RGB(23,125,255))); DRAWRECTREL(47,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0))); DRAWRECTREL(107,CONST(950-(ABS(非大宗進)*250/DAZHIV))-20,122,950,IF(CONST(非大宗進>0),RGB(255,0,0),RGB(23,125,255))); DRAWRECTREL(141,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; DRAWBMP((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*1.02,'BUY1'); DRAWBMP((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.03,'SELL1'); DRAWTEXT(CROSS(83,),H*1.04,' ')COLORYELLOW; 今日保護價:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW; 頂點:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE; 低點:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLINE; STICKLINE(CCI>=200 AND H>=頂點,O,C,3,0),COLORWHITE; STICKLINE(CCI<=100 AND L<=低點,O,C,3,0),COLORMAGENTA; DRAWTEXT(ISLASTBAR,頂點,'頂點'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,低點,'低點'),COLORRED;{COLORWHITE;}; {暴漲信號主圖} VAR5A:=EMA(DCLOSE,12)-EMA(DCLOSE,26); VAR6A:=EMA(VAR5A,9); VAR7A:=(VAR5A-VAR6A)*2*60; VAR8A:=CROSS(VAR7A-REF(VAR7A,1),15); DRAWICON(VAR8A,LOW*1.09,25); 空:=EMA(CLOSE,5); 均衡:=EMA(空,0),COLORFFFFFF; 下雙線:HHV(MA(HIGH,3),2),LINETHICK0,COLORGREEN; 上趨勢單線:LLV(MA(HIGH,3),1),LINETHICK0,COLORRED; VAR5:=FILTER(均衡>REF(均衡,1) AND 下趨勢雙線持幣<REF(下趨勢雙線持幣,1) AND CLOSE>REF(CLOSE,1),11); IF(VAR5>=1,L*0.996,DRAWNULL),COLORMAGENTA,CIRCLEDOT; B1:=REF(C,1);B2:=REF(C,2); SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0)))); VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0; VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)*100; VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13)*100; VARA:=BARSCOUNT(CLOSE); VARB:=VAR8<20 AND VAR9<23 AND VARA>35; VARC:=VARB AND COUNT(VARB,1)=1; VARD:=EMA(CLOSE,21)-EMA(CLOSE,8); VARE:=EMA(VARD,5); VARF:=TROUGH(3,6,1)<4 AND CROSS(VARD,VARE); VAR10:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3); VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR1A:=EMA(VAR19,100); VAR1B:=2*(VAR19-VAR1A); VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1); VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR1E:=EMA(VAR1D*0.97,3); VAR1F:=(HIGH+LOW+CLOSE)/3; VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14)); VAR21:=CROSS(VAR1E,LOW); 1:=VAR10; 買點2:=(VAR11+VAR13+VAR15+VAR17); 1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2; VAR22:=買點1 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 AND VAR20<(-110); DRAWTEXT(買點1>0,LOW+0.2,'買'),COLORRED; DRAWTEXT(買點2>0,LOW+0.2,'買'),COLORFF00FF; DRAWTEXT(賣點1>0,HIGH+0.1,'逃'), COLOR33FF33; 線:15,POINTDOT,COLORFFFFFF; 主力:VAR7A-REF(VAR7A,1),COLORRED; DRAWICON(CROSS(主力,黑馬線),黑馬線,25); LING0:0,POINTDOT,COLOR0FFFFF; |
|
來自: 常熟老李jlr5mr > 《薛斯通道》