l2:=ma(c,3); l3:=ma(c,60); l4:=ma(c,120); l5:=ma(c,40); Var1:=SUM(WINNER(CLOSE)*100,13)/10-(SUM(WINNER(CLOSE)*100,1)/20+10); {海水:STICKLINE(Var1<0,0,Var1*7,10,0),COLORBLUE;}
狂龍出海: IF(CROSS(l2,l3) AND CLOSE<l4,-60,0); {DRAWICON(狂龍出海,38,1);} Var2:=CLOSE/l5*100<78; Var3:=CLOSE/l3*100<74; Var4:=HIGH>(low*1.051); Var5:=Var4 AND COUNT(Var4,5)>1; Var6:=CLOSE/HHV(HIGH,BARSCOUNT(CLOSE>0))*100; 狂龍?zhí)降? IF((ref(c,13)-CLOSE)/ref(c,13)*100*Var3>15 AND SUM(VOL/CAPITAL,13)*100<18 AND VOL/CAPITAL*100<2.5 AND (ref(c,1)-CLOSE)/ref(c,1)*100<8 AND Var6<=50 AND Var5 AND (Var2 OR Var3),80,0); {DRAWICON(FILTER(狂龍?zhí)降?6),35,1);} DRAWTEXT(FILTER(狂龍?zhí)降?6),70,'狂龍?zhí)降?);
DIFF:(EMA(CLOSE,12) - EMA(CLOSE,26))*600,colorMAGENTA,LINETHICK2; DEA:EMA(DIFF,9),colorFF9922,LINETHICK1;
DDIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26)); DDEA:=EMA(DDIFF,9); MACD:=1200*(DDIFF-DDEA); STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0; STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;
STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,4,0 ),COLOR00aaff; STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,3.3,0 ),COLOR00bbff; STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,2.2,0 ),COLOR00ccff; STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,1.65,0 ),COLOR00ddff; STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,1.1,0 ),COLOR00eeff; STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,0.55,0 ),COLOR00ffff; STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,4 ,0 ),COLOR0000aa; STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,3.3 ,0 ),COLOR0011bb; STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,2.2,0 ),COLOr0022cc; STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,1.65 ,0 ),COLOR0033dd; STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,1.1 ,0 ),COLOR0044ee; STICKLINE(MACD>=ref(MACD,1)and MACD>0,0,MACD,0.55 ,0 ),COLOR0055ff; STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,4,0 ),COLOraa00bb; STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,3.3 ,0 ),COLORbb11bb; STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,2.2,0 ),COLOrcc22bb; STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,1.65,0 ),COLORdd33bb; STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,1.1,0 ),COLORee44bb; STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,0.55 ,0 ),COLORff55bb; STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,4,0 ),COLOrffaa00; STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,3.3 ,0 ),COLORffbb11; STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,2.2,0 ),COLOrffcc22; STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,1.65 ,0 ),COLORffdd33; STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,1.1 ,0 ),COLORffee44; STICKLINE(MACD<=ref(MACD,1)and MACD<0,0,MACD,0.55 ,0 ),COLORffff55;
MACD1:=2*(DDIFF-DDEA)*600,colorred,LINETHICK1; MACD2:=ma(MACD1,3); {STICKLINE(MACD1>MACD2 and macd1>0,0,MACD1,4,0),colorMAGENTA; STICKLINE(MACD1>MACD2 and macd1<0,0,MACD1,1,0),color22AAFF; STICKLINE(MACD1<MACD2,0,MACD1,1,0),colorcyan;} MACDL:=HHv(MACD2,13); {PARTLINE(MACDL,MACDL<MACD1),colorred,LINETHICK1; PARTLINE(MACD1,MACD1<MACD2),colorcyan; PARTLINE(MACD1,MACDL<MACD1),colorred,LINETHICK1;} STICKLINE(MACDL<MACD1,MACD1,MACD2,2,0),colorred;
ys1:=(HIGH+LOW+CLOSE*2)/4; rk3:=EMA(ys1,10); rk4:=STD(ys1,10); rk5:=(ys1-rk3)*100/rk4; rk6:=EMA(rk5,5); rk7:=EMA(rk6,10); 漲:=EMA(rk6,10)+100/2-5; 跌:=EMA(漲,4); 天晴:IF(cross(漲,跌) and 跌<-10,68,0),linethick1,COLORred; 雨季將來:IF(cross(跌,80),150,180),colorFF9933,linethick1; 彩虹一:ema(跌,4),COLOR2288FF,linethick2; 彩虹二:ema(彩虹一,4),colorWHITE; 彩虹三:=ema(彩虹二,4); 彩虹四:=ema(彩虹三,4); STICKLINE(CROSS(MACD1,MACD2) AND DEA<60 AND 彩虹一<60,0,MACD1,6,0),colorFFFFFF; stickline(漲>跌,跌,跌+18,6,1),colorYELLOW; stickline(漲<跌,漲,漲+14,6,1),colorFF9922; {DRAWICON(漲>跌,跌+18,12); DRAWICON(漲<跌,漲+14,11); } DRAWICON(天晴,71,10); {DRAWICON(cross(跌,80),150,11); DRAWTEXT(cross(漲,跌) and 跌<20 and 跌>-10,88,'!雨暫停'),colorD9D9FF;} DRAWTEXT(天晴>0,58,'天晴'),coloryellow; {Var11:=SUMBARS(VOL,FINANCE(7)*100); Var22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL); Var3:=(CLOSE-Var22)/Var22*100; Var4:=HHV(Var3,Var11); Var5:=LLV(Var3,Var11); Var6:=(Var3-Var5)/(Var4-Var5)*100; K:=SMA(Var6,3,1); D:=SMA(K,3,1); J:=3*K-2*D; MA1:=MA(J,3); STICKLINE(filter(J>MA1 AND J<=3,5)=1 and 跌<0,漲,漲+20,4,0); DRAWTEXT(filter(J>MA1 AND J<=3,5)=1 and 跌<0,88,'注意'),colorff33ff;}; |
|