input:N(7,1,100); VAR0:=EMA((((CLOSE - LLV(LOW,10)) / (HHV(HIGH,25) - LLV(LOW,10))) * 4),N); 多:STICKLINE((VAR0 > REF(VAR0,1)),VAR0,MA(VAR0,3),6,0),colorFF; STICKLINE((VAR0 < REF(VAR0,1)),VAR0,EMA(VAR0,3),6,1),colorFF00; VAR1:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100); VAR2:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100); VAR3:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100); VAR4:=(((VAR1 + (2 * VAR2)) + (3 * VAR3)) / 6); VAR5:=MA(VAR4,3); VAR6:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); VAR7:=SMA(VAR6,3,1); VAR8:=SMA(VAR7,3,1); VAR9:=((3 * VAR7) - (2 * VAR8)); 關(guān)注:STICKLINE((CROSS(VAR9,VAR8) AND (COUNT((VAR5 < (0 - 9)),2) >= 1)),0.01,1.8,7,0),colorFFFF00; VARA:=(REF(LOW,1) * 0.9); VARB:=(LOW * 0.9); VARC:=(((VARB * VOL) + (VARA * (CAPITAL - VOL))) / CAPITAL); VARD:=EMA(VARC,30); VARE:=(CLOSE - REF(CLOSE,1)); VARF:=MAX(VARE,0); VAR10:=ABS(VARE); VAR11:=((SMA(VARF,7,1) / SMA(VAR10,7,1)) * 100); VAR12:=((SMA(VARF,13,1) / SMA(VAR10,13,1)) * 100); VAR13:=((SMA(MAX(VARE,0),6,1) / SMA(ABS(VARE),6,1)) * 100); VAR14:=((((0 - 200) * (HHV(HIGH,60) - CLOSE)) / (HHV(HIGH,60) - LLV(LOW,60))) + 100); VAR15:=(((CLOSE - LLV(LOW,15)) / (HHV(HIGH,15) - LLV(LOW,15))) * 100); VAR16:=SMA(((SMA(VAR15,4,1) - 50) * 2),3,1); VAR17:=(((INDEXC - LLV(INDEXL,14)) / (HHV(INDEXH,14) - LLV(INDEXL,14))) * 100); VAR18:=SMA(VAR17,4,1); VAR19:=SMA(VAR18,3,1); VAR1A:=(((HHV(HIGH,30) - CLOSE) / CLOSE) * 100); VAR1B:=((((((((VAR13 <= 25) AND (VAR14 < (0 - 95))) AND (VAR1A > 20)) AND (VAR16 < (0 - 30))) AND (VAR19 < 30)) AND ((VARD - CLOSE) >= (0 - 0.25))) AND (VAR11 < 22)) AND (VAR12 < 28)); ※低買:STICKLINE(VAR1B,0,1,4,0),colorFF0000; 黃空框持股:STICKLINE((VAR0 > 3),3,3.5,8,1),colorFFFF; ※休息:STICKLINE(CROSS(3,VAR0),1.5,3.5,4,0),colorFF00FF; VAR1C:=CROSS(MA(INDEXV,31),MA(INDEXV,2)); VAR1D:=LLV(INDEXL,60); VAR1E:=IF((INDEXC > (VAR1D * 1.15)),VAR1C,0); 紅色空框大盤見頂:STICKLINE((VAR1E > 0.2),3.1,3.4,40,1),colorFF; VAR1F:=CROSS(MA(INDEXV,14),MA(INDEXV,51)); VAR20:=HHV(INDEXH,125); VAR21:=IF((INDEXC < VAR20),VAR1F,0); VAR22:=(((INDEXC - REF(INDEXC,26)) / REF(INDEXC,26)) * 100); 綠色空框大盤見底:STICKLINE(((VAR22 < (0 - 9.5)) AND (VAR21 > 0.2)),3.11,3.4,40,1),colorFF00; 0; DRAWTEXT((DATE = 1021216),1,''); 注意:3,colorFFFFFF; 賣出:3.5,colorFF00FF; STICKLINE((VAR0 > 3),3,3.5,8,1),colorFFFF; VAR23:=BARSLAST(REF(CROSS("MACD.DIFF"(12,26,9),"MACD.DEA"(12,26,9)),1)); A1:=(((REF(CLOSE,(VAR23 + 1)) > CLOSE) AND (REF("MACD.DIFF"(12,26,9),(VAR23 + 1)) < "MACD.DIFF"(12,26,9))) AND CROSS("MACD.DIFF"(12,26,9),"MACD.DEA"(12,26,9))); B1:=FILTER((A1 > 0),5); STICKLINE(B1,0,0.75,3,0),colorFF00; DRAWTEXT(B1,0.57,''),colorFF00; MACD底背離:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1)); A2:=(((REF(CLOSE,(MACD底背離 + 1)) > CLOSE) AND (REF("KDJ.K"(9,3,3),(MACD底背離 + 1)) < "KDJ.K"(9,3,3))) AND CROSS("MACD.DIFF"(9,3,3),"MACD.DIFF"(9,3,3))); B2:=FILTER((A2 > 0),5); STICKLINE(B2,0,1,3,0),colorFFFF; DRAWTEXT(B2,0.8,''),colorFFFF; KDJ底背離:=BARSLAST(REF(CROSS("MACD.DIFF"(6,12,24),"MACD.DIFF"(6,12,24)),1)); A3:=(((REF(CLOSE,(KDJ底背離 + 1)) > CLOSE) AND (REF("MACD.DIFF"(6,12,24),(KDJ底背離 + 1)) < "MACD.DIFF"(6,12,24))) AND CROSS("KDJ.K"(6,12,24),"KDJ.D"(6,12,24))); B3:=FILTER((A3 > 0),5); STICKLINE(B3,0,0.5,3,0),colorFFCC66; DRAWTEXT(B3,0.25,''),colorFFCC66; 2,colorFF; RSI底背離:=BARSLAST(REF(CROSS("RSI.RSI1"(12,26,9),"RSI.RSI2"(12,26,9)),1)); C1:=(((REF(CLOSE,(RSI底背離 + 1)) < CLOSE) AND (REF("RSI.RSI1"(12,26,9),(RSI底背離 + 1)) > "RSI.RSI1"(12,26,9))) AND CROSS("RSI.RSI1"(12,26,9),"RSI.RSI2"(12,26,9))); D1:=FILTER((C1 > 0),5); STICKLINE(D1,2,1.25,3,0),color66FF; DRAWTEXT(D1,1.47,''),color66FF; MACD頂背離:=BARSLAST(REF(CROSS("MACD.DEA"(9,3,3),"MACD.DIFF"(9,3,3)),1)); C2:=(((REF(CLOSE,(MACD頂背離 + 1)) < CLOSE) AND (REF("MACD.DEA"(9,3,3),(MACD頂背離 + 1)) > "MACD.DEA"(9,3,3))) AND CROSS("MACD.DEA"(9,3,3),"MACD.DEA"(9,3,3))); D2:=FILTER((C2 > 0),5); STICKLINE(D2,2,1,3,0),colorFF; DRAWTEXT(D2,1.2,''),colorFF; KDJ頂背離:=BARSLAST(REF(CROSS("MACD.DEA"(6,12,24),"MACD.DEA"(6,12,24)),1)); C3:=(((REF(CLOSE,(KDJ頂背離 + 1)) < CLOSE) AND (REF("MACD.DIFF"(6,12,24),(KDJ頂背離 + 1)) > "MACD.DIFF"(6,12,24))) AND CROSS("MACD.DEA"(6,12,24),"MACD.DIFF"(6,12,24))); D3:=FILTER((C3 > 0),5); STICKLINE(D3,2,1.5,3,0),colorFF00FF; DRAWTEXT(D3,1.75,''),colorFF00FF; 底背離:((B1 OR B2) OR B3); 頂背離:((D1 OR D2) OR D3); [ 本帖最后由 蝶戀花 于 2005-12-26 22:25 編輯 ]股票論壇 www.55188.com |
|