同花顺杰哥短线掘金公式 利用30分钟线抢反弹
用于30分钟K线抢反弹用,不做中长线投资参考。
在30分钟均线处设置日线为:5、13、34、89、233.
*出现“弱”字样时表示弱势状态,即使出现买入信号也不易买入。
*出现“跑”字样时,表示可能存在暴跌的可能性,即使出现买入信号也不易买入。
*出现“买”字样时,可以相对重的仓位买入。
*出现“少买”字样的买入信号时,不要重仓位买入,以免发生变盘意外。
*当长期均线向下并且均线粘合时,即使出现买入信号也不易买入。
出现卖出信号时,采用逐步减仓的方式,不易一次卖空。
//{均线指标}
MA1 := MA(C,N);
MA2 := MA(C,N1);
MA3 := MA(C,N2);
MA4 := MA(C,N3);
MA5 := MA(C,N4);
//{WR指标}
WR1 : 100-100*(HHV(HIGH,N5)-CLOSE)/(HHV(HIGH,N5)-LLV(LOW,N5)),LINETHICK1;
WR2:=100-100*(HHV(HIGH,N6)-CLOSE)/(HHV(HIGH,N6)-LLV(LOW,N6));
WR3:=100-100*(HHV(HIGH,N7)-CLOSE)/(HHV(HIGH,N7)-LLV(LOW,N7));
//{MACD指标}
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
//{KDJ指标}
RSV := (C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K := SMA(RSV,3,1);
D := SMA(K,3,1);
J : 3*K-2*D,LINETHICK1;
//{RSI指标}
LC := REF(CLOSE,1);
RSI1: SMA(MAX(CLOSE-LC,0),N8,1)/SMA(ABS(CLOSE-LC),N8,1)*100,LINETHICK1;
RSI2:=SMA(MAX(CLOSE-LC,0),N9,1)/SMA(ABS(CLOSE-LC),N9,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N10,1)/SMA(ABS(CLOSE-LC),N10,1)*100;
//以下是买入抄底的公式,借用一下
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,7);
VAR2E:=(VAR2A+VAR2C)/2/1.1;
超短:EMA(VAR2E,3),LINETHICK2 ;
短线:=EMA(超短,5);
趋势线:=EMA((VAR2B+VAR2D)/2,2);
//DRAWICON(CROSS(趋势线,0),0,1);
//DRAWICON(CROSS(100,超短),100,2);
DRAWTEXT(趋势线>REF(趋势线,1)AND REF(趋势线,1)<REF(趋势线,2)AND COUNT(CROSS(超短,短线),3)=1 AND 短线<30,短线,'看底');
//MA4>MA5 AND MA1<MA2 AND (C<MA4 OR C<MA5) AND WR1>=REF(WR1,1) AND J>=REF(J,1) AND RSI1>=REF(RSI1,1) AND CLOSE>=REF(CLOSE,1);
//DRAWICON(MA4>MA5 AND MA5<MA3 AND MA1<MA2 AND MA4>REF(MA4,1) AND (C<MA4 OR C<MA5) AND WR1>=REF(WR1,1) AND J>=REF(J,1) AND J<=25 AND RSI1>REF(RSI1,1) AND RSI1<=30 AND CLOSE>=REF(CLOSE,1),LOW,'BUY');
//KDJ、RSI、WR上升买点
DRAWICON(J>=REF(J,1) AND RSI1>=REF(RSI1,1) AND REF(RSI1,1)<REF(RSI1,2) AND WR1>=REF(WR1,1) AND WR1>RSI1 AND J<=60 AND RSI1<=45 AND WR1<=65 AND (超短>=REF(超短,1) OR (REF(超短,1)-超短)<0.4),LOW,'BUY');
DRAWTEXT(J>=REF(J,1) AND RSI1>=REF(RSI1,1) AND REF(RSI1,1)<REF(RSI1,2) AND WR1>=REF(WR1,1) AND WR1>RSI1 AND J<=60 AND RSI1<=45 AND WR1<=65 AND (超短>=REF(超短,1) OR (REF(超短,1)-超短)<0.4),LOW*0.5,'买');
//J、RSI、WR、超短四线同拐向上
DRAWICON(J>=REF(J,1) AND REF(J,1)<REF(J,2) AND RSI1>REF(RSI1,1) AND REF(RSI1,1)<REF(RSI1,2) AND WR1>=REF(WR1,1) AND REF(WR1,1)<REF(WR1,2) AND 超短>REF(超短,1) AND REF(超短,1)<REF(超短,2) AND 超短<80 ,LOW,'BUY');
DRAWTEXT(J>=REF(J,1) AND REF(J,1)<REF(J,2) AND RSI1>REF(RSI1,1) AND REF(RSI1,1)<REF(RSI1,2) AND WR1>=REF(WR1,1) AND REF(WR1,1)<REF(WR1,2) AND 超短>REF(超短,1) AND REF(超短,1)<REF(超短,2) AND 超短<80,LOW*0.5,'买2');
DRAWTEXT(J>=REF(J,1) AND RSI1>REF(RSI1,1) AND REF(RSI1,1)<REF(RSI1,2) AND WR1>=REF(WR1,1) AND WR1>RSI1 AND J<=60 AND RSI1<=45 AND WR1<=65 AND MA5<REF(MA5,1) ,HIGH*1.5,'少');
//J上穿超短线并且5日线上穿13日线
DRAWICON(CROSS(J,超短) AND 超短<45 AND WR1>REF(WR1,1),LOW,'BUY');
DRAWTEXT(CROSS(J,超短) AND 超短<45 AND WR1>REF(WR1,1),LOW*0.5,'T');
//DRAWICON(J>=REF(J,1) AND RSI1>REF(RSI1,1) AND WR1>=REF(WR1,1) AND J<=60 AND RSI1<=45 AND WR1<=65 AND MA5>REF(MA5,1) AND MA4>REF(MA4,1),LOW,'BUY');
//DRAWICON(MA1>MA2 AND MA1<REF(MA1,1) AND J<REF(J,1) AND REF(J,1)>REF(J,2) AND RSI1<REF(RSI1,1) AND REF(RSI1,1)>REF(RSI1,2) AND WR1<REF(WR1,1),HIGH,'SELL');
DRAWICON(RSI1<REF(RSI1,1) AND REF(RSI1,1)>REF(RSI1,2) AND J<REF(J,1) AND REF(J,1)>REF(J,2) AND WR1<REF(WR1,1) AND MA1>MA2,HIGH,'SELL');
DRAWTEXT(MA1<MA2 AND MA2<MA3 AND MA3<MA4 AND MA1<REF(MA1,1) AND MA2<REF(MA2,1) AND MA3<REF(MA3,1) AND MA4<REF(MA4,1),HIGH*2,'跑');
DRAWTEXT(MA3<REF(MA3,1) AND MA4<REF(MA4,1),-HIGH*0.5,'弱');