紅入灰出
N:=21;
Var1:=HHV(HIGH,9)-LLV(LOW,9); Var2:=HHV(HIGH,9)-CLOSE; Var3:=CLOSE-LLV(LOW,9); Var4:=Var2/Var1*100-70; Var5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; Var6:=(2*CLOSE+HIGH+LOW)/4; Var7:=SMA(Var3/Var1*100,3,1); Var8:=LLV(LOW,34); Var9:=SMA(Var7,3,1)-SMA(Var4,9,1); VarA:=IF(Var9>100,Var9-100,0); VarB:=HHV(HIGH,34); AA:= VarA*2; BB:= EMA((Var6-Var8)/(VarB-Var8)*100,13); VarC:=EMA(0.667*REF(BB,1)+0.333*BB,2); CC:= SMA(Var5,20,1); VarD:=SMA(AA,2,1)-AA; VarE:=EMA(0.667*REF(BB,1)+0.333*BB,2)-BB; VAR1a:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2a:=SMA(VAR1a,9,1)+100; VAR3a:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR4a:=SMA(VAR3a,3,1); VAR5a:=SMA(VAR4a,3,1)+100; VAR6a:=VAR5a-VAR2a; 提前抄底: IF(VAR6a>n,VAR6a-n,0),ColorFFFFFF; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; e:=CROSS(83,RSI); STICKLINE( e,e,55,1,0),Color00FFFF; DRAWTEXT(e,50,' 逃頂'),COLORff9966; STICKLINE(REF(提前抄底,1)<提前抄底,提前抄底,REF(提前抄底,1),5,0),colorff00ff; STICKLINE(REF(提前抄底,1)>提前抄底,提前抄底,REF(提前抄底,1),5,0),colorffcc66; 主升浪
注:路線上方的上升三浪 R:=AMOUNT/100000000; R1:=IF(CLOSE>REF(CLOSE,1),R,0); R3:=SUM(R1,8); jj:=R3*CLOSE; aa:=ma(jj,3); a:sma(aa,3,1),COLORRED,LINETHICK1; b:sma(sma(aa,3,1),3,1),coloryellow; 平衡位:MA(jj,34),color00ff00,linethick1; MACD實戰(zhàn)
DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58),colorwhite; DEA1:=EMA(DIFF1,88),coloryellow; MACD1:2*(DIFF1-DEA1)*100 ; mamacd1:ma(macd1,5),,colorwhite; DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26),colorwhite; DEA:=EMA(DIFF,50),coloryellow; MACD:2*(DIFF-DEA)*100 ; mamacd:ma(macd,5),,colorwhite; STICKLINE(macd1<mamacd1,0,macd1,4,0),COLORgreen; STICKLINE(macd>mamacd,macd1*0.6,0,4,0),COLORyellow; STICKLINE(macd<0,mamacd,macd1,4,0),COLORgreen; STICKLINE(macd1>mamacd1 and macd>mamacd ,0,macd1,4,0),COLORred; DDX指標(biāo) AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
買量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED; 賣量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0; 進(jìn)出量:=買量+賣量,COLOR00FFFF; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,4,0),COLORFF6600,linethick2; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,3,0),linethick2,COLORFF9900; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,1.5,0),linethick2,COLORFFCC00; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,0.5,0),linethick2,COLORf0f000; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,4,0),linethick2,COLOR000099; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,3,0),linethick2,COLOR0000CC; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,1.5,0),linethick2,COLOR0000FF; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,0.5,0),linethick2,COLORCC66FF; N:=5; M:=13; N日內(nèi)凈流入:SUM(進(jìn)出量,N),LINETHICK1,COLORYELLOW; 流入:REF(N日內(nèi)凈流入,1), COLORred; 連紅天:(進(jìn)出量>0); M日內(nèi)翻紅天:COUNT(進(jìn)出量>0,M); 走熊天:(N日內(nèi)凈流入<0); 走牛天:(N日內(nèi)凈流入>0); 強(qiáng)勢天:((N日內(nèi)凈流入>REF(N日內(nèi)凈流入,1))>0 AND N日內(nèi)凈流入>0); 弱勢天:((N日內(nèi)凈流入<REF(N日內(nèi)凈流入,1))>0 AND N日內(nèi)凈流入<0); 1250均線指標(biāo) {1250均線}
ma20:ma(c,20),colorwhite,linethick2; ma120:ma(c,120),colorffcccc,linethick2; ma250:ma(c,250),colorffcc66,linethick2; 乖離線:=((c-ref(ma20,1))/20+ma20)*1.20; tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1); tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20); STICKLINE(TT1,l,l-0.09,4,0),coloryellow; DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow; STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow; DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并線開花'),coloryellow; STICKLINE(tt2,l,l-0.09,4,0),coloryellow; DRAWTEXT(tt2,l-0.13,'買點1'),coloryellow; STICKLINE(cross(c,乖離線),h,h+0.09,4,0),color00ff00; DRAWTEXT(cross(c,乖離線) ,h+0.13,'賣點'),color00ff00; STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66; DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66; STICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff; DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'買點2'),colorff00ff; 量價十九強(qiáng)
MV3:=EMA(V,3); MA3:=EMA(C,3); MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416; MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416; MV5:=EMA(V,5); MA5:=EMA(C,5); MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416; MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416; MV10:=EMA(V,10); MA10:=EMA(C,10); MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416; MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; 強(qiáng)弱度:(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF; QBD:=CROSS(強(qiáng)弱度,50) and COUNT(強(qiáng)弱度>50,7)<=3; 啟爆點:IF(QBD AND COUNT(QBD,4)=1,50,0),COLOR00FFFF,POINTDOT,LINETHICK0; QBSJ:=BARSLAST(CROSS(強(qiáng)弱度,50)); 操作區(qū):IF(COUNT(COUNT(強(qiáng)弱度>0,3)>=1,QBSJ)>=QBSJ-1,3,0),COLORFF00FF,POINTDOT,LINETHICK0; 十九強(qiáng):IF(強(qiáng)弱度>=80,80,0),COLOR0000FF,LINETHICK2; 選股:強(qiáng)弱度>=80 AND COUNT(強(qiáng)弱度>=80,5)=1,COLORFFFFFF,POINTDOT,LINETHICK0; 預(yù)備股:IF(強(qiáng)弱度>=70 and COUNT(強(qiáng)弱度>70,4)>=3 and CLOSE>=OPEN,30,0),COLOR00FF00,LINETHICK2; GZQ:=BARSLAST(十九強(qiáng) OR 預(yù)備股); 關(guān)注期:IF(BETWEEN(GZQ,0,9),GZQ,0),COLORFF00FF,POINTDOT,LINETHICK0; 黃金坑:IF(關(guān)注期 AND HHVBARS(C,3)=2 AND L<REF(C,1),-10,0),COLOR00FFFF,LINETHICK2; {以下設(shè)置副圖顯示方式} 脫離MA5:(L/MA(C,5)-1)*100,COLORFF9988,POINTDOT,LINETHICK0; DRAWTEXT(十九強(qiáng) AND 脫離MA5>=3.5,90,'←險'),COLOR00FF00; STICKLINE(啟爆點,0,50,0,0),COLOR00FFFF; STICKLINE(啟爆點,0,30,2,0),COLOR00FFFF; DRAWTEXT(啟爆點=50,50,'←啟爆'),COLOR00FFFF; STICKLINE(關(guān)注期,關(guān)注期*3,關(guān)注期*5,4,0),COLOR0000FF; STICKLINE(關(guān)注期 and C<REF(C,1),關(guān)注期*3.5,關(guān)注期*4.5,4,1),COLORFFFFFF; STICKLINE(操作區(qū) and 強(qiáng)弱度>0,3,-3,6,1),COLORFF00FF; STICKLINE(操作區(qū) and 強(qiáng)弱度<0,3,-3,6,1),COLOR00FF00; FXJ買賣點 Var3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
Var4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; Var5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100; Var6:=(Var3+Var4+Var5)/3; Var7:=EMA(Var6,5); 指標(biāo): EMA(EMA(Var3,5),5)*3, COLORSTICK; Var8:=IF(Var6<=-20,10,0); Var9:=HHV(Var8,10); STICKLINE(Var8=10,20,10,5,0),COLOR6666FF; VarA:=IF(Var9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0); K:EMA(Var7,5)*2, COLORff00ff; D:EMA(K,5), COLORWHITE; J:K*3-D*2, COLORYELLOW; VarB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10; 換手: VOL/CAPITAL*100, COLORGREEN; 成交〖萬手〗: VOL/10000, COLORYELLOW; DRAWTEXT(Var8=10 AND FILTER(Var8=10,5),-10{15},'接近底部'),linethick1,COLORYELLOW; STICKLINE(Var8=10 AND FILTER(Var8=10,5),-1.6{20},-10,5,0),coloryellow; DRAWTEXT(VarA=20,15,'底部'),linethick1,colorwhite; STICKLINE((VarA=20),0,10,5,0),colorwhite; VARC:=(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));
VARD:=(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));
STICKLINE((VARC=1),(-14),0,4,0),Color0000FF; DRAWTEXT((VARC=1),(-14),'買'),Color0000FF; STICKLINE((VARD=1),14,0,4,0),Color00FF00; DRAWTEXT((VARD=1),18,'賣'),Color00FF00; VarE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var11:=VarF<REF(Var10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(Var11 AND COUNT(Var11,30)=1,15,'大資金活動'),linethick1,COLORff00ff; STICKLINE(Var11 AND COUNT(Var11,30)=1,1,10,5,0),colorff00ff; Var12:=(HIGH+LOW+CLOSE)/3; Var13:=(Var12-MA(Var12,14))/(0.015*AVEDEV(Var12,14)); Var14:=(Var12-MA(Var12,70))/(0.015*AVEDEV(Var12,70)); Var15:=IF(Var13>=150 AND Var13<200 AND Var14>=150 AND Var14<200,10,0); Var16:=IF(Var13<=-150 AND Var13>-200 AND Var14<=-150 AND Var14>-200,-10,Var15); Var17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; Var18:=100-ABS(Var17); Var19:=IF(Var18<90,Var18,100); Var1A:=IF(VarE>0,VarE,0); Var1B:=IF(Var14>=200 AND Var13>=150,15,IF(Var14<=-200 AND Var13<=-150,-15,Var16))+60; Var1C:=Var1A>48 AND Var1B>60 AND Var19<100; DRAWTEXT(Var1C AND COUNT(Var1C,30)=1,15,'大筆出貨'),linethick1,COLORffcc66; STICKLINE(Var1C AND COUNT(Var1C,30)=1,0,10,5,0),colorffcc66; |
|