買賣天王
DF火:= BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)); DF山:= COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),12); 天王賣:REF(DF火,4)>0 and REF(DF火,3)>0 AND REF(DF火,2)>0 AND REF(DF火,1)>0 AND DF火=0 AND REF(DF火,1)>DF山,colorgreen,linethick2; CMC0:=REF(C,2)*0.865; CMC1:=REF(C,13)*0.772; CMDSY:=100*vol/CApitAl; 天王買1:=(C-MIN(CMC0,CMC1))/C<0.085 AND SUM(CMDSY,5)/5<1.8; bwVar1:=(C-MA(C,48))/MA(C,48)*100<-30 AND (C-MA(C,70))/MA(C,70)*100<-27 AND COUNT((C-MA(C,48))/MA(C,48)*100<-30 AND (C-MA(C,70))/MA(C,70)*100<-27,2)=1 AND (O-REF(C,1))/REF(C,1)>-0.07 and COUNT(c=o,6)=0; bwVar2:=(C-DMA(EMA(C,8),SUM(V,9)/2.8/CAPITAL))/DMA(EMA(C,8),SUM(V,9)/2.8/CAPITAL)*100; bwVar3:=REF(bwVar2,1)<-46 AND bwVar2>REF(bwVar2,1) AND REF(bwVar2,1)<REF(bwVar2,2) AND bwVar2-REF(bwVar2,1)>2.2;{-42,1.8} 天王買2:=(bwVar1 or bwVar3); bwVar10:=SMA(SMA((INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100,50,1),40,1); 天王買3:=(C-MA(C,70))/MA(C,70)*100<-24 AND bwVar10<23 AND COUNT((C-MA(C,70))/MA(C,70)*100<-23,2)=1 AND (O>C OR O<C) AND O/REF(C,1)>0.96;{-23} bwVar15:=DMA(EMA(C,5),SUM(V,8)/2.8/CAPITAL); bwVar10:=REF((C-bwVar15)/bwVar15*100,1)<-40; bwVar11:=(C-bwVar15)/bwVar15*100>REF((C-bwVar15)/bwVar15*100,1); bwVar12:=REF((C-bwVar15)/bwVar15*100,1)<REF((C-bwVar15)/bwVar15*100,2); bwVar13:=(C-bwVar15)/bwVar15*100-REF((C-bwVar15)/bwVar15*100,1)>1.8; bwVar14:=H>L*1.053 AND COUNT(H>L*1.053,5)>2 AND (C/MA(C,30)*100<75 OR C/MA(C,50)*100<78); 天王買4:=bwVar10 AND bwVar11 AND bwVar12 AND bwVar13 OR bwVar14;{-34,1.76} jdVar1:=(C-MA(C,48))/MA(C,48)*100<-28; jdVar2:=SMA(MAX(C-REF(C,1),0),12,1)/SMA(ABS(C-REF(C,1)),12,1)*100>23; 天王買5:=jdVar1 AND jdVar2 AND VOL>MA(VOL,18) AND COUNT(c=o,6)=0; xrVar2:=(C-MA(C,50))/MA(C,50)*100<-23; xrVar3:=SMA(MAX(C-REF(C,1),0),3,1)/SMA(ABS(C-REF(C,1)),3,1)*100>16; xrVar4:=CROSS(100*(HHV(H,27)-C)/(HHV(H,27)-LLV(L,27)),79); xrVar5:=(O-REF(C,1))/REF(C,1)<0.05 AND V>MA(V,23); 天王買6:=xrVar2 AND xrVar3 AND xrVar4 AND (O>C OR O<C) AND xrVar5; 天王買: (天王買1+天王買2+天王買3+天王買4+天王買5+天王買6 )>=2,stick3d,colorred; 成本多頭指標源碼 {成本多頭} 短線成本均線:=EMA(AMOUNT,5 ) /EMA(VOL,5 ) ; 中線成本均線:=EMA(AMOUNT,13 ) /EMA(VOL,13 ) ; 長線成本均線:=EMA(AMOUNT,34 ) /EMA(VOL,34 ) ; 成本線多頭排列:短線成本均線>中線成本均線 and 中線成本均線>長線成本均線; 橫盤新高 放量:=VOL/REF(MA(VOL,5),1)>1.8; PZ1:=MA(CLOSE,60); PZ2:=HHV(HIGH,60); PZ3:=LLV(LOW,60); 最高價均價比:=(PZ2-PZ1)/PZ1; 最低價均價比:=(PZ1-PZ3)/PZ1; 長期橫盤:=REF(最高價均價比,1)<0.10 AND REF(最低價均價比,1)<0.10; 新高:=HIGH=HHV(HIGH,60); 橫盤放量突破:放量 AND 長期橫盤 AND 新高,stick3d,colorred ; 橫盤未放量突破:not(放量) AND 長期橫盤 AND 新高,colorgreen,linethick2; {送紅包} HBV12:=((VOL)/(CAPITAL))*(100); HBV15:=HHVBARS(HIGH,50); HBV16:=SUM(VOL,HBV15); HBV17:=((CLOSE-REF(OPEN,HBV15))/(REF(OPEN,HBV15)))*(100); HBV22:=(REF(CLOSE,2))*(0.86500001); HBV23:=(REF(CLOSE,13))*(0.77200001); HBV24:=MIN(HBV22,HBV23); 送紅包1:((CLOSE-HBV24)/(CLOSE)<0.02999999) AND (HBV17<(-35)) AND ((SUM(HBV12,5))/(5)<1.8); HBV26:=((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100); HBV27:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100); HBV28:=EMA(HBV27,9); 送紅包2:HBV27<(-50) AND HBV26>9 AND HBV27<HBV28; 仙人指路指標源碼 指標源碼 {仙人指路} XV1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; XV2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; XV3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; XV4:=(XV1+2*XV2+3*XV3)/6; XV5:=MA(XV4,3); XV8:=IF(YEAR>=2008 AND MONTH>0,0,1); XV9:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200; XVA:=SMA(XV9,3,1); XVB:=SMA(XVA,3,1); XVC:=3*XVA-2*XVB; XVD:=LLV(LOW,5); XVE:=HHV(HIGH,5); XVF:=EMA((CLOSE-XVD)/(XVE-XVD)*100,4)*2; XV10:=EMA(0.667*REF(XVF,1)+0.333*XVF,2); XV11:=3*XVF-2*XV10; XV12:=POW(MA(CLOSE,5),2)+MA(CLOSE,5); XV13:=POW(MA(LOW,5),2)+MA(LOW,5); XV14:=POW(MA(HIGH,5),2)+MA(HIGH,5); XV15:=(XV12-LLV(XV13,64))/(HHV(XV14,64)-LLV(XV13,64))*150+65-10; XV16:=SMA(XV15,3,1)*1.5-100; XV17:=SMA(XV16,3,1); XV18:=3*XV16-2*XV17; XV19:=(HIGH+LOW+CLOSE*2)/4; XV1A:=EMA(XV19,13); XV1B:=STD(XV19,13); XV1C:=(XV19-XV1A)*100/XV1B; XV1D:=EMA(XV1C,5); XV1E:=EMA(XV1D,13); XV1F:=EMA(XV1D,13)+200-100; XV20:=EMA(XV1F,10); XV21:=3*XV1F-2*XV20; XV22:=XVA+XVF+XV16+XV1F; XV23:=XVB+XV10+XV17+XV20; XV24:=XVC+XV11+XV18+XV21; XV25:=(HIGH+LOW+CLOSE)/3; XV26:=AMOUNT/VOL/100; XV27:=SUM(AMOUNT,5)/SUM(VOL,5)/100; XV28:=(XV25-MA(XV25,34))/(0.015*AVEDEV(XV25,34)); XV29:=DMA(AMOUNT/VOL/100,VOL/CAPITAL); XV2A:=(HIGH+LOW+CLOSE+XV25)/4; XV2B:=EMA(XV2A,24); XV2C:=STD(XV2A,24); XV2D:=(XV2A-XV2B)/XV2C*100; XV2E:=(XV25-MA(XV25,24))/(0.015*AVEDEV(XV25,24)); XV2F:=EMA(XV2D,5); XV30:=(XV26-MA(XV26,21))/(0.015*AVEDEV(XV26,21)); XV31:=(XV27-MA(XV27,90))/(0.015*AVEDEV(XV27,90)); XV32:=((XV2F+XV2E+XV28)/3+165)/4; XV33:=(EMA(EMA(EMA(XV32,15),10),5)-25)*2+XV29; XV34:=(XV22+XV23+XV24*30)/32/5-15; XV35:=EMA(XV34,13); XV36:=(XV32+XV34)/2/1.1; XV37:=XV36*XV8; XV38:=EMA((XV33+XV35)/2,2)*XV8; XV3A:=CROSS(XV37,0)*XV8 AND COUNT(XV5<-12,2)>=1 OR CROSS(XV37,XV38) AND COUNT(XV5<-12,2)>=1; 仙人指路:XV3A OR (CROSS(XV37,XV38) AND COUNT(XV5<-10,2)>=1 OR CROSS(XV37,0) AND COUNT(XV5<-10,2))>=1,stick3d,colorred; (wan) 四朵金花指標源碼 四朵金花} 日K:="kd.k"(9,3,3); 日D:="kd.d"(9,3,3); 日J:="kdj.j"(9,3,3); KD金花:count( CROSS(日K,日D) and CROSS(日J,日D) ,2)>=1,linethick0; {MACD買入條件} XDIFF :="MACD.diff"(26,12,9);XDEA :="MACD.dea"(26,12,9);XMACD :="MACD.MACD"(26,12,9); MACD金花:COUNT( CROSS(Xdiff,Xdea) AND XDIFF>XDEA,2) >=1,linethick0; 價金花:COUNT( CROSS(ma(C,5),ma(C,10)) OR cross(ma(C,10),ma(C,20)),2)>=1,linethick0 ; 量金花:COUNT( CROSS(MA(VOL,5),MA(VOL,10)),2)>=1,linethick0; 四朵金花: KD金花 AND MACD金花 AND 價金花 AND 量金花,stick3d; 量能突破指標源碼 {量能突破} 流通:=AMOUNT/VOL; PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9); JJ:=REF(EMA(PJJ,3),1); QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2))); ZLL:=VOL/CAPITAL; HSL1:=IF(ZLL>10,10,ZLL); HSL:=(XVL/20)/1.15; 攻擊流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22)); GJJ:=EMA(攻擊流量,8); LLJX:=EMA(攻擊流量,3); 資金流向:LLJX,COLOR0000FF;{LINETHICK0} STICKLINE(資金流向>0,資金流向,0,7,0),COLOR0000FF; STICKLINE(資金流向<0,資金流向,0,7,0),COLORFF0000; 流量基線:=GJJ; ZJLL:=REF(LLJX,1); QZJJ:=((LLJX-ZJLL)/ZJLL)*100; 資金增幅百分比:IF(LLJX>0 AND ZJLL<0,ABS(QZJJ),IF(LLJX<0 AND ZJLL<0 AND LLJX<ZJLL,-QZJJ,QZJJ)),LINETHICK0; 力度:HSL/1000,LINETHICK0; TTJ:=BARSLAST((VOL=HHV(VOL,40))); 量能突破:TTJ<2 AND TTJ>=1 AND C>REF(C,TTJ) and 資金增幅百分比>0,linethick0,colorblack; DRAWICON(TTJ<2 AND TTJ>=1 AND C>REF(C,TTJ) and 資金增幅百分比>0 , HHV(資金流向,40)*1.5,1);(wan) 三叉見頂指標源碼 nday := 3; down := hhv(high,20)/high<=1.15; pma1 := ma(close,5); pma2 := ma(close,10); vma1 := ma(vol,5); vma2 := ma(vol,10); diff := ema(close,12) - ema(close,26); dea := ema(diff,9); ppday := barslast(cross(pma2,pma1)); vvday := barslast(cross(vma2,vma1)); macdday := barslast(cross(dea,diff)); 見頂:ppday<=nday and vvday<=nday and macdday<=nday,stick3d; 黃金眼指標源碼 {黃金眼} MA5:=MA(C,5); MA10:=MA(C,10); MA20:=MA(C,20); MA30:=MA(C,30); MA40:=MA(C,40); ma60:=MA(C,60); 月黃金眼:ma5>ma20 AND ma5>ma10 AND CROSS(ma10,ma20),linethick0; 季黃金眼:ma20>ma60 AND ma20>ma40 AND CROSS(ma40,ma60),linethick0; 短長黃金眼:ma5>ma60 AND ma5>ma10 AND CROSS(ma10,ma60),linethick0; 黃金眼:月黃金眼 or 季黃金眼 or 短長黃金眼,stick3d,colorred; 月死亡眼:ma5<ma20 AND ma5<ma10 AND CROSS(ma20,ma10),linethick0; 季死亡眼:ma20<ma60 AND ma20<ma40 AND CROSS(ma60,ma20),linethick0; 短長死亡眼:ma5<ma60 AND ma5<ma10 AND CROSS(ma60,ma10),linethick0; 死亡眼:月死亡眼 or 季死亡眼 or 短長死亡眼,stick3d,colorgreen; |
|