自用多年的贏利指標公式
{藍}STICKLINE(OPEN>=CLOSE,H,L,0,0),COLORFFFF00,LINETHICK1;{此為日K線的豎細線}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.2,0),COLORFFBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6,0),COLORFFDD00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0,0),COLORFFFF00;{紅}STICKLINE(CLOSE>OPEN,H,L,0,0),COLORRED,LINETHICK1;{此為日K線的豎細線}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR000088;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.2,0),COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.6,0),COLOR0000DD;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),COLOR0000FF;{看多線}A1:=EMA(C,14)COLORWHITE,LINETHICK1;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;看多:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0)) 1),DRAWNULL),COLOR4080FF,LINETHICK1;{止損線}動態止損度:=3;止損價:=CONST(HHV(C,5)*(100-動態止損度)/100);止損:PLOYLINE(CONST(C)<=止損價,止損價),COLOR008000;熊五:MA(CLOSE,5),COLORWHITE,LINETHICK2;牛十:MA(CLOSE,10),COLORMAGENTA,LINETHICK2;工作線:EMA(CLOSE,34),COLOR00FFFF,LINETHICK2;生命線:EXPMA(EXPMA(CLOSE,50),1),COLORRED,LINETHICK2;半:MA(CLOSE,125),COLORCYAN,LINETHICK1;年:MA(CLOSE,250),COLORFF7F00,LINETHICK1;{生命線變色}IF(生命線<=REF(生命線,1),生命線,DRAWNULL),COLOR00FF00,LINETHICK2;{綠色箭頭}阻力價:=HHV(HIGH,19),COLORBLUE, LINETHICK1;VAR3:=(CLOSE*2.5/100 CLOSE);DRAWICON(阻力價>REF(阻力價,1) AND CROSS(阻力價,VAR3)AND C{賣}VAR27:=REF(CLOSE,1);VAR28:=SMA(MAX(CLOSE-VAR27,0),5.5,1)/SMA(ABS(CLOSE-VAR27),6,1)*100;DRAWTEXT((IF(CROSS(76,VAR28),1,0)) ORCROSS(84,RSI),H*1.03,"賣"),COLORGREEN,LINETHICK1;{漲停秘笈}{VOL}VOLUME:=VOL;換手:=VOL/CAPITAL*100;十日換手:=SUM(換手,10)>80;B7:=工作線>REF(工作線,1) AND 生命線>REF(生命線,1) AND 半>REF(半,1)AND 年>REF(年,1);B8:=熊五>牛十 AND 牛十>工作線 AND 工作線>生命線 AND 生命線>半;TJ1:=B7 AND B8;N1G:=CLOSE/REF(CLOSE,1)>=1.097 AND HIGH=CLOSE ANDNOT(OPEN=HIGH);A1G:=BARSLAST(N1G);A2G:=LLV(LOW,A1G-1)>REF(LOW,A1G) ANDCLOSE/REF(OPEN,A1G)>1 AND CLOSE/REF(OPEN,A1G)<=1.04;TJ2:=FILTER(A2G,3) AND A1G>=4 AND A1G<=20;XGGG:=十日換手 AND TJ1 AND TJ2;DRAWTEXT(XGGG,LOW*0.96,"漲停秘笈"),COLORCYAN,LINETHICK1;{追}VAR112:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21)- LLV(LOW,21))));VAR113:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) /(HHV(HIGH,6) - LLV(LOW,6))),34));DRAWTEXT(CROSS(VAR112,MA(VAR113,6)) AND 熊五>REF(熊五,1),(LOW *1) ,"↖買"),COLOR00FFFF,LINETHICK1;{回調K線 黑碼}漲幅%:=(C-REF(C,1))/REF(C,1)*100,LINETHICK0;條件10:=C>=工作線 AND 熊五<牛十 AND 牛十<工作線 AND 工作線<生命線 AND熊五>REF(熊五,1);DIF:=EMA(CLOSE,6) - EMA(CLOSE,19),COLOR00FFFF;DEA1:=EMA(DIF,9),COLORWHITE;條件11:=DIF>DEA1 AND DIF>REF(DIF,1) ANDDEA1>REF(DEA1,1);上影幅:=IF(CLOSE>OPEN,100*(H-C)/C,100*(H-O)/O),NODRAW,COLORYELLOW;下影幅:=IF(CLOSE>OPEN,100*(O-L)/L,100*(C-L)/L),NODRAW,COLORWHITE;漲停B:=CLOSE>1.1*REF(CLOSE,1)-0.005 AND H>L;首個漲停:=BARSLAST(漲停B);VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;火:=BARSLAST(EMA(CLOSE,5)CRXP:=((REF(上影幅,1)>3 AND REF(下影幅,1)<1.15))AND ((下影幅>3 AND 上影幅<1.55)) AND 漲幅%<8;JM:=(3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1));強勢回調:=(首個漲停<14 OR (首個漲停<26 AND 首個漲停>19));搓揉:=((強勢回調 AND CRXP) OR (CRXP AND (JM>REF(JM,1) OR (火>0AND JM<7)))) AND 條件10 AND 條件11;DRAWTEXT(搓揉,L*0.999,"↖黑碼"),COLORRED,LINETHICK1;{三進場}EMA3:=EMA(C,3),COLORWHITE,LINETHICK2;EMA13:=EMA(C,13),COLORYELLOW;EMA21:=EMA(C,21),COLORFF00FF;EMA55:=EMA(C,55),COLORGREEN;追:=CROSS(VAR112,MA(VAR113,6)) AND 熊五>REF(熊五,1);條件7:=熊五<工作線 AND 工作線<生命線 AND 牛十>REF(牛十,1) AND C>工作線AND 漲幅%>3.6 AND 漲幅%<6 AND 追;HR2:=EMA3>=REF(EMA3,3) AND EMA13>=REF(EMA13,1) ANDEMA21>=REF(EMA21,1) AND CROSS(C,EMA3) AND CROSS(C,EMA13) ANDCROSS(C,EMA21){ AND CROSS(C,EMA55)};DRAWTEXT(HR2 AND FILTER(HR2,10) AND 條件7,L-0.3,"三進場!"),COLORA943FF,LINETHICK1;{突破買}EM1:=EMA(C,5);EM2:=EMA(C,7);EM3:=EMA(C,11);TJ:=BETWEEN(EM2,EM1,EM3);立樁量:=FILTER(TJ=0,5);突破買:REF(H,BARSLAST(立樁量)),NODRAW;STICKLINE(C,REF(H,BARSLAST(立樁量)),REF(H,BARSLAST(立樁量)),6,0),COLORGREEN;DRAWTEXT(C AND ISLASTBAR,突破買," 突破買");{介入點}VAR1A:=CROSS(MA(CLOSE,5),MA(CLOSE,30)) AND 漲幅%>1.8;DRAWICON(VAR1A,L*0.98,11);DRAWTEXT(VAR1A,LOW-LOW*0.005,"關注"),COLORYELLOW;{高低點定位}TC1:=IF(H=HHV(H,8*14),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H)) 1;UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,8*20),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L)) 1;LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低點定位}HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高點定位};STICKLINE(LP,L*0.992,L,13,0),COLORFF00FF;STICKLINE(HP,H,H*1.005,13,0),COLOR00FF00;{看多 虛線}IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0)) 1),DRAWNULL),COLOR4080FF,POINTDOT,LINETHICK4;DRAWTEXT(ISLASTBAR,看多*1.008,"看多"),COLOR4080FF,LINETHICK1;{止損線 虛線}PLOYLINE(CONST(C)<=止損價,止損價),COLOR008000,POINTDOT,LINETHICK4;DRAWTEXT(DYNAINFO(7)<=止損價 ANDISLASTBAR,止損價*1.02,"☆止損"),COLOR008000,LINETHICK1;{負乖離}離基:=熊五;離C:=離基*0.90,COLOR555555;DRAWTEXT(CROSS(離C,L) AND CURRBARSCOUNT<10,LLV(L,3),"負乖離"),COLORWHITE;{企穩箭頭}MID:=(3*CLOSE LOW OPEN HIGH)/6;金牛線:=(20*MID 19*REF(MID,1) 18*REF(MID,2) 17*REF(MID,3) 16*REF(MID,4) 15*REF(MID,5) 14*REF(MID,6) 13*REF(MID,7) 12*REF(MID,8) 11*REF(MID,9) 10*REF(MID,10) 9*REF(MID,11) 8*REF(MID,12) 7*REF(MID,13) 6*REF(MID,14) 5*REF(MID,15) 4*REF(MID,16) 3*REF(MID,17) 2*REF(MID,18) REF(MID,20))/210,COLOR999900,DOTLINE;金馬線:=MA(金牛線,6),COLORYELLOW;DRAWICON(FILTER(CROSS(金牛線,金馬線),20),金馬線-0.3 ,1);{黃金分割}高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;一:REFDATE(H1,DATE),POINTDOT,COLORYELLOW;二:REFDATE(H2,DATE),POINTDOT,COLORMAGENTA;TT4:=(CURRBARSCOUNT=5 3);DRAWTEXT(TT4 AND 一,一,"809:"),COLOR208FFF;DRAWTEXT(TT4 AND 二,二,"618:"),COLOR208FFF;
推薦閱讀:
※看清楚:你手裡的茶很可能不是什麼好茶!看公式
※服裝製版常用數據及公式
※公曆速推當日干支公式時
※Get運動風的3個搭配公式 女神排隊等你撩
※條件選股公式 (驗)