布林線 {布林張口} 中軌: MA(CLOSE,20); 上軌: 中軌+STD(CLOSE,20); 下軌: 中軌-STD(CLOSE,20); 上極限: 中軌+2*STD(CLOSE,20); 下極限: 中軌-2*STD(CLOSE,20); YA:=MAX(上軌,上極限); YB:=MIN(上軌,上極限); XL:=(上極限-REF(上極限,1))/REF(上極限,1)*100>0.5; G0:=(YA/YB-1)*100<5.1 AND CROSS(C,上極限) AND XL; DRAWICON(G0,L-0.20,1);{顯示紅臉} MACD控盤 DIFF:=((EMA(CLOSE,26) - EMA(CLOSE,12)) * -1); DEA:=EMA(DIFF,9); DEA1:=EMA(DIFF,18); MACD:=(2 * (DIFF - DEA)); 操盤:STICKLINE(((MACD >= 0) AND (MACD >= REF(MACD,1))),0,MACD,4,1),color0000FF; 減倉:STICKLINE(((MACD >= 0) AND (MACD < REF(MACD,1))),0,MACD,4,0),colorFF00FF; 反彈:STICKLINE(((MACD < 0) AND (MACD >= REF(MACD,1))),0,MACD,4,1),colorFFFF00; 尋底:STICKLINE(((MACD < 0) AND (MACD < REF(MACD,1))),0,MACD,4,0),colorFFFF00; IF((DIFF < 0),DIFF,0),LINETHICK2,colorFFFF00; IF((DIFF < DEA),DIFF,DEA),LINETHICK2,colorFFFFFF; IF((DIFF < 0),0,DIFF),LINETHICK2,colorFF0000; STICKLINE((DIFF < MA(DIFF,2)),DIFF,DEA,6,0),LINETHICK2,colorFFFFFF; IF((DIFF > DEA),DEA,DEA),LINETHICK2,colorFF0000; 空倉:STICKLINE((DEA < MA(DEA,5)),DEA,DIFF,6,0),LINETHICK2,colorFFFFFF; RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=((3 * K) - (2 * D)); 周K:=MA("KDJ.K"(9,3,3),5); 周D:=MA("KDJ.D"(9,3,3),5); 周J:=MA("KDJ.J"(9,3,3),5); DRAWICON(((K < 20) AND CROSS(K,D)),MACD,8),LINETHICK0,color808080; 周金▲:dRAWTEXT(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),MACD,'▲'),LINETHICK0,colorred; 周死▼:dRAWTEXT(CROSS("KDJ.D"(9,3,3),"KDJ."(9,3,3)),(MACD * 1.5),'▼'),LINETHICK0,colorFF0000; CYC13:=((0.01 * EMA(AMOUNT,7)) / EMA(VOL,7)); CYC5:=((0.01 * EMA(AMOUNT,5)) / EMA(VOL,5)); CYC34:=((0.01 * EMA(AMOUNT,21)) / EMA(VOL,21)); VAR1:=((CYC5 > CYC13) AND (CYC13 > CYC34)); 0,CIRCLEDOT,colorAAAAAA; 持股:STICKLINE((VAR1 = 1),0,0,0,0),LINETHICK4,colorred; 持幣:STICKLINE((VAR1 = 0),0,0,0,0),LINETHICK4,colorFF0000; 操盤主圖 買線:=EMA(C,2); 賣線:=EMA(SLOPE(C,21)*20+C,42); BU:=cross(買線,賣線); SEL:=cross(賣線,買線); drawtext(bu,LOW*0.996,'B'),colorred,linethick3; drawtext(sel,HIGH*1.028,'S'),colorffff00,linethick3; stickline(買線>=賣線,low,high,1,0),colorred; stickline(買線>=賣線,close,open,4.5,0),color0000aa; stickline(買線>=賣線,close,open,4,0),color0000cc; stickline(買線>=賣線,close,open,3,0),color0000cc; stickline(買線>=賣線,close,open,2,0),color0000ee; stickline(買線<賣線,close,open,4.5,0),coloraaaa00; stickline(買線<賣線,close,open,4,0),colorbbbb00; stickline(買線<賣線,close,open,3,0),colorcccc00; stickline(買線<賣線,close,open,2,0),coloreeee00; stickline(買線<賣線,low,high,1,0),colorffff00; stickline(cross(買線,賣線) or cross(賣線,買線),open,close,3,0),color00ffff; 指導(dǎo)線: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF; 界: MA(CLOSE,27),linethick1,Color00FFFF; 超級短線 Var11:=HHV(HIGH,25); Var12:=LLV(LOW,25); 阻力線:EMA((CLOSE-Var12)/(Var11-Var12)*100,20)/2,colorf0f000,Linethick2; 突破線:= EMA((CLOSE-Var12)/(Var11-Var12)*100,5); 操作線:突破線/2,colorred, Linethick2; Var1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; Var2:=SMA(Var1,9,1)+100; Var3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; Var4:=SMA(Var3,3,1); Var5:=SMA(Var4,3,1)+100; Var6:=Var5-Var2; S: IF(Var6>100,Var6-100,0); STICKLINE(REF(S,1)<S,S,REF(S,1),5,0); STICKLINE(REF(S,1)>S,S,REF(S,1),5,0); 使用方法是: 當操作線(紅線)自下向上穿越阻力線時,買入; 操作線走平或拐頭向下趨勢時賣出; 兩條線互不交叉時持股或空倉,不予操作。 結(jié)合大勢操作更好。 逃頂:白柱變短賣 出現(xiàn)白柱買(配合操作線) 操盤密碼 CP1:HHV(HIGH,60),colorFFFF00; CP2:HHV(CLOSE,1),colorFFFFFF; 底部支撐:LLV(LOW,60),color6666FF; (EMA(CLOSE,240) * 0.75),LINETHICK3,colorFF0000; 鐵底:(EMA(CLOSE,240) * 0.75),colorFFFF00; VAR1:=MA(CLOSE,5); VAR2:=MA(CLOSE,30); 『強勢』:DRAWTEXT((VAR1 > VAR2),VAR2,'↑'),colorFF0000; 『弱勢』:DRAWTEXT((VAR1 <= VAR2),VAR2,'↓'),colorFF0000; VAR3:=MA(CLOSE,20); VAR4:=MA(CLOSE,60); VAR5:=CROSS(VAR3,VAR4); DRAWICON(VAR5,(HIGH * 1.04),2); DRAWTEXT(VAR5,(HIGH * 1.06),'賣出'),colorFFFFFF; VAR6:=CROSS(VAR1,VAR2); DRAWICON((VAR6 AND (CLOSE < 鐵底)),(LOW - (LOW * 0.04)),1); DRAWTEXT((VAR6 AND (CLOSE < 鐵底)),(LOW - (LOW * 0.05)),'←中底買'),colorFF0000; VAR7:=(((CLOSE - OPEN) / REF(CLOSE,1)) > 0.08); DRAWTEXT(FILTER(VAR7,1),(LOW * 0.99),'追'),colorFFFF00; DRAWTEXT(CROSS(底部支撐,鐵底),(LOW - (LOW * 0.02)),'小底'),colorFFCC00; DRAWTEXT(((MONTH = 7) AND (DAY = 28)),(底部支撐 - (底部支撐 * 0.02)),''),colorFFFFFF; 絕密波段 Var1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; Var2:=SMA(Var1,3,1); Var3:=SMA(Var2,3,1); Var4:=SMA(Var3,3,1); 波: Var3; 段: Var4; Var6:=CROSS(Var3,Var4) AND Var3<20; DRAWTEXT(FILTER(Var6,10)=1,40,'抄底'),LINETHICK3 ; STICKLINE(FILTER(Var6,10)=1,0,30,10,0),COLORGREEN ; Var7:=CROSS(Var4,Var3) AND Var3>80; STICKLINE(FILTER(Var7,5)=1,80,100,10,0),COLORYELLOW ; DRAWTEXT(FILTER(Var7,5)=1,70,'逃頂'),LINETHICK3 ,COLORYELLOW; Var8:=CROSS(Var2,Var3) AND Var3>80 AND Var3>Var4; STICKLINE(Var8,85,100,10,0) ; 90 ; 0; 跟莊建倉 A01:=DYNAINFO(7); A03:=BARSCOUNT(CLOSE); A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100); A05:=IF((A03 > 20),A04,0); A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009)))); A07:=DMA(A06,(VOL / CAPITAL)) * 60; A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0); Var1:=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); Var2:=EMA(Var1,8); Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); 趨勢:=EMA(Var3,3)-10; (趨勢>80); DRAWICON(CROSS(趨勢,0),0,1); ((A09 > 0 AND (趨勢<20 OR 趨勢>REF(趨勢,1)AND 趨勢<50))),colorFFFF00; 機構(gòu)建倉區(qū):0,LINETHICK0,colorFFFF00; Var4:=(趨勢-REF(趨勢,1))/REF(趨勢,1)*100; STICKLINE(趨勢<=13,0,20,5,0),colorcc9900; DRAWTEXT(FILTER(趨勢<=13,15),30,'準備現(xiàn)金'),colorcc9900; STICKLINE(趨勢<=13 AND Var4>13,0,50,5,0),color0099ff; Var5:=FILTER((趨勢<=13 AND Var4>13),10); DRAWTEXT(Var5,60,'買入'),color0099ff; STICKLINE(趨勢>=90 AND Var4,0,30,5,0),colorgray; Var6:=FILTER((趨勢>=90 AND Var4),10); DRAWTEXT(Var6,40,'清倉'),colorgray; Var7:=LLV(LOW,30); Var8:=HHV(HIGH,30); Var9:=EMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25; STICKLINE(Var9>90,100,105,10,2),COLORRED; Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100; DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'險'),Color00FF00,; DRAWICON(CROSS(90,Var9),95,9); Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100; Var12:=HHV(Var11,30)*8; 火焰山:EMA(IF(LOW<=Var7 AND 趨勢<40,(Var11+Var12),0),3)/618,COLORRED,linethick2; STICKLINE(火焰山>0,0 ,火焰山*1.2,5,0 ),COLORRED; Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5; Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5; 趨勢線: 趨勢,colorff0000; Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)*200; Var17:=EMA(Var16,5); 波浪峰:Var17,stick,colorff00ff; STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00; Var18:=MA(趨勢線,8); if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED; DRAWTEXT(CROSS(趨勢線,Var2)AND 趨勢線>REF(趨勢線,1)AND 趨勢線<50,50,'追漲'),COLORFF0000; 震倉洗盤 MI:=(CLOSE - REF(CLOSE,1)); AMI:=(SMA(MI,3,1) * 8); 股價未來走勢:(MA(REF(AMI,1),10) - MA(REF(AMI,1),20)); 動力趨勢:SMA(股價未來走勢,10,1); VAR1:=(((CLOSE + HIGH) + LOW) / 3); VAR2:=EMA(EMA(EMA(VAR1,1),13),21); 控盤度兼判洗盤:(((VAR2 - REF(VAR2,1)) / REF(VAR2,1)) * 100); VAR3:=LLV(LOW,33); VAR4:=HHV(HIGH,17); VAR5:=(EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),20) * 0.998); VAR6:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * VAR5)),1); VAR7:=EMA(((100 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,33))),20); VAR8:=EMA(VAR7,1); VAR9:=((VOL / CAPITAL) * 100); VARA:=(SUM(VAR9,5) >= 3); VARB:=((VARA / REF(VAR9,10)) >= 2); VARC:=HHV(CLOSE,5); VARD:=((VARC / REF(CLOSE,5)) >= 1.01); VARE:=(VAR8 > 20); VARF:=((HIGH / REF(LOW,20)) < 1.2); VAR10:=(WINNER(CLOSE) * 100); VAR11:=((((VARA AND VARE) AND VARB) AND VARF) AND VARD); VAR12:=FILTER(VAR11,20); VAR13:=EMA(WINNER(CLOSE),20); VAR14:=(((VAR13 > 0.85) AND (CLOSE OR ((SUM(VOL,3) / CAPITAL) > 0.1))) OR ((CLOSE / REF(CLOSE,20)) >= 1.9)); DRAWTEXT(VAR14,0.5,''); 強弱分界:0,colorB0CE4C; 莊家行蹤 Var1:=EMA(EMA(CLOSE,13),13); 控盤:= (Var1-REF(Var1,1))/REF(Var1,1)*1000,colorffcccc,pointdot; STICKLINE(控盤<0,控盤,0,4,0),colorwhite; 無莊控盤:控盤<0,colorwhite; STICKLINE(控盤>REF(控盤,1) AND 控盤>0,控盤,0,4,1),colorred; 有莊控盤: 控盤>REF(控盤,1) AND 控盤>0,colorred; Var2:=100*WINNER(CLOSE*0.95); STICKLINE(控盤<REF(控盤,1) AND 控盤>0,控盤,0,4,0),color00ff00; 主力出貨: 控盤<REF(控盤,1) AND 控盤>0,color00ff00; STICKLINE(Var2>50 AND COST(85)<CLOSE AND 控盤>0,控盤,0,4,0),colorff00ff; 高度控盤: Var2>50 AND COST(85)<CLOSE AND 控盤>0,colorff00ff; a10:=CROSS(控盤,0); 開始控盤:if(a10,6,0),coloryellow; 頂?shù)纂p收 Var1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3; 持幣區(qū)域:var1,colorfedcba; 持股區(qū)域:IF(Var1>0,Var1,0),colorred; 短頂:STICKLINE(Var1>9 AND FILTER(Var1< REF(Var1,1),5),Var1+2,0,3,0),COLORgreen; 大頂:STICKLINE(Var1>20 AND FILTER(Var1< REF(Var1,1),5),Var1+5,0,7,0),COLOR00ff00; Var2:=HHV(Var1>20,10); 危險: STICKLINE(Var2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),Var1+10,0,4,0); 注意止損:STICKLINE(Var2 AND FILTER(Var1< REF(Var1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),Var1+6,0,3,0); 短底:STICKLINE(Var1<-9 AND Var1> REF(Var1,1),Var1-2,0,3,0),COLORred; 大底:STICKLINE(Var1<-20 AND FILTER(Var1> REF(Var1,1),5),Var1-5,0,7,0),COLORyellow; 買入準備:Var1<-9 AND Var1> REF(Var1,1) ,colorwhite; 使用說明: 1.零軸下出現(xiàn)“紅柱子”和“黃柱子”分別表示“短期底部”和“中期底部” 2.零軸上出現(xiàn)“綠柱子”和“明綠柱子”分別表示“短期頂部”和“中期頂部” 3.持股區(qū)域和持幣區(qū)域分別代表一種趨勢 專家在線 LT:=100; LU:=0; LV:=38.2; 賣出預(yù)警:IF(LT,100,100),COLOR00FF00,POINTDOT; 持股信心:IF(LU,0,0),COLORRED,POINTDOT; 把錢拿穩(wěn):IF(LU,38.2,38.2),COLORWHITE,POINTDOT; 買入準備:IF(LU,0,0),COLORFFCC66,POINTDOT; LA:=REF(CLOSE,1); LB:=((SMA(MAX((CLOSE - LA),0),5,1) / SMA(ABS((CLOSE - LA)),5,1)) * 100); LC:=(HIGH - REF(HIGH,1)); LD:=(REF(LOW,1) - LOW); LE:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10); LF:=SUM(IF(((LC > 0) AND (LC > LD)),LC,0),10); LG:=SUM(IF(((LD > 0) AND (LD > LC)),LD,0),10); LH:=((LF * 100) / LE); LI:=((LG * 100) / LE); LJ:=MA(((ABS((LI - LH)) / (LI + LH)) * 100),5); AV:=(LB + LJ); LK:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); LL:=(LB - LK); LM:=(AV + LL); LO:=((((2 * CLOSE) + HIGH) + LOW) / 4); LP:=LLV(LOW,34); LQ:=HHV(HIGH,34); LR:=EMA((((LO - LP) / (LQ - LP)) * 100),13); LS:=EMA(((0.667 * REF(LR,1)) + (0.333 * LR)),2); 向?qū)Ь€:=LLV(LM,1); STICKLINE((向?qū)Ь€>225),95,90,4,1),COLORFFCC00; STICKLINE((向?qū)Ь€>235),100,95,4,1),COLORRED; STICKLINE(CROSS(235,向?qū)Ь€),100,90,4,1),COLOR00FF00; STICKLINE((LM<(0-1)),0,5,4,1),COLOR00FF00; STICKLINE((LM<(0-5)),5,10,4,1),COLORYELLOW; STICKLINE(CROSS(向?qū)Ь€,(0-3)),0,10,4,1),COLORRED; STICKLINE(((LR-LS)>0),LR,LS,16,0),COLORRED; STICKLINE(((LR-LS)<0),LR,LS,16,0),COLORFFCC66; 中國K線 {中國K線} 中軌:MA(CLOSE,22); 上軌:(中軌+2*STD(CLOSE,22)); 下軌:(中軌-2*STD(CLOSE,22)); A03:=((EMA(HIGH,3)+EMA(LOW,4))+EMA(CLOSE,3)*2)/4; A04:=REF(A03,1); A05:=((CLOSE+HIGH)+LOW)/3; STICKLINE((A03>A04),A04,HIGH,0.1,0),COLORRED; STICKLINE((A03>A04),A05,A04,4,1),COLORRED; STICKLINE((A03<A04),A03,LOW,0.1,0),COLORFFCC66; STICKLINE((A03<A04),A05,A04,4,1),COLORFFCC66; A0A:=A03; A0B:=REF(A03,1); DRAWICON((((A04<A05) and REF((A04>A05),1)) and (LOW<中軌)),LOW*0.990,4); DRAWICON(((A04>A05) and REF((A04<=A05),1)),HIGH*1.009,5); {DRAWNUMBER(((CLOSE>0) and ISLASTBAR),A0A,A0A,2);} TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14); HD := HIGH-REF(HIGH,1); LD := REF(LOW,1)-LOW; PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14); MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14); PDI:= PDM*100/TR; MDI:= MDM*100/TR; A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1)); B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)); A2:=BARSLAST(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1)); B2:=ref(c,A2+1)>c and ref("kdj.k"(9,3,3),A2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)); A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1)); D1:=ref(c,C1+1)<c and ref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)); C2:=BARSLAST(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1)); D2:=ref(c,C2+1)<c and ref("kdj.k"(9,3,3),C2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)); C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1)); D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)); C4:=BARSLAST(ref(cross(mdi,pdi),1)); D4:=ref(c,C4+1)<c and ref(mdi,C4+1)>mdi and cross(mdi,pdi); A4:=BARSLAST(ref(cross(PDI,MDI),1)); B4:=ref(c,A4+1)>c and ref(pdi,A4+1)<pdi and cross(pdi,mdi); STICKLINE(B4,l,l-0.04,6,0),COLORFFCCFF; DRAWTEXT(B4,L-0.05,'DMI底背'),COLORFFCCFF; STICKLINE(D4,H,H+0.04,6,0),COLORWHITE; DRAWTEXT(D4,H+0.08,'DMI頂背'),COLORWHITE; STICKLINE(B1,l,l-0.04,6,0),COLORFF00FF; DRAWTEXT(B1,l-0.05,'MACD底背'),COLORFF00FF; STICKLINE(B2,l,l-0.05,6,0),COLORYELLOW; DRAWTEXT(B2,L-0.06,'KDJ底背'),COLORYELLOW; STICKLINE(B3,L,L-0.04,6,0),COLORRED; DRAWTEXT(B3,L-0.05,'RSI底背'),COLORRED; STICKLINE(D1,H,H+0.04,6,0),COLORFFCC66; DRAWTEXT(D1,H+0.08,'MACD頂背'),COLORFFCC66; STICKLINE(D2,H,H+0.04,6,0),COLORC0A8FF; DRAWTEXT(D2,H+0.08,'KDJ頂背'),COLORC0A8FF; STICKLINE(D3,H,H+0.04,6,0),COLORFFCCCC; DRAWTEXT(D3,H+0.08,'RSI頂背'),COLORFFCCCC; Var27:=REF(CLOSE,1); Var28:=SMA(MAX(CLOSE-Var27,0),6,1)/SMA(ABS(CLOSE-Var27),6,1)*100; DRAWICON(IF(CROSS(76,Var28),1,0),HIGH*1.01,2); LL:=REF(CLOSE,1); MM:=((SMA(MAX(CLOSE-LL,0),7,1))/(SMA(ABS(CLOSE-LL),7,1)))*(100); FT2:=IF(ref(mm,1)>83 and mm<82,-1,0),Color99cc99; DRAWTEXT(FILTER(fT2=-1,3),HIGH*1.03,'←賣出'),colorwhite 莊影難逃 Var2:=REF(LOW,1); Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100; Var4:=EMA(IF(CLOSE*1.2,Var3*10,Var3/10),3); Var5:=LLV(LOW,38); Var6:=HHV(Var4,38); Var7:=IF(LLV(LOW,90),1,0); Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7; 有莊的影子: STICKLINE(Var8,0,Var8,6,1) , COLORffaaff; 趨勢線: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORaabbdd; aa:=((ref(趨勢線,1)<ref(趨勢線,2) and 趨勢線<-30) and 趨勢線>=ref(趨勢線,1)) or (ref(cross(-30,趨勢線),1) and cross(趨勢線,-30)) or 趨勢線=-30; drawtext(aa,500,'砸鍋賣田買'),coloryellow; 砸鍋賣田買:if(aa,500,-30),coloryellow; bb:=((ref(趨勢線,1)<ref(趨勢線,2) and 趨勢線<-20 and 趨勢線>-25) and 趨勢線>=ref(趨勢線,1)) or (ref(cross(-20,趨勢線),1) and cross(趨勢線,-20)); drawtext(bb,300,'見底信號'),colorred; 見底信號:if(bb,300,-20),colorred; cc:=((ref(趨勢線,1)<ref(趨勢線,2) and 趨勢線<-25 and 趨勢線>-30) and 趨勢線>=ref(趨勢線,1)) or (ref(cross(-25,趨勢線),1) and cross(趨勢線,-25)); drawtext(cc,400,'莫錯失機會'),color00ff00; 莫錯失機會:if(cc,400,-25),color00ff00; 底部快顯:if(cross(-20,趨勢線),100,-20),linethick2,colorf0f000; drawtext(cross(-20,趨勢線),120,'★'),colorf0f000; 機會來臨:if(cross(-25,趨勢線),150,-25),linethick2,colorf00ff0; drawtext(cross(-25,趨勢線),170,'★'),colorf00ff0; 砸鍋賣田等:if(cross(-30,趨勢線),200,-30),linethick2,colorwhite; drawtext(cross(-30,趨勢線),220,'★'),colorwhite; {見底信號:}-20,colorred,pointdot; {莫要錯失機會:}-25,colorlime,pointdot; {砸鍋賣田等著你:}-30,coloryellow,pointdot; 機構(gòu)買 絕佳買 操作K線 另外導(dǎo)入 打開大智慧---左上”功能”鍵---自編指標---自編---新建---紅字帖”名稱”,黑字貼”下面空白的主體框里---確認,保存---再新建編下一個---完成后”導(dǎo)出”---雙擊每個自編指標(存放在右邊)---點左邊的自編指標再點常用---保存---確認導(dǎo)出源代碼---導(dǎo)出成功---關(guān)閉大智慧,重新開啟,自編指標出現(xiàn)在下面常用指標中……OK 正確無誤買賣點 MA3:MA(CLOSE,4),ColorFFFfff,linethick1; MA8:MA(CLOSE,8),Color208fff,linethicK1; MA49:=MA(CLOSE,49),Color00ff00,linethick1; angel:=EMA(C,2),colorf00ff0; devil:EMA(SLOPE(C,21)*20+C,42),pointdot,colorf00ff0,linethick3; BUY:=cross(angel,devil); SEL:=cross(devil,angel); stickline(cross(angel,devil) or cross (devil,angel),open,close,5,0),colorf00ff0; drawtext(buy,LOW*0.99,'↑買'),coloryellow,linethick3; drawtext(sel,HIGH*1.03,'↓賣'),color00ff00,linethick3; z:zig(3,5),color00ffff,linethick2; var3:=PEAKBARS(3,5,1)<10; var5:=IF(var3=1,2,0); 頂:= IF(var5=2,2,0); 頂A:if(頂>ref(頂,1),50,0),color00ff00,linethick2; DRAWTEXT(頂A=50,45,'↓快走'),COLORccff66; |
|