{益盟操盤線源碼} var1:=100-90*(hhv(high,20)-close)/(hhv(high,20)-llv(low,20)); =============================================================== 大智慧主圖指標
e1:=BARSCOUNT(c); ah:=hhv(h,200); al:=llv(l,200); b0:=(ah-al)/40; kb1:=h+b0; kb2:=l-b0; stickline((e1+0)/34=FLOOR((e1+0)/34),kb2,kb2-3*b0,2,0),COLOryellow,LINETHICK3; drawtext((e1+0)/34=FLOOR((e1+0)/34),kb2-2*b0,'時間窗'),COLORwhite; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorFF6C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),colorFF7B00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),colorFF9C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),colorFFBE00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.5,0),colorFFCC00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color070084; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color0000A3; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color0000B7; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0000CD; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),color0000E9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),color0754E9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),color076EF3; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color077BF3; STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color0726CA; STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color0726CA; STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorDE9100; STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),colorDE9100; 賣出線:=98; 階段賣:=96; 趨勢4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA 底部:=10; 買入信號:drawicon(CROSS(趨勢4,底部),low,1); 賣出:drawicon(cross(賣出線,趨勢4),high,2); 頂壓:HHv(ma(h,11),50),Color00FF00,LINETHICK3; 短壓:HHv(ma(h,11),15),Color0090E0,LINETHICK2; XL1:=llv(ma(h,11),1); 趨勢3:IF(XL1>=短壓,短壓,XL1),Colorwhite,LINETHICK1; RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; Kk1:=ref(RSV,1);Kk2:=ref(RSV,2);ka:=rsv;Kk3:=ref(RSV,3);Kk4:=ref(RSV,4);kk5:=ref(rsv,5); kk80:=3*80-(pow(2/3,1)*kk1+pow(2/3,2)*kk2+pow(2/3,3)*kk3+pow(2/3,4)*kk4+3*pow(2/3,5)*kk5); kkk80:=sma((kk80*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1); 交叉:=3*sma(sma(ka,3,1),3,1)-(pow(2/3,1)*kk1+pow(2/3,2)*kk2+pow(2/3,3)*kk3+pow(2/3,4)*kk4+3*pow(2/3,5)*kk5); k轉(zhuǎn)折:=3*sma(ka,3,1)-(pow(2/3,1)*kk1+pow(2/3,2)*kk2+pow(2/3,3)*kk3+pow(2/3,4)*kk4+3*pow(2/3,5)*kk5); k轉(zhuǎn)折價0:=sma((k轉(zhuǎn)折*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1); 日交叉0:=sma((交叉*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1); DRAWTEXT(k轉(zhuǎn)折價0>=kkk80 and k轉(zhuǎn)折價0>=日交叉0,日交叉0,'●'),COLORff00ff; 趨勢:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), COLORYELLOW,linethick2; 警戒:=趨勢<=5 ; d1:=c/l>1.05 and count(警戒,3)>=1 and c/ref(c,1)>1.01; DRAWTEXT(d1>0,L,'★長生劍'),Color00FF00; 趨勢1:= MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5); 買入1:= c/o>1.04 and count(趨勢1<10,3)>=1; D2:=(買入1); DRAWTEXT(D2>0,L,'☆孔雀翎'),Colorff00FF; m1:=(CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100; K:=SMA(M1,3,1); D:=SMA(K,3,1); J:=3*K-2*D; dd:=m1<-300; DA:=c/o>1.04 and count(m1<-300,3)>=1; D3:=DA; DRAWTEXT(D3>0,L,'★碧玉刀'),Color006EFF; 個股:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; D4:=count(個股<-8,3)>=1 and ( c/l>1.05 ) ; DRAWTEXT(D4>0,L,'◎多情環(huán)'),Colorred; LCa:=REF(CLOSE,1); E:=-100*(HHV(HIGH,84)-CLOSE)/(HHV(HIGH,84)-LLV(LOW,84)); 底:=(( E<-98)*2000); D5:=( c/l>1.04 and c>ref(c,1)) and count(底,2)>=1; DRAWTEXT(D5>0,L,'Ψ離別鉤'),Color0090E0; DIFFA:=(EMA(CLOSE,12) - EMA(CLOSE,26))*100+50; Dc:=c/L>1.05 and DIFFa<40; d6 :=filter(Dc,5); DRAWTEXT(D6>0,L,'↑霸王槍'),Color00ff00; BB1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.035 ; BB2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2; BB3:=(CLOSE-OPEN)/OPEN*100; BB4:=REF(CLOSE,1); BB5:=SMA(MAX(CLOSE-BB4,0),6,1)/SMA(ABS(CLOSE-BB4),6,1)*100; BB6:=COUNT(BB5<20,20)>=1; BB108:=BB3>9 AND BB6; BB7:=(CLOSE-OPEN)/OPEN*100; BB8:=REF(CLOSE,1); BB9:=SMA(MAX(CLOSE-BB8,0),6,1)/SMA(ABS(CLOSE-BB8),6,1)*100; BB10:=COUNT(BB9<20,20)>=1; BB109:=BB7>9 AND BB10; DRAWTEXT(bb108 or bb109>0,L,'★拳頭'),Colorwhite;
var2:=REF(LOW,1); Var3:=SMA(ABS(LOW-Var2),13,1)/SMA(MAX(LOW-Var2,0),13,1)*100; Var4:=EMA(IF(CLOSE*1.2,Var3*13,Var3/13),13); Var5:=LLV(LOW,34); Var6:=HHV(Var4,34); Var7:=IF(LLV(LOW,56),1,0); Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7; Var9:=EMA(CLOSE,5); Var10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(10); Var11:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7*(-1); Var12:=EMA(CLOSE,5)*(-1); STICKLINE(Var8>REF(Var8,1),0,Var8,4,1),color10FFFF,linethick0; 主力進場:IF(Var8>REF(Var8,1),Var8*8,0),color10FFFF,linethick0; STICKLINE(Var11>REF(Var11,1),0,Var11,4,1),colorFFF810; 洗盤:IF(Var11>REF(Var11,1),Var11*8,0),colorFFF810,linethick0; 主力持倉:LOW,colorFF10FF,linethick0; 5,colorwhite; XL1:=MA(LOW,2)*0.96; XL2:=MA(LOW,26)*0.85; XL3:=REF(XL1,1),,,,Color006EFF; DRAWTEXT(XL3,Var8*2,'買'),Color006EFF; (34),colorred; ---------------------------------------------------------------------------- 黑馬線(黑馬將現(xiàn)) VarTIME:=IF(YEAR>=9999 AND MONTH>=11 AND DAY>=09,0,1); VarDTIME:=IF(YEAR=9999 AND MONTH=11 AND DAY=08,1,0); DRAWTEXT(VarDTIME,115,'明天到期'),COLOR008000; DRAWTEXT(VarDTIME,100,'請續(xù)費'),COLOR008000; DRAWTEXT(VarDTIME,85,'QQ 575149928'),COLOR008000; DRAWTEXT(VarDTIME,70, '電話'),COLOR008000; DRAWTEXT(VarDTIME,45, '13506785929'),COLOR008000; 韁繩:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); 黑馬線:EMA(韁繩,5) ,LINETHICK2,COLOR6600FF; A2:=(黑馬線-REF(黑馬線,1))/REF(黑馬線,1)*100*VarTIME; ; A3:=EMA(C,5); A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100*VarTIME; ; 趨勢線:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW; A5:=((HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100)*VarTIME;; DRAWTEXT(FILTER(REF(黑馬線,1)>90 AND A2<0,7),黑馬線,'跑'),COLOR00FF00; DRAWTEXT(CROSS(韁繩,黑馬線)AND 黑馬線<A5,黑馬線,'黑馬'),COLORRED; DRAWTEXT(CROSS(黑馬線,A5)AND 趨勢線<80,黑馬線,'追漲'); DRAWTEXT(CROSS(趨勢線,0)AND 黑馬線<40,5,'大黑馬'); 底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED; DRAWICON(底部 AND A3>REF(A3,1),25,4); 黑馬將現(xiàn):REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 短期頂:IF(CROSS(黑馬線,韁繩)AND 黑馬線>70 AND 趨勢線>80,90,100),COLORFF0000; ------------------------------------------------------------------------------- 預(yù)警:CPX1(1)--加入。 預(yù)警:CPX1(1)--加入。技術(shù)--其他--主力追莊指標--主力持倉--大于--主力進場。預(yù)警。 |
|