DIF:EMA(CLOSE,N)-EMA(CLOSE,M1);
DEA:EMA(DIF,M2);
MACD:(DIF-DEA)*2,COLORSTICK;
金叉:=IF(CROSS(DIF,DEA),MAX(ABS(DIF),ABS(DEA)),0);
死叉:IF(CROSS(DEA,DIF),MAX(ABS(DIF),ABS(DEA)),0);
佛手:IF(HHV(MACD,3)=REF(MACD,2) AND HHV(ABS(MACD),10)=HHV(MACD,6) AND REF(MACD,2)*2/3>MACD AND REF(MACD,1)>0,0.1,0);
低買:IF(CROSS(EMA(CLOSE,12),H) AND C<REF(L,1),0.05,0),LINETHICK2;
短:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),NODRAW;
長:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
四線歸一:IF(長<6 AND 短<6,-0.1,0),LINETHICK2;
長陰短柱:IF(C/REF(C,1)<0.95 AND V<HHV(V,30)/1.9,0.1,0),LINETHICK2;
BBI:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
BBICS:=IF(C>BBI,35,20);
CS10J:=IF(C>MA(C,10),45,20);
E25XS:=IF(EMA(C,25)>REF(EMA(C,25),1),30,20);
CS20J:=IF(C>MA(C,20),40,20);
XJX1:IF((REF(BBICS,1)=35 AND BBICS=20) OR (REF(CS10J,1)=45 AND CS10J=20) AND (REF(E25XS,1)=30 OR REF(CS20J,1)=30),0.1,0);
XJX2:IF(DIF>DEA AND (REF(BBICS,1)=35 AND BBICS=20)+(REF(CS10J,1)=45 AND CS10J=20)+(REF(CS20J,1)=40 AND CS20J=20)>=2,0.2,0),LINETHICK2;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),7);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),7);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*102/100;
通道2:=AA*(200-102)/100;
軌下低買:IF(CROSS(MDI,25) AND C<通道2,MAX(ABS(DIF),ABS(DEA)),0),COLORRED;
VAR22:=CLOSE*VOL;
VAR3:=EMA((EXPMA(VAR22,3)/EXPMA(VOL,3)+EXPMA(VAR22,6)/EXPMA(VOL,6)+EXPMA(VAR22,12)/EXPMA(VOL,12)+EXPMA(VAR22,24)/EXPMA(VOL,24))/4,13);
SDN:=VAR3*0.94;
VAR4:=EXPMA(CLOSE,9);
LDN:=EXPMA(VAR4*0.86,5);
破下軌:IF((COUNT(CROSS(SDN,L),5)=1 AND CROSS(SDN,L)) OR (COUNT(CROSS(LDN,L),5)=1 AND CROSS(LDN,L)),-DEA,0),COLORCYAN,LINETHICK2;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;
DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,FGBLOCK),COLOR00C0C0;
M5:MA(C,5);
短趨勢線:MA(CLOSE,13),COLORYELLOW,LINETHICK2;
中線:=MA(CLOSE,33);
中趨勢線:MA(CLOSE,55),LINETHICK1,COLORGRAY;
年線:=MA(CLOSE,250),LINETHICK1,COLORGRAY,POINTDOT;
上極限:=((C-REF(MA(CLOSE,20),1))/20+短趨勢線)*1.20;
DRAWTEXT(CROSS(CLOSE,上極限),H*1.02,'減倉'),COLORGREEN;
DRAWTEXT(CROSS(CLOSE,MA(C,13)) AND 短趨勢線<REF(短趨勢線 ,1) AND 短趨勢線<中趨勢線 ,H*1.02,'減倉'),COLORGREEN;
DRAWTEXT(CROSS(短趨勢線,C) AND INDEXC>MA(INDEXC,13) AND 短趨勢線>REF(短趨勢線 ,1) AND V<REF(V,1) AND 短趨勢線>中趨勢線 ,L*0.97,'買入'),COLORRED;
STICKLINE(CROSS(短趨勢線,C) AND 短趨勢線>REF(短趨勢線 ,1) AND V<REF(V,1) AND 短趨勢線>中趨勢線 ,L,L*0.99,2,1),COLORYELLOW;
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;
DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),H*1.02,'減倉'),COLORGREEN;
DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),H*1.06,'賣出'),COLORYELLOW;
VAR2:=HHV(VAR1>20,10);
DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18) AND V>REF(V,1),L*0.98,'反彈'),COLORRED;
DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5) ,L*0.95,'抄底'),COLORYELLOW;
DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),H*1.1,'危險 '),COLORYELLOW;
VAR12:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR12) * VOL);
VAR7:=((VAR4 / VAR12) * VOL);VAR8:=((VAR5 / VAR12) * VOL);
VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));
DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND 短趨勢線>REF(短趨勢線 ,1) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8))
AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB AND 短趨勢線>REF(短趨勢線 ,1))) ,L*0.98,'主力介入'),COLORWHITE;
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;
MA3:=MA(C,3);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
買入1:=CROSS(C,MA3) AND MA3>=REF(MA3,1)*0.99 ;{日收盤價上穿MA3 }
買入2:=C>MA3 AND (C-MA3)/MA3<0.035 AND MA3>REF(MA3,1)*0.998 ;{收盤價在MA3上方不遠 }
買入3:=C>MA3 AND REF(MA3,1)<REF(MA3,2) AND REF(MA3,2)<REF(MA3,3);{MA3剛剛向上 }
買入4:= C>MA3 AND J<80 AND CROSS(J,D) ;{KDJ的J值在低位,或者J線已經向上行,或者J與D即將或剛剛發生金叉}
不買入1:= J>80 OR COUNT( CROSS(D,J),2)>0;{KDJ的J值處于高位,或者J線高位并向下行,或者J與D即將或已經發生死叉}
不買入2:=(C-MA3)/MA3>=0.035;{ 收盤價高于MA3太遠}
不買入3:=O>C*1.02 ;{長陰線不買}
不買入4:=CCI>100;{日CCI向上過100}
不買入5:=REF(C,1)>REF(MA3,1) AND REF(C,2)>REF(MA3,2);{股價兩天占在MA3之上}
不買入6:=COUNT(MA3>REF(MA3,1)*1.0015,4)>=3;{MA3向上多日}
判斷買入:= NOT(不買入1 OR 不買入2 OR 不買入3 {OR 不買入4} OR 不買入5 OR 不買入6)
AND (買入1 OR 買入2 OR 買入3 OR 買入4);
買入條件:=FILTER(判斷買入,1);
買入:=(COUNT( REF(買入條件,1),3)=0 OR CROSS(J,D))
AND COUNT( REF(買入條件,1),1)=0 AND 買入條件,COLORRED;
買進:=IF(買入>0,2,0);
買入天數:=BARSLAST(買入);
買入價:REF(C,買入天數),COLORBLUE;
手續費:=0.003;
盈虧:100*((C-買入價)/買入價-手續費),NODRAW,COLORE66878;
百分之5止贏:買入價*(1+0.05+手續費),NODRAW,COLOR000999;
百分之2止損:買入價*(1-0.025+手續費),COLORGREEN,NODRAW;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(RSI1>78,H*1.01,'R'),COLOR00FFFF;
DRAWTEXT(RSI1<20,H*0.96,'R'),COLORGREEN;
20,POINTDOT;
80,POINTDOT;
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
STICKLINE(MAVOL1>=MAVOL2,0,-6,4,0),COLORFF00FF;
STICKLINE (MAVOL1<MAVOL2,0,-6,4,0),COLOR00FFFF;
成交量叉:MAVOL1>MAVOL2,POINTDOT;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
STICKLINE (DIF>=DEA,-8,-14,4,0),COLORFF00FF;
STICKLINE (DIF<DEA,-8,-14,4,0),COLOR00FFFF;
STICKLINE (DIF>0,-12,-14,4,0),COLORRED;
MACD叉:DIF>DEA,POINTDOT;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);{WWW.88GS.COM}
D:=SMA(K,3,1);
J:3*K-2*D,COLORMAGENTA;
STICKLINE (K>=D,-16,-22,4,0),COLORFF00FF;
STICKLINE (K<D,-16,-22,4,0),COLOR00FFFF;
STICKLINE (J<0,-20,-22,4,0),COLORBLUE;
KDJ叉:K>D POINTDOT;
AA:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,COLORRED;
BB:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,COLOR00FFFF;
CC:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100;
STICKLINE(CC>=REF(CC,1),CC+3,CC-3,1,1),COLORFF00FF;
STICKLINE(CC<REF(CC,1),CC+3,CC-3,1,1),COLOR00FFFF;
STICKLINE(AA>=BB,100,106,4,0),COLORRED;
STICKLINE(AA<BB,100,106,4,0),COLOR00FF00;
短中線叉:AA>BB,POINTDOT;
STICKLINE(CC>=REF(CC,1),108,114,4,0),COLORRED;
STICKLINE(CC<REF(CC,1),108,114,4,0),COLOR00FF00;
長線強弱:CC>=REF(CC,1),POINTDOT;
DRAWTEXT(CURRBARSCOUNT=4,-3,'VOL'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=4,-11,'MACD'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=4,-19,'KDJ'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=4,103,'短中線'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=4,111,'長期線'),COLORFF0000;
STICKLINE(AA>80 ,93,98,1,1),COLORFFFF00 ;
STICKLINE(AA<20 ,2,7,1,1),COLORFF0099;
AAE:=WINNER(CLOSE+CLOSE*15/100)*100;
BBE:=WINNER(CLOSE+CLOSE*0/100)*100;
CCE:=AAE-BBE;
DDE:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;
EEE:=CCE<3 AND DDE<0.5 AND OPEN<>LOW;
AE1:=DYNAINFO(6);
AE2:=IF(LOW>AE1,0,IF(HIGH<AE1,1,(AE1-LOW+0.01)/(HIGH-LOW+0.01)));
AE3:=VOL/WINNER(LOW);
AE4:=REF(HHV(CLOSE,120),1);
AE5:=REF(LLV(CLOSE,120),1);
AE6:=100*(CLOSE-AE5)/(AE4-AE5);
AE7:=AE2>0 OR AE2=1;
AE8:=AE7 AND AE3/REF(AE3,3)>=3 AND AE6<80;
AE9:=REF(AE8,1) OR REF(AE8,2) OR REF(AE8,3) OR REF(AE8,4);
私M:IF(AE8 AND AE9,60,50),LINETHICK3;
長陰短柱:IF(C/REF(C,1)<0.95 AND V<HHV(V,30)/1.9,60,50),LINETHICK2;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),7);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),7);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
AZ:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AZ*102/100;
通道2:=AZ*(200-102)/100;
軌下低買:IF(CROSS(MDI,25) AND C<通道2,60,50);
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
TYP:=(HIGH+LOW+CLOSE)/3;
CCI1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))/2+50;
CCI2:=IF(CCI1>100,100,CCI1);
CCI:IF(CCI2<0,0,CCI2),COLORCYAN,DOTLINE;
WR2:100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42)),COLORGREEN,LINETHICK2;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORRED,LINETHICK2;
{DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,'1.XS長短線下軌 2.CCI-100以下放空,以上回補;100以上買,以下賣
3.MDI上穿 25 下降通道不買
4.RSI上60或下-60'),COLOR00C0C0;}
超跌:IF(L<0.93*(REF(MA(C,4),1)*4+L*0.98)/5,58,50),COLORMAGENTA,LINETHICK2;
VAR22:=CLOSE*VOL;
VAR3:=EMA((EXPMA(VAR22,3)/EXPMA(VOL,3)+EXPMA(VAR22,6)/EXPMA(VOL,6)+EXPMA(VAR22,12)/EXPMA(VOL,12)+EXPMA(VAR22,24)/EXPMA(VOL,24))/4,13);
SDN:=VAR3*0.94;
VAR4:=EXPMA(CLOSE,9);
LDN:=EXPMA(VAR4*0.86,5);
破下軌:IF((COUNT(CROSS(SDN,L),5)=1 AND CROSS(SDN,L)) OR (COUNT(CROSS(LDN,L),5)=1 AND CROSS(LDN,L)),30,20),COLORCYAN,LINETHICK2;
換手1:=IF(2*(VOL/CAPITAL*500*N1)-100<200,2*(VOL/CAPITAL*500*N1)-100,0),DOTLINE,COLORLIRED;
AAE:=WINNER(CLOSE+CLOSE*15/100)*100;
BBE:=WINNER(CLOSE+CLOSE*0/100)*100;
CCE:=AAE-BBE;
DDE:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;
EEE:=CCE<3 AND DDE<0.5 AND OPEN<>LOW;
AE1:=DYNAINFO(6);
AE2:=IF(LOW>AE1,0,IF(HIGH<AE1,1,(AE1-LOW+0.01)/(HIGH-LOW+0.01)));
AE3:=VOL/WINNER(LOW);
AE4:=REF(HHV(CLOSE,120),1);
AE5:=REF(LLV(CLOSE,120),1);
AE6:=100*(CLOSE-AE5)/(AE4-AE5);
AE7:=AE2>0 OR AE2=1;
AE8:=AE7 AND AE3/REF(AE3,3)>=3 AND AE6<80;
AE9:=REF(AE8,1) OR REF(AE8,2) OR REF(AE8,3) OR REF(AE8,4);
私M:IF(AE8 AND AE9,60,50),LINETHICK2;
LC1:=REF(CLOSE,1);
RSI11:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100;
今明低:IF(RSI1<WR2 AND WR2>90 AND RSI11<30 AND CROSS(V,MA(V,5)),90,80);
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,LINETHICK2;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,COLORGREEN;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
E25XS:IF(EMA(C,25)>REF(EMA(C,25),1),30,25);
BBI:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
BBICS:IF(C>BBI,35,25),COLORCYAN;
CS60J:IF(C>MA(C,60),28,25),LINETHICK3;
CS10J:IF(C>MA(C,10),45,25);
CS20J:IF(C>MA(C,20),40,25);
WR1:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10));
WR2:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42)),LINETHICK2;
今明低:IF(RSI1<WR2 AND WR2>90 AND RSI1<30 AND CROSS(V,MA(V,5)),72,80),LINETHICK2;
短:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),DOTLINE;
A:=C*1.075;
B:=C*0.925;
WA:=WINNER(A);
WB:=WINNER(B);
近鄰籌碼:=(WA-WB)*100;
漲賣跌買準備:IF(REF(近鄰籌碼,1)-近鄰籌碼>20,55,50),COLORBLUE,LINETHICK2;
三十分鐘賣準備:IF((H-MAX(O,C))/C>0.01 AND HHV(H,25)=H,60,50),COLORCYAN;
LX3J:IF(CROSS(EMA(C,7),L) AND CROSS(EMA(C,14),L) AND CROSS(EMA(C,25),L),70,80),LINETHICK2;
十字星:IF(ABS(C-O)<(H-L)*0.3 AND LLV(L,10)=L AND (REF(C,5)-C)/REF(C,5)>0.06,70,80);
VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VARO3:=SMA(SMA(VARO2,3,1),3,1);
VARO4:=EMA(VARO3,5);
VARO5:=LLV(LOW,26);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建倉區:IF((VARO7<10),85,80),LINETHICK3,COLORBLUE;
DRAWTEXT_FIX(1,0.01,0,0,'今明低,在空區一般還有更低,PSY在25-75為正常,按原趨勢操作,小于25超賣,大于75超買'),COLORRED;
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,COLORMAGENTA;
AB:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
第二天:IF(COUNT(K>D,3)>=2 AND COUNT(D>50,3)>=2 AND AB<45,78,80);
單陽:=(C>=REF(C,1)*1.045 AND (VOL>REF(VOL,1)*1.6 OR V>REF(V,2)*2.5) OR C>=REF(C,1)*1.06);
STICKLINE(單陽,55,50,1,0),COLORYELLOW;
A1:=REF(單陽,1) AND C>REF(O,1);
A2:=REF(單陽,2) AND C>REF(O,2);
A3:=REF(單陽,3) AND C>REF(O,3);
A4:=REF(單陽,4) AND C>REF(O,4);
A5:=REF(單陽,5) AND C>REF(O,5);
A6:=REF(單陽,6) AND C>REF(O,6);
A7:=REF(單陽,7) AND C>REF(O,7);
A8:=REF(單陽,8) AND C>REF(O,8);
A9:=REF(單陽,9) AND C>REF(O,9);
A10:=REF(單陽,10) AND C>REF(O,10);
DRAWTEXT(A1,55,'1'),COLORGREEN;
DRAWTEXT(A2,55,'2'),COLORGREEN;
DRAWTEXT(A3,55,'3'),COLORGREEN;
DRAWTEXT(A4,55,'4'),COLORGREEN;
DRAWTEXT(A5,55,'5'),COLORGREEN;
DRAWTEXT(A6,55,'6'),COLORGREEN;
DRAWTEXT(A7,55,'7'),COLORGREEN;
DRAWTEXT(A8,55,'8'),COLORGREEN;
{LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BBI:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;}
準備:IF(COUNT(C>BBI AND C>MA(C,10),6)>=1 AND RSI1<36,68,80);
PSY:COUNT(CLOSE>REF(CLOSE,1),12)/12*100,COLORRED;
心理低:IF(PSY<25,72,75),COLORBLUE,LINETHICK2;
心理高:IF(PSY>75,78,75),COLORYELLOW,LINETHICK2;
{BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
XBBI:IF(BBI>MA(C,20) AND C<BBI,66,50),COLORGREEN,LINETHICK2;}
二陰:IF(COUNT(O>C,2)=2 AND (REF(C,2)>L*1.15 OR REF(C,1)>C*1.03),52,50);
三陰:IF(COUNT(O>C,3)=3 AND (REF(C,3)>C*1.15 OR REF(C,1)>C*1.03),53,50);
四陰:IF(COUNT(O>C,4)=48,54,50);
MID:=(2*CLOSE+LOW+2*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,COLORRED;
馬:=MA(牛,6),COLORGREEN;
GL:IF(L<(MA(REF(C,1),4)*4+L*1.02)/5*0.92 AND 牛>馬,56,50);
IF(COUNT(REF(C,1)>REF(牛,1),5)>=1 AND RSI1<20,58,50);
MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛1:=(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,COLORLIRED;
首次:IF(COUNT(REF(C,1)<REF(牛1,1),15)=15 AND CROSS(C,牛1),60,80);
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=VAR11-CLOSE;
VAR13:=REF(CLOSE,1);
VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;
VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;
VAR16:=BARSCOUNT(CLOSE);
VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1A:=(SMA(VAR19,4,1)-50)*2;
VAR1B:=SMA(VAR1A,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
{WWW.GUPANG.COM 股旁網_通達信股票指標公式}
VAR20:=IF(VAR17<=25 AND VAR18<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR12>=-0.25 AND VAR14<22 AND VAR15<28 AND VAR16>50,100,0),LINETHICK3,COLORYELLOW ;
極限反擊:= VAR20;
STICKLINE (極限反擊>0,1,89,1.3,0),COLORGREEN;
STICKLINE (極限反擊>0,3,87,0.00001,0),COLORBLACK;
W:80,COLOR996699;
S:20,COLORGREEN;
Y:10,COLORCC6633,LINETHICK2;
T:90,COLOR9966FF,LINETHICK2;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
長期線:A+100,COLOR9900FF;
短期線:B+100,COLOR888888;
中期線:D+100,COLORYELLOW,LINETHICK2;
見頂:(REF(中期線,1)>85 AND REF(短期線,1)>85 AND REF(長期線,1)>65) AND CROSS(長期線,短期線) ;
頂區:(中期線<REF(中期線,1) AND REF(中期線,1)>80) AND (REF(短期線,1)>95 OR REF(短期線,2)>95 ) AND 長期線>60 AND 短期線<83.5
AND 短期線<中期線 AND 短期線<長期線+4,COLORRED;
頂部:FILTER(頂區,4);
底區:(長期線<12 AND 中期線<8 AND (短期線<7.2 OR REF(短期線,1)<5) AND (中期線>REF(中期線,1) OR 短期線>REF(短期線,1)))
OR (長期線<8 AND 中期線<7 AND 短期線<15 AND 短期線>REF(短期線,1)) OR (長期線<10 AND 中期線<7 AND 短期線<1),COLORYELLOW ;
STICKLINE(頂部,99,103,4,1 ),COLORRED,LINETHICK2;
STICKLINE( 底區,-4,0,4,0 ),COLORGREEN;
低位金叉:=長期線<15 AND REF(長期線,1)<15 AND 中期線<18 AND 短期線>REF(短期線,1) AND CROSS(短期線,長期線) AND 短期線>中期線
AND (REF(短期線,1)<5 OR REF(短期線,2)<5 ) AND (中期線>=長期線 OR REF( 短期線,1)<1 );
STICKLINE( 低位金叉,0,5,4,0 ),COLORRED;
DRAWICON (CROSS(長期線,中期線) ,0,2);
DRAWICON(CROSS(中期線,長期線),0,1);
STICKLINE( 見頂,99.5,102.5,3,0 ),COLORGREEN;
STICKLINE( 見頂,100.5,101.5,1.5,0 ),COLORRED;
VAR111:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR222:=EMA(VAR111,30);
VAR333:=EMA(VAR222,30);
VAR444:=3*VAR222-2*VAR333;
勢:=EMA(VAR444,5),COLORBLUE,LINETHICK3;
持幣:IF(勢<REF(勢,1),-5,DRAWNULL),CIRCLEDOT,COLORGREEN;
持股:IF(勢>REF(勢,1),-5,DRAWNULL),CIRCLEDOT,COLOR000099;