自用主圖1 Y:=(H+L)/2; AA:=REF((SMA(Y,3,1)),3); BB:=REF((SMA(Y,25,1)),5); MA1:AA,COLOR33FF33,LINETHICK1; Q:IF(MA1>REF(MA1,1),MA1,DRAWNULL),COLORRED,LINETHICK1; MA2:BB,COLORE66878,LINETHICK1; QMA2:IF(MA2>REF(MA2,1),MA2,DRAWNULL),COLOR000099,LINETHICK1; R2:=REF(BB,5); KU1:=IF(HIGH=HHV(HIGH,3),1,0); KD1:=IF(LOW=LLV(LOW,3),1,0); UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0))); DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0))); 上分形:IF(HIGH>=R2,UL,REF(UL,BARSLAST(HIGH>R2))), POINTDOT,LINETHICK3,,COLORMAGENTA; 下分形:IF(LOW<=R2,DL,REF(DL,BARSLAST(LOW<=R2))), POINTDOT,LINETHICK3,COLORYELLOW; 買線:=EMA(C,2); 賣線:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(買線,賣線); SEL:=CROSS(賣線,買線); DRAWICON(BU,LOW*0.98,1); DRAWICON(SEL,HIGH*1.02,2); STICKLINE(BU,LOW,HIGH,0.0,0),COLORYELLOW; STICKLINE(BU,C,O,2,0),COLORYELLOW; STICKLINE(SEL,LOW,HIGH,0.0,1),COLORGREEN; STICKLINE(SEL,C,O,2,1),COLORGREEN; 乖離線:=((C-REF(COST(90),1))/20+250)*1.20; W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); 突破盤整:=W4 AND COUNT(W4,5)=1; STICKLINE(突破盤整,OPEN,CLOSE,2,0),COLORRED; L1:=C=LLV(C,20); L2:=BARSLAST(L1); L3:=IF(W2>0,REF(C,L2),REF(C,L2)); L4:=CROSS(REF(L3,1),C); DD:=L4 AND COUNT(L4,5)=1; STICKLINE(DD,OPEN,CLOSE,2,0),COLORGREEN; 自用主圖2 N:=20; MID:=MA(C,N); VART1:=POW((C-MID),2); VART2:=MA(VART1,N); VART3:=SQRT(VART2); UPPER:=MID+2*VART3; LOWER:=MID-2*VART3; BOLL:REF(MID,1),COLORFFFFFF,POINTDOT; UB:REF(UPPER,1),COLORFF4242; LB:REF(LOWER,1),COLORFF00FF; 買線:=EMA(C,2); 賣線:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(買線,賣線); SEL:=CROSS(賣線,買線); DRAWICON(BU,L-0.1,1); DRAWICON(SEL,H+0.1,2); STICKLINE(BU,OPEN,CLOSE,2,1),COLORYELLOW; STICKLINE(SEL,OPEN,CLOSE,2,1),COLORGREEN; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'*'),COLORYELLOW; TR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); ATR:=MA(TR,14);{大智慧加上這兩句定義} AA:=(HHV(HIGH,20) - (2 * ATR)); BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1)); SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE); BBB:=BARSLAST(BB); SSSB:=BARSLAST(SSS); B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1))); B1B:=BARSLAST(B1); B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3)); B2B:=BARSLAST(B2); B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2)); DRAWTEXT((B1 = 1),(LOW - 0.6),'$'),COLORYELLOW; DRAWTEXT((B2 = 1),(LOW - 0.6),'$'),COLORMAGENTA; 自用主圖3 MA05:=MA(C,5); MA10:=MA(C,10); MA20:=MA(C,20); MA30:=MA(C,30); 五日乖離率:=(C-MA05)/MA05*100; BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; 三拾日乖離率:=(C-MA30)/MA30*100,NODRAW; VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1); VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1); BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 強勢狙擊:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10); 加倉:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA10>REF(MA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ; 清倉:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖離率<REF(三拾日乖離率,1) AND MA10<REF(MA10,1),10); DRAWTEXT(加倉 ,LOW*0.98,'$'),COLORRED; JC:=CROSS(0,五日乖離率) AND 三拾日乖離率<REF(三拾日乖離率,1) AND MA10>REF(MA10,1) ; 減倉:=FILTER(JC,10); MR:=COUNT(CROSS(五日乖離率,0),3)>=1 AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30; 買入:=FILTER(MR,10); DRAWTEXT(減倉,HIGH*1.02,'*'),COLORCYAN; STICKLINE(買入,L,L*0.99,4,0),COLORYELLOW; DRAWTEXT(買入,LOW*0.98,'B'),COLORYELLOW; STICKLINE(清倉,H,H*1.01,4,0),COLORGREEN; DRAWTEXT(清倉,HIGH*1.02,'S'),COLORGREEN; DRAWTEXT(強勢狙擊,LOW*0.98,'$'),COLORMAGENTA; VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100); MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50; 壓力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF,pointdot; 支撐:MA(REF(LLV(C,30),1),2),COLORABFF46,pointdot; A:=AMOUNT/V/100; VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5); 操盤線:=EMA(((VARA/10)+EMA(A,10)),3); 行情線:=EMA(A,3); 重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382; 趨勢線:EMA(((SLOPE(C,22)*20)+C),55),COLOR33FF33,LINETHICK1; 紅升:IF(重心>=趨勢線,趨勢線,DRAWNULL),COLORRED,LINETHICK1; 條件選股如下: MA05:=MA(C,5); MA30:=MA(C,30); 五日乖離率:=(C-MA05)/MA05*100; 三拾日乖離率:=(C-MA30)/MA30*100; MR:=COUNT(CROSS(五日乖離率,0),3)>=1 AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30; 買入:FILTER(MR,10); 加倉: MA05:=MA(C,5); MA10:=MA(C,10); MA30:=MA(C,30); BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3); 三拾日乖離率:=(C-MA30)/MA30*100; 加倉:FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA10>REF(MA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
強勢狙擊 MA05:=MA(C,5); MA10:=MA(C,10); MA30:=MA(C,30); BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 強勢狙擊:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10); 自用主圖4 MA8:MA(C,8),COLORYELLOW,LINETHICK1; MA20:MA(C,20),COLORMAGENTA,POINTDOT; MA89:MA(C,89),COLORFF4242; MA120:MA(C,120),COLORCYAN,NODRAW; MA250:MA(C,250),COLORGREEN,POINTDOT,NODRAW; 乖離線:=((C-REF(MA20,1))/20+MA20)*1.20; TT1:=CROSS(MA20,MA120) AND CROSS(MA20,MA250) AND V>REF(V,1); TT2:=MA89>REF(MA89,1) AND MA20>MA89 AND MA20>REF(MA20,2) AND V>REF(V,1) AND CROSS(C,MA20); LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI:=SMA(RSI1,N3,1),COLOR33FF33,LINETHICK1; AA:=REF(RSI,N2)=HHV(RSI,2*N2+1); BB:=BACKSET(AA,N2+1); CC:=FILTER(BB,N2) AND RSI=HHV(RSI,N2+1); A1:=BARSLAST(REF(CC,1)); 頂背離:=REF(CLOSE,A1+1)<CLOSE AND REF(RSI,A1+1)>RSI AND CC; AA2:=REF(RSI,N2)=LLV(RSI,2*N2+1); BB2:=BACKSET(AA2,N2+1); CC2:=FILTER(BB2,N2) AND RSI=LLV(RSI,N2+1); A2:=BARSLAST(REF(CC2,1)); 底背離:=REF(CLOSE,A2+1)>CLOSE AND REF(RSI,A2+1)<RSI AND CC2; VAR1:=(HIGH+LOW)/2; AO:=EMA(VAR1,5)-EMA(VAR1,34),COLOR33FF33,LINETHICK1; AO5:=EMA(AO,5),COLORFFFFFF; N:=3; VAR0:=REF(AO,N)=HHV(AO,2*N+1); VAR2:=BACKSET(VAR0,N+1); VAR3:=FILTER(VAR2,N) AND AO=HHV(AO,N+1); B1:=BARSLAST(REF(VAR3,1)); M頂:=REF(CLOSE,B1+1)<CLOSE AND REF(AO,B1+1)>AO AND VAR3; VAR4:=REF(AO,N)=LLV(AO,2*N+1); VAR5:=BACKSET(VAR4,N+1); VAR6:=FILTER(VAR5,N) AND AO=LLV(AO,N+1); B2:=BARSLAST(REF(VAR6,1)); M底:=REF(CLOSE,B2+1)>CLOSE AND REF(AO,B2+1)<AO AND VAR6; STICKLINE(頂背離,H,H+0.09,4,0),COLORGREEN; DRAWTEXT(頂背離,H+0.13,'R'),COLORGREEN; STICKLINE(底背離,L,L-0.15,4,0),COLORYELLOW; DRAWTEXT(底背離,L-0.13,'R'),COLORYELLOW; STICKLINE(M頂,H,H+0.09,4,0),COLORGREEN; DRAWTEXT(M頂,H+0.13,'M'),COLORGREEN; STICKLINE(M底,L,L-0.15,4,0),COLORYELLOW; DRAWTEXT(M底,L-0.13,'M'),COLORYELLOW; 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; 自用主圖5 A1:=EMA(C,14)COLORWHITE,LINETHICK1; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 突破:REF(EMA(C,14),1),NODRAW; 距離:(C-突破)/突破*100,NODRAW; 出擊:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1), DRAWNULL),COLORRED,LINETHICK1; 休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1), DRAWNULL),COLORGREEN,LINETHICK1; 漲幅:IF(A1X>=0,(C-出擊)/出擊*100,DRAWNULL)NODRAW; 跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW; ♂10%:IF(H>=出擊*1.1,出擊*1.1,DRAWNULL),COLORRED,POINTDOT; ♂20%:IF(H>=出擊*1.2,出擊*1.2,DRAWNULL),COLORRED,POINTDOT; ♂30%:IF(H>=出擊*1.3,出擊*1.3,DRAWNULL),COLORRED,POINTDOT; ♀Ⅰ:IF(L<休假*0.9,休假*0.9,DRAWNULL),COLORGREEN,POINTDOT; ♀Ⅱ:IF(L<休假*0.8,休假*0.8,DRAWNULL),COLORGREEN,POINTDOT; ♀Ⅲ:IF(L<休假*0.7,休假*0.7,DRAWNULL),COLORGREEN,POINTDOT; STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW; STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1), REF(EMA(C,14),1)*0.998,2,0)COLORWHITE; STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0), COLORWHITE; AS A1:=C/REF(C,34)*100; A2:=INDEXC/REF(INDEXC,34)*100; AS:(A1/A2)*100; MA5:MA(AS,5); G-ROC VA1:=EMA(C,13); VA2:=EMA(C,21); ROC:(VA1/VA2)*100,COLOR33FF33; Q:IF(ROC>REF(ROC,1),ROC,DRAWNULL),COLORRED; 壓力:HHV(MA(ROC,3),13),COLORFFFFFF,NODRAW; 支撐:LLV(MA(ROC,3),13),COLOR33FF33,NODRAW; N2:=3; AA:=REF(ROC,N2)=HHV(ROC,2*N2+1); BB:=BACKSET(AA,N2+1); CC:=FILTER(BB,N2) AND RSI=HHV(ROC,N2+1); A1:=BARSLAST(REF(CC,1)); 頂背離:=REF(CLOSE,A1+1)<CLOSE AND REF(ROC,A1+1)>ROC AND CC; STICKLINE(頂背離,103,103.5,3,0),COLORGREEN; AA2:=REF(ROC,N2)=LLV(ROC,2*N2+1); BB2:=BACKSET(AA2,N2+1); CC2:=FILTER(BB2,N2) AND ROC=LLV(ROC,N2+1); A2:=BARSLAST(REF(CC2,1)); 底背離:=REF(CLOSE,A2+1)>CLOSE AND REF(ROC,A2+1)<ROC AND CC2; STICKLINE(底背離,97,96.5,3,0),COLORYELLOW;
超賣 A1:=REF(C,1); A2:=SMA(MAX(C-A1,0),5,1)/SMA(ABS(C-A1),5,1)*1000; A3:=BARSLAST(REF(CROSS('RSI.RSI1'(6,12,24),'RSI.RSI2'(6,12,24)),1)); A4:=A2-LLV(A2,10); A5:=(MA(A4,2)*3+A4*13)/16; A6:=IF(A5>13,MA(A5,2),A5)/6; RSI1:=SMA(MAX(C-A1,0),6,1)/SMA(ABS(C-A1),6,1)*100; RSI2:=SMA(MAX(C-A1,0),12,1)/SMA(ABS(C-A1),12,1)*100; RSI3:=SMA(MAX(C-A1,0),24,1)/SMA(ABS(C-A1),24,1)*100; 壓力:=HHV(MA(RSI2,3),12); 支撐:=LLV(MA(RSI2,3),12); 中間:(HHV(MA(RSI2,3),12)+LLV(MA(RSI2,3),12))/2,COLORRED,LINETHICK2; STICKLINE(RSI2<支撐,中間,RSI2,2,0)COLORGREEN; STICKLINE(RSI2>=支撐 AND RSI2<中間,中間,RSI2,2,0)COLORYELLOW; STICKLINE(RSI2>=中間 AND RSI2<壓力,中間,RSI2,2,0)COLORLIRED; STICKLINE(RSI2>=壓力,中間,RSI2,2,0)COLORRED; 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)); DRAWTEXT(B3,RSI2,'底背'); B1:=RSI1>=RSI2 AND RSI2>=RSI3; S1:=RSI1<RSI2 AND RSI2<RSI3; BS1:=NOT(RSI1>=RSI2 AND RSI2>=RSI3)AND NOT(RSI1<RSI2 AND RSI2<RSI3); STICKLINE(B1,80,82,2,1)COLORRED; STICKLINE(S1,80,82,2,1)COLORGREEN; STICKLINE(BS1,80,82,2,1)COLORYELLOW; 短線:IF(CROSS(A6,1) AND (A6<30)AND RSI2<35 AND RSI2>=支撐 AND RSI2<中間,30,20),COLORMAGENTA,LINETHICK2; G-AS C1:C/INDEXC; O1:=O/INDEXO; ZLDX:MA(C1,5),LINETHICK2; STICKLINE(C1>=O1 AND C1>ZLDX,C1,ZLDX,6,0),COLORRED; STICKLINE(C1<O1 AND C1<=ZLDX ,ZLDX,C1,6,0),COLORCYAN;
主籌散籌 主籌估算:EMA(WINNER(C)*70,3),LINETHICK2,COLORRED; (函數(shù)介紹:WINNER(CLOSE):獲利盤比例。WINNER(CLOSE),表示以當前收市價賣出的獲利盤比例,該函數(shù)僅對日線分析周期有效。 散籌估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),LINETHICK1,COLORGREEN; 籌碼鎖定:散籌估算-主籌估算,COLORFFBB00; 動態(tài)底部:EMA(IF(L<= LLV(L,99),SMA(ABS(L-REF(L,1)),99,1) /SMA(MAX(L-REF(L,1),0),99,1),0)*5,3),COLORYELLOW; STICKLINE(動態(tài)底部>0,0,動態(tài)底部,4,0),COLORYELLOW; STICKLINE(籌碼鎖定>0,籌碼鎖定,散籌估算,4,0),COLOR009900; STICKLINE(籌碼鎖定<=0,0,散籌估算,4,0),COLOR009900; STICKLINE(籌碼鎖定>0,0,籌碼鎖定,4,0),COLORFFBB00; STICKLINE(籌碼鎖定<0,0,籌碼鎖定,4,0),COLORFFBB00; 主籌估算,LINETHICK2,COLORRED; 漲:CROSS(主籌估算,籌碼鎖定),COLORWHITE; 強:CROSS(主籌估算,散籌估算),COLORMAGENTA; STICKLINE(漲,0,籌碼鎖定,4,0),COLORWHITE; STICKLINE(強,0,散籌估算,4,0),COLORMAGENTA; DRAWICON(CROSS(主籌估算,散籌估算),散籌估算,1); DRAWICON(CROSS(主籌估算,籌碼鎖定),主籌估算-0.2,1); 視窗 MFI:(H-L)*100000/V,NODRAW,COLOR33FF33; MA5:=MA(MFI,5); MA34:=MA(MFI,34); VAC:=-(MA5-MA34); STICKLINE(VAC>REF(VAC,1),0,VAC,2.2,1),COLORRED; STICKLINE(VAC<REF(VAC,1),0,VAC,2.2,1),COLORGREEN; 成交:VOL,COLORFFFFFF,POINTDOT,NODRAW; A1:=MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1; A2:=MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9; A3:=MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9; A4:=MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1; 綠窗:IF(A1=1,0.1,0),COLORGREEN,NODRAW; STICKLINE(A1,0,VAC,0.5,0),COLORGREEN; 衰退:IF(A2=1,0.1,0),COLOR0000FF,NODRAW; STICKLINE(A2,0,VAC,0.5,0),COLOR0000FF; 偽裝:IF(A3=1,0.1,0),COLORFF4242,NODRAW; STICKLINE(A3,0,VAC,0.5,0),COLORFF4242; 蟄伏:IF(A4=1,0.1,0),COLOR00AAFF,NODRAW; STICKLINE(A4,0,VAC,0.5,0),COLOR00AAFF; B1:=C>REF(C,1) AND V>REF(V,1); B2:=C<REF(C,1) AND V<REF(V,1); 多空:COUNT(B1+B2,13)/13,NODRAW,COLORFFFFFF;
愚公漲跌 Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; Q3:=SMA(Q2, 9, 1); Q4:=SMA(Q3, 3, 1); K:3*Q3-2*Q4,COLOR33FF33,LINETHICK1; QK:IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1; 趨勢線:EMA(Q3, 3),LINETHICK1,COLORFFFFFF; DRAWTEXT(CROSS(趨勢線, K) AND REF(K,1)>80, REF(K,3), 'T'),COLORRED,LINETHICK5; 逢低買: DRAWTEXT(REF(CROSS(趨勢線,K),82) AND 趨勢線>1.3*K,K,'R'),LINETHICK1; 買: DRAWTEXT(REF(CROSS(K,趨勢線),1) AND K>1.3*趨勢線,趨勢線,'B'),COLORRED,LINETHICK1; VAR3:=PEAKBARS(3,15,1)<10; VAR5:=IF(VAR3=1,2,0); 頂:= IF(VAR5=2,2,0); 頂A:IF(頂>REF(頂,1),20,0),COLORGREEN,LINETHICK2; 金叉: CROSS(K,趨勢線); DRAWICON(金叉,K*1,1); AA:=REF(K,N2)=HHV(K,2*N2+1); BB:=BACKSET(AA,N2+1); CC:=FILTER(BB,N2) AND K=HHV(K,N2+1); A1:=BARSLAST(REF(CC,1)); 頂背離:=REF(CLOSE,A1+1)<CLOSE AND REF(K,A1+1)>K AND CC; STICKLINE(頂背離,75,80,5,0),COLORGREEN; AA2:=REF(K,N2)=LLV(K,2*N2+1); BB2:=BACKSET(AA2,N2+1); CC2:=FILTER(BB2,N2) AND K=LLV(K,N2+1); A2:=BARSLAST(REF(CC2,1)); 底背離:=REF(CLOSE,A2+1)>CLOSE AND REF(K,A2+1)<K AND CC2; STICKLINE(底背離,20,30,5,0),COLORYELLOW; 成交量 量:VOL,COLOR33FF33,NODRAW; 預量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORRED; STICKLINE(CLOSE>=REF(CLOSE,1),VOL,0,2.5.1,1),COLORRED; STICKLINE(CLOSE< REF(CLOSE,1),VOL,0,2.5.1,1),COLORCYAN; 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,AA*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSE<OPEN,AA*(HIGH-LOW),VOL /2)),LINETHICK0,COLORCYAN; STICKLINE(買盤>0,0,買盤,1.2,0),COLORRED; V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED; DRAWTEXT(V2>=1,VOL*0.95,'*'),COLORYELLOW; 買賣%:=ABS(買盤/賣盤),LINETHICK0,COLORWHITE; 買%:買盤/量,COLORRED,NODRAW; DDX:=買盤-賣盤; N日內(nèi)凈流入:=SUM(DDX,5); 走牛:BARSLASTCOUNT(N日內(nèi)凈流入>0),COLORFFFFFF; 五紅:COUNT(DDX>0,5),COLOR33FF33,NODRAW; 十三紅:COUNT(DDX>0,13),COLORRED,NODRAW; M5:MA(買盤,5),COLORFFFFFF,LINETHICK1; MM5:MA(賣盤,5),COLOR33FF33,LINETHICK1; M%:ABS(M5/MM5),NODRAW,COLORRED; 量比:V/MA(V,5),COLORFFFFFF,POINTDOT; 量能:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100; STICKLINE(量能>=100,買盤,VOL,0.3,0),COLORMAGENTA; VARA:=IF(C>=O,H,0); VAR2:=IF(C<=O,REF(H,1),VARA); VAR3:=IF(C>=O,V,0); VAR4:=IF(C<=O,REF(V,1),VAR3); VAR5:=COUNT(VAR2>REF(VAR2,1) AND VAR4<REF(VAR4,1),3)>=2 AND C>O; DRAWTEXT(VAR5, 0,'#'),COLORYELLOW; VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 成交:VOL,COLOR33FF33,POINTDOT; MA1:SMA(V,5,1),COLORRED,LINETHICK1; MA2:SMA(V,40,1),COLORFFFFFF,LINETHICK1; 換手率:=100*VOL/(FINANCE(7)/100); 五日:100*SUM(V,5)/(FINANCE(7)/100),COLOR33FF33,NODRAW; 十日:100*SUM(V,10)/(FINANCE(7)/100),COLORRED,NODRAW; 量比:VOL/MA(VOL,C),COLORFFFFFF; STICKLINE(VOL>0,VOL,0,2,0),COLORFF9088; STICKLINE(換手率>=3 AND 換手率<7, VOL,0,2,0),COLORYELLOW; STICKLINE(換手率>=7 AND 換手率<11, VOL,0,2,0) ,COLORMAGENTA; STICKLINE(換手率>=1 AND 換手率<3, VOL,0,2,0),COLORCYAN; STICKLINE(換手率>=11, VOL,0,2,0),COLOR0022EE; VARA:=IF(C>=O,H,0); VAR2:=IF(C<=O,REF(H,1),VARA); VAR3:=IF(C>=O,V,0); VAR4:=IF(C<=O,REF(V,1),VAR3); VAR5:=COUNT(VAR2>REF(VAR2,1) AND VAR4<REF(VAR4,1),3)>=2 AND C>O; DRAWTEXT(VAR5, 0,'*'),COLORFF4242; 莊影 VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 成交:VOL,POINTDOT,COLOR00FF00; MFI:(H-L)*100000/V,COLORRED,NODRAW; 換手率:=100*VOL/(FINANCE(7)/100); 五日:100*SUM(V,5)/(FINANCE(7)/100),COLORFFFFFF,NODRAW; 十日:100*SUM(V,10)/(FINANCE(7)/100),COLOR33FF33,NODRAW; 三十:100*SUM(V,30)/(FINANCE(7)/100),COLORRED,NODRAW; 六十:100*SUM(V,60)/(FINANCE(7)/100),COLORFFFFFF,NODRAW; 百日:100*SUM(V,100)/(FINANCE(7)/100),COLOR33FF33,NODRAW; 量比:VOL/MA(VOL,C),COLORRED; 主動買盤:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW), IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT; 主動賣盤:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT; STICKLINE(VOL>0,VOL,0,2,1),COLORWHITE; DDX:=主動買盤+主動賣盤,NODRAW; A1:=SUMBARS(VOL,CAPITAL); CMA:=IF(CAPITAL>0,SUM(AMOUNT,A1)/SUM(VOL,A1)/100,EMA(CLOSE,120)); 百分之百換手價:CMA,NODRAW,COLORFFFFFF;{100%換手平均成本價}; STICKLINE(VOL>0,VOL,0,2.5.1,0),COLORFF9088; STICKLINE(換手率>=3 AND 換手率<7, 主動買盤,VOL,1,0),COLORYELLOW; STICKLINE(換手率>=7, 主動買盤,VOL,1,0) ,COLORBROWN;
STICKLINE(主動買盤>0,0,主動買盤,2.5.1,0),COLORRED; STICKLINE(主動賣盤<0,0,主動賣盤,2.5.1,0),COLOR00FF00; VARA:=IF(C>=O,H,0); VAR2:=IF(C<=O,REF(H,1),VARA); VAR3:=IF(C>=O,V,0); VAR4:=IF(C<=O,REF(V,1),VAR3); VAR5:=COUNT(VAR2>REF(VAR2,1) AND VAR4<REF(VAR4,1),3)>=2 AND C>O; DRAWTEXT(VAR5, 0,'*'),COLORYELLOW; 操盤參考 來勢: EMA(CLOSE,7)-EMA(CLOSE,21),COLOR33FF33; 福星: EMA(來勢,7), COLORSTICK,COLORRED; VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1; 決策: IF(VAR1,0.5,0), STICK,COLORFF4242; 必買: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,-0.7,-1),COLORFFFFFF ,LINETHICK1 ; 必賣: IF(PEAKBARS(3,15,1)=1,1.7,2),COLOR33FF33,LINETHICK1; 趨勢: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,COLORRED; 逃頂: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLORFF4242,LINETHICK1 ; AA:0,COLORFFFFFF; DRAWICON(CROSS(趨勢,AA),AA,1); DRAWICON(CROSS(逃頂,趨勢),逃頂,2); 價量齊升 STICKLINE(-100,-45,-100,10,0),COLORFF7F00; B:=SMA((3*H+2*C+O+L)/7,10,1); W1:=-100*(HHV(HHV(B,1),N1)-B)/(HHV(HHV(B,1),N1)-LLV(LLV(B,1),N1)); W2:=-100*(HHV(HHV(B,1),N2)-B)/(HHV(HHV(B,1),N2)-LLV(LLV(B,1),N2)); W3:=-100*(HHV(HHV(B,1),N3)-B)/(HHV(HHV(B,1),N3)-LLV(LLV(B,1),N3)); W4:=-100*(HHV(HHV(B,1),N4)-B)/(HHV(HHV(B,1),N4)-LLV(LLV(B,1),N4)); 價格WR:(W1+W2+W3+W4)/4,COLORGREEN,LINETHICK1; A:=SMA(VOL,10,1); WR1:=-100*(HHV(HHV(A,1),N1)-A)/(HHV(HHV(A,1),N1)-LLV(LLV(A,1),N1)); WR2:=-100*(HHV(HHV(A,1),N2)-A)/(HHV(HHV(A,1),N2)-LLV(LLV(A,1),N2)); WR3:=-100*(HHV(HHV(A,1),N3)-A)/(HHV(HHV(A,1),N3)-LLV(LLV(A,1),N3)); WR4:=-100*(HHV(HHV(A,1),N4)-A)/(HHV(HHV(A,1),N4)-LLV(LLV(A,1),N4)); 量WR:(WR1+WR2+WR3+WR4)/4,COLORYELLOW,LINETHICK1; WR5: -100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)), COLORRED,LINETHICK2; 多空平衡:-50,POINTDOT;安全線:-20,POINTDOT; 風險區(qū):-80,POINTDOT,COLORCYAN; n1=14;n2=34;n3=55;n4=55,n5=3. 三豐誘空 獲利盤:WINNER(C)*100,COLORRED; 二十最高:HHV(獲利盤,20); 挖坑線:EMA((100+獲利盤-二十最高),3),LINETHICK2; 成本乖離:(C/COST(50)-1)*100; 量價線 LS3:=LLV(HIGH,240); LS4:=100*(CLOSE-LS3)/LS3; LS5:=REF(LLV(CLOSE,480),1); LS6:=REF(HHV(CLOSE,480),1); LS7:=100*(CLOSE-LS5)/(LS6-LS5); LS8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; LS9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100; LSA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; LSB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; LSC1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5); LSC:=LSC1/4; LSD:=IF(LSC>23.6,LSC,0); LSE:=LSC<1; LSF:=LSD; LS10:=LS4<LS7 AND LS4<0; LS11:=1; LS12:=(HIGH+LOW+CLOSE*2)/4*LS11; LS13:=EMA(LS12,21); LS14:=STD(LS12,21); LS15:=((LS12-LS13)/LS14*100+200)/4*LS11; LS161:=EMA(LS15,89); LS16:=(LS161-25)*1.56*LS11; LS171:=EMA(LS16,5); LS17:=LS171*1.22*LS11; LS181:=EMA(LS17,3); LS18:=LS181*LS11; LS19:=3*LS17-2*LS18*LS11; LS1A:=IF(CROSS(LS19,LS17)AND CROSS(LS19,LS18)AND CROSS(LS17,LS18),1,0); LS1B:=IF(CROSS(LS17,LS19)AND CROSS(LS18,LS19)AND CROSS(LS18,LS17),1,0); LS1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4; LS1D1:=EMA(CLOSE,2); LS1D2:=EMA(CLOSE,89); LS1D:=LS1D1-LS1D2; LS1E:=EMA(LS1D,30); LS1F:=(LS1D-LS1E)*20; LS20:=POW(LS1F,3)*0.1+POW(LS1F,2); (函數(shù)介紹:POW(A,B):乘冪。POW(CLOSE,3)求得收盤價的3次方。) LS21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); (函數(shù)介紹:SQRT(X):開平方。SQRT(CLOSE)收盤價的平方根。) LS22:=EMA(LS21*0.97,3); LS23:=(HIGH+LOW+CLOSE)/3; LS24:=(LS23-MA(LS23,14))/(0.015*AVEDEV(LS23,14)); (函數(shù)介紹:AVEDEV(X,N):平均絕對偏差。AVEDEV(CLOSE,20),求收盤價的20日平均絕對偏差。) LS25:=IF(LS1F>0.015,LS20,0)/45; 莊拉線:=LS25; LS261:=EMA(CLOSE,2); LS262:=EMA(CLOSE,150); LS26:=LS261-LS262; LS27:=EMA(LS26,100); LS28:=2*(LS26-LS27); LS29:=POW(LS28,3)*0.1+POW(LS28,1); LS2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); LS2B:=EMA(LS2A*0.97,3); LS2C:=(HIGH+LOW+CLOSE)/3; LS2D:=(LS2C-MA(LS2C,14))/(0.015*AVEDEV(LS2C,14)); 黑馬線:IF(LS28>0.1,LS29,0)*5,LINETHICK2; 量價線:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100,LINETHICK2; 常數(shù)線:=0; X1:LS3; X2:LS5; X3:LS6; 偏移:XMA(H,10); 觀察:MA(H,10); DRAWICON(LONGCROSS(偏移,觀察,1),L*0.9975,1) ; (函數(shù)介紹:LONGCROSS(A,B,N):兩條線維持一定周期后交叉。LONGCROSS(A,B,N)表示A在N周期內(nèi)都小于B,本周期從下方向上穿過B時返回1,否則返回0。LONGCROSS(MA(CLOSE,5),MA(CLOSE,10),5)表示5日均線維持5周期后與10日均線交金叉。) DRAWICON(LONGCROSS(觀察,偏移,1),H*1.0025,2) ; AO VAR1:=(HIGH+LOW)/2; AO:EMA(VAR1,5)-EMA(VAR1,34),COLOR33FF33,LINETHICK1; IF(AO>REF(AO,1),AO,DRAWNULL),COLORRED,LINETHICK1; AO5:EMA(AO,5),COLORFFFFFF; AC:2*(AO-AO5),COLOR33FF33,NODRAW; STICKLINE(AC>=REF(AC,1),0,AC,2.2,1),COLORRED; STICKLINE(AC< REF(AC,1),0,AC,2.2,1),COLOR33FF33; JC:=CROSS(AO,AO5); DRAWICON(JC,AO*1,1); SC:=CROSS(AO5,AO); DRAWICON(SC,AO*1,2); VDIF:EMA(VOL,5)-EMA(VOL,34),COLORRED,NODRAW; VDEA:EMA(VDIF,5),COLORFFFFFF,NODRAW; VMACD:VDIF-VDEA,COLOR33FF33,NODRAW; N2:=3; AA:=REF(AO,N2)=HHV(AO,2*N2+1); BB:=BACKSET(AA,N2+1); CC:=FILTER(BB,N2) AND AO=HHV(AO,N2+1); A1:=BARSLAST(REF(CC,1)); 頂背離:=REF(CLOSE,A1+1)<CLOSE AND REF(AO,A1+1)>AO AND CC; STICKLINE(頂背離,0,-0.08,3,0),COLORGREEN; AA2:=REF(AO,N2)=LLV(AO,2*N2+1); BB2:=BACKSET(AA2,N2+1); CC2:=FILTER(BB2,N2) AND AO=LLV(AO,N2+1); A2:=BARSLAST(REF(CC2,1)); 底背離:=REF(CLOSE,A2+1)>CLOSE AND REF(AO,A2+1)<AO AND CC2; STICKLINE(底背離,0,0.1,3,0),COLORYELLOW; RSI N1=9;N2=3,N3=8 LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI:SMA(RSI1,N3,1),COLOR33FF33,LINETHICK1; QRSI:IF(RSI>REF(RSI,1),RSI,DRAWNULL),COLOR0000FF,LINETHICK1; DRAWICON(CROSS(RSI,35),35,1); DRAWICON(CROSS(65,RSI),65,2); 漲數(shù):INDEXADV,NODRAW,COLORFFFFFF; 跌數(shù):INDEXDEC,NODRAW,COLOR33FF33; AA:=REF(RSI,N2)=HHV(RSI,2*N2+1); BB:=BACKSET(AA,N2+1); CC:=FILTER(BB,N2) AND RSI=HHV(RSI,N2+1); A1:=BARSLAST(REF(CC,1)); 頂背離:=REF(CLOSE,A1+1)<CLOSE AND REF(RSI,A1+1)>RSI AND CC; STICKLINE(頂背離,65,70,3,0),COLORGREEN; AA2:=REF(RSI,N2)=LLV(RSI,2*N2+1); BB2:=BACKSET(AA2,N2+1); CC2:=FILTER(BB2,N2) AND RSI=LLV(RSI,N2+1); A2:=BARSLAST(REF(CC2,1)); 底背離:=REF(CLOSE,A2+1)>CLOSE AND REF(RSI,A2+1)<RSI AND CC2; STICKLINE(底背離,35,40,3,0),COLORYELLOW; KD LOWV:=LLV(LOW,N); HIGHV:=HHV(HIGH,N); RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M); K:EMA(RSV,M); D:MA(K,M),COLOR33FF33,LINETHICK1; QD:IF(D>REF(D,1),D,DRAWNULL),COLORRED,LINETHICK1; A1:=BARSLAST(REF(CROSS(K,D),1)); B1:=REF(C,A1+1)>C AND REF(K,A1+1)<K AND CROSS(K,D); STICKLINE(B1,25,30,3,0),COLORYELLOW; N=5;M=3; MACD日周月 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA :=EMA(DIFF,9); 金叉:=CROSS(DIFF,DEA); 死叉:=CROSS(DEA,DIFF); {周金叉,死叉} 周DIFF:='MACD.DIF#WEEK'; 周DEA:='MACD.DEA#WEEK'; DIF周金叉:=CROSS(周DIFF,周DEA); DIF周死叉:=CROSS(周DEA, 周DIFF); {月金叉,死叉} 月DIFF:='MACD.DIF#MONTH'; 月DEA:='MACD.DEA#MONTH'; DIF月金叉:=CROSS(月DIFF,月DEA); DIF月死叉:=CROSS(月DEA, 月DIFF); CDA:= 周DIFF<REF(周DIFF,1) AND 周DIFF>0; CDB:= 周DIFF>=REF(周DIFF,1) AND 周DIFF>0; CDC:= 周DIFF>REF(周DIFF,1) AND 周DIFF<0; CDD:= 周DIFF<=REF(周DIFF,1) AND 周DIFF<0; BDA:= 月DIFF<REF(月DIFF,1) AND 月DIFF>0; BDB:= 月DIFF>=REF(月DIFF,1) AND 月DIFF>0; BDC:= 月DIFF>REF(月DIFF,1) AND 月DIFF<0; BDD:= 月DIFF<=REF(月DIFF,1) AND 月DIFF<0; ADA:=DIFF<REF(DIFF,1) AND DIFF>0; ADB:=DIFF>=REF(DIFF,1) AND DIFF>0; ADC:=DIFF>REF(DIFF,1) AND DIFF<0; ADD:=DIFF<=REF(DIFF,1) AND DIFF<0; STICKLINE(CDA=1,3,2,1,0),COLORYELLOW;{黃色段} STICKLINE(CDB=1,3,2,1,0),COLORRED; {紅色段} STICKLINE(CDC=1, 3,2,1,0),COLORAA00BB;{向上粉紅} STICKLINE(CDD=1,3,2,1,0),COLOR33FF33; STICKLINE(DIF周金叉=1,3,2,1,0),COLORFFFFFF; STICKLINE(DIF周死叉=1,3,2,1,0), COLORFF4242; STICKLINE(BDA=1,0,1,1,0),COLORYELLOW;{黃色段} STICKLINE(BDB=1 ,0,1,1,0),COLORRED; {紅色段} STICKLINE(BDC=1,0,1,1,0),COLORAA00BB;{向上粉紅} STICKLINE(BDD=1,0,1,1,0),COLOR33FF33; STICKLINE(DIF月金叉=1,0,1,1,0),COLORFFFFFF; STICKLINE(DIF月死叉=1,0,1,1,0), COLORFF4242; STICKLINE(ADA=1,5,4,1,0),COLORYELLOW;{黃色段} STICKLINE(ADB=1,5,4,1,0),COLORRED; {紅色段} STICKLINE(ADC=1,5,4,1,0),COLORAA00BB;{向上粉紅} STICKLINE(ADD=1,5,4,1,0),COLOR33FF33; STICKLINE(金叉=1,5,4,1,0),COLORFFFFFF; STICKLINE(死叉=1,5,4,1,0), COLORFF4242; 0;; G-DDX 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,COLORCYAN; 進出量:=買量+賣量,COLOR00FFFF; STICKLINE(進出量<0,0,進出量,4,0),COLORFF6600; STICKLINE(進出量<0,0,進出量,3,0),COLORFF9900; STICKLINE(進出量<0,0,進出量,1.5,0),COLORFFCC00; STICKLINE(進出量<0,0,進出量,0.5,0),COLORCYAN; STICKLINE(進出量>0,0,進出量,4,0),COLOR000099; STICKLINE(進出量>0,0,進出量,3,0),COLOR0000CC; STICKLINE(進出量>0,0,進出量,1.5,0),COLOR0000FF; STICKLINE(進出量>0,0,進出量,0.5,0),COLORCC66FF; N:=5; M:=13; N日內(nèi)凈流入:SUM(進出量,N),LINETHICK1,COLORGREEN; Q:IF(N日內(nèi)凈流入>REF(N日內(nèi)凈流入,1), N日內(nèi)凈流入,DRAWNULL),COLORRED,LINETHICK1; 連紅:BARSLASTCOUNT(進出量>0); M紅:COUNT(進出量>0,M),COLORRED; 走熊:BARSLASTCOUNT(N日內(nèi)凈流入<0),COLORCYAN; 走牛:BARSLASTCOUNT(N日內(nèi)凈流入>0),COLORRED; 強勢天:BARSLASTCOUNT((N日內(nèi)凈流入>REF(N日內(nèi)凈流入,1))>0 AND N日內(nèi)凈流入>0); 弱勢天:BARSLASTCOUNT((N日內(nèi)凈流入<REF(N日內(nèi)凈流入,1))>0 AND N日內(nèi)凈流入<0);
|