公式解读:
指标说明:
许多主升浪启动点都为涨停板启动,主升浪前期有很大一波横盘行情,如果在横盘这段时间去买进,很少有买到启动点的,那样我们等不起,我们也不可能每时每刻都盯着我们看好的股票,好吧,我们退一步,在规定时间里,横盘震荡后,今天涨停且过前期高点,那么说明,要发威了,或试盘了!为了保证个人安全,本人研究了很长时间很多个涨停板,发现了一个规律!只要过前高的涨停,如果低开,图再恒稳,低开2个点左右,那么我们就可以买进,基本当天就可以获利丰厚,或第二天冲高出局!就算主力出货,第二天也会有冲高让我们出来,主要需要大家把握点了!
通达信指标公式源码:
M25:MA(C,25);
M60:MA(C,60);
T:=BARSLAST(C OANDC/REF(C,1) 1.05);
TJ1:=EVERY(L MA(C,60),T+1);
DF:=(C-REF(C,T+1))/REF(C,T+1)*100;
TJ2:=DF -11ANDC OANDTJ1ANDL=LLV(L,T+1);
C60:=BETWEEN(REF((L/M60-1)*100,1),0,6);
C25:=BETWEEN(REF((L/M25-1)*100,1),0,6);
TJ3:=C60ORC25;
XG:=REF(TJ2,1)ANDC OANDTJ3;
STICKLINE(XG,C,O,1.5,0),COLORYELLOW;
STICKLINE(XG,H,L,0,0),COLORYELLOW;
DRAWICON(XG,L*0.98,1);
X_1:=MA(CLOSE,5);
X_2:=MA(CLOSE,10);
X_3:=MA(CLOSE,20);
X_4:=MA(CLOSE,60);
X_5:=MA(CLOSE,120);
X_6:=3;
X_7:=5;
X_8:=8;
X_9:=13;
X_10:=21;
X_11:=34;
X_12:=14;
X_13:=EMA(CLOSE,X_8)-EMA(CLOSE,X_9);
X_14:=EMA(X_13,X_7);
X_15:=X_13 X_14;
X_16:=X_13 X_14;
X_17:=IF(X_13 X_14,1,0);
X_18:=(CLOSE-LLV(LOW,X_8))/(HHV(HIGH,X_8)-LLV(LOW,X_8))*100;
X_19:=SMA(X_18,X_6,1);
X_20:=SMA(X_19,X_6,1);
X_21:=X_19 X_20;
X_22:=X_19 X_20;
X_23:=IF(X_19 X_20,1,0);
X_24:=REF(CLOSE,1);
X_25:=SMA(MAX(CLOSE-X_24,0),X_7,1)/SMA(ABS(CLOSE-X_24),X_7,1)*100;
X_26:=SMA(MAX(CLOSE-X_24,0),X_9,1)/SMA(ABS(CLOSE-X_24),X_9,1)*100;
X_27:=X_25 X_26;
X_28:=X_25 X_26;
X_29:=IF(X_25 X_26,1,0);
X_30:=(-HHV(HIGH,X_9)-CLOSE)/(HHV(HIGH,X_9)-LLV(LOW,X_9))*100;
X_31:=SMA(X_30,X_6,1);
X_32:=SMA(X_31,X_6,1);
X_33:=X_31 X_32;
X_34:=X_31 X_32;
X_35:=IF(X_31 X_32,1,0);
X_36:=(MA(CLOSE,X_6)+MA(CLOSE,X_7)+MA(CLOSE,X_8)+MA(CLOSE,X_9))/4;
X_37:=CLOSE X_36;
X_38:=CLOSE X_36;
X_39:=IF(CLOSE X_36,1,0);
X_40:=CLOSE-REF(CLOSE,1);
X_41:=100*EMA(EMA(X_40,X_7),X_6)/EMA(EMA(ABS(X_40),X_7),X_6);
X_42:=100*EMA(EMA(X_40,X_9),X_8)/EMA(EMA(ABS(X_40),X_9),X_8);
X_43:=X_41 X_42;
X_44:=X_41 X_42;
X_45:=IF(X_41 X_42,1,0);
X_46:=(HIGH+LOW+CLOSE)/3;
X_47:=(X_46-MA(X_46,X_12))/(0.015*AVEDEV(X_46,X_12));
X_48:=X_47 REF(X_47,1)ANDX_47 (-60);
X_49:=X_47 REF(X_47,1)ANDX_47
X_50:=IF(X_47 REF(X_47,1),1,0);
X_51:=(CLOSE-MA(CLOSE,X_7))/MA(CLOSE,X_7);
X_52:=X_51-REF(X_51,16);
X_53:=SMA(X_52,76,1);
X_54:=MA(X_53,5);
X_55:=X_53 X_54;
X_56:=X_53 X_54;
X_57:=IF(X_53 X_54,1,0);
X_58:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_59:=LLV(X_58,3);
X_60:=MA(X_58,12);
X_61:=CROSS(X_58,X_60);
X_62:=MA(X_58,5);
X_63:=CROSS(X_62,X_58)ANDX_62
X_64:=X_58 X_60;
X_65:=X_58 X_60;
X_66:=IF(X_58 X_60,1,0);
X_67:=CLOSE-REF(CLOSE,1);
X_68:=100*EMA(EMA(X_67,X_8),X_8)/EMA(EMA(ABS(X_67),X_8),X_8);
X_69:=MA(X_68,5);
X_70:=X_68 X_69;
X_71:=X_68 X_69;
X_72:=IF(X_68 X_69,1,0);
X_73:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
X_74:=REF(EMA(X_73,3),1);
X_75:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_76:=IF(CLOSE OPEN,X_75*(HIGH-LOW),IF(CLOSE OPEN,X_75*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE OPEN,0-X_75*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE OPEN,0-X_75*(HIGH-LOW),0-VOL/2));
X_77:=X_76/20/1.15;
X_78:=X_77*0.55+REF(X_77,1)*0.33+REF(X_77,2)*0.22;
X_79:=EMA(X_78,8);
X_80:=EMA(X_78,3);
X_81:=X_80;
X_82:=X_81
X_83:=X_81
X_84:=IF(X_81 0,1,0);
X_85:=IF(CLOSE SAR(4,2,20),1,0);
X_86:=LLV(LOW,9);
X_87:=HHV(HIGH,9);
X_88:=EMA((CLOSE-X_86)/(X_87-X_86)*100,3);
X_89:=EMA(X_88,3);
X_90:=MA(X_19,3);
X_91:=IF(X_89 X_90,1,0);
X_92:=(CLOSE+HIGH+LOW+OPEN)/4;
X_93:=SUMBARS(VOL,CAPITAL);
X_94:=HHV(X_92,X_93);
X_95:=LLV(X_92,X_93);
X_96:=(2*X_92-X_95-REF(X_95,1))/(X_94-X_95);
X_97:=(X_92-X_95)/(X_94-X_95);
X_98:=IF(X_92 =X_95,X_96*60,X_97*60);
X_99:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
X_100:=EMA(X_99,7);
X_101:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
X_102:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
X_103:=HHV(HIGH,9)-LLV(LOW,9);
X_104:=HHV(HIGH,9)-CLOSE;
X_105:=CLOSE-LLV(LOW,9);
X_106:=X_104/X_103*100-70;
X_107:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
X_108:=(2*CLOSE+HIGH+LOW)/4;
X_109:=SMA(X_105/X_103*100,3,1);
X_110:=LLV(LOW,34);
X_111:=SMA(X_109,3,1)-SMA(X_106,9,1);
X_112:=IF(X_111 100,X_111-100,0);
X_113:=HHV(HIGH,34);
X_114:=EMA((X_108-X_110)/(X_113-X_110)*100,8);
X_115:=EMA(X_114,5);
X_116:=IF(X_114-X_115 0,1,0);
X_117:=SMA(AMOUNT,10,1)/10000000*2;
X_118:=REF(X_117,1);
X_119:=IF(X_117 X_118,1,0);
X_120:=18;
X_121:=10;
X_122:=(2*CLOSE+HIGH+LOW+OPEN)/5;
X_123:=LLV(LOW,X_121);
X_124:=HHV(HIGH,X_121);
X_125:=EMA((X_122-X_123)/(X_124-X_123)*100,13);
X_126:=EMA(X_125,3);
X_127:=IF(X_125 REF(X_125,1),1,0);
X_128:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200*10;
X_129:=SMA(X_128,5,1);
X_130:=IF(X_129 REF(X_129,1),1,0);
X_131:=X_17+X_23+X_29+X_35+X_39+X_45+X_50+X_57+X_66+X_72+X_84+X_85+X_91+X_116+X_119+X_127+X_130;
X_132:=IF(X_131 7,1,0);
X_133:=(CLOSE/REF(CLOSE,1)-1)*100;
X_134:=(CLOSE/REF(CLOSE,1)-1)*100 =9.91;
X_135:=VOL/REF(MA(VOL,5),1);
X_136:=AMOUNT/100000000;
X_137:=IF(X_135 1,1,0);
X_138:=IF(VOL REF(VOL,1)*1.2,1,0);
X_139:=EMA(CLOSE,2);
X_140:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
X_141:=CROSS(X_139,X_140);
X_142:=CROSS(X_140,X_139);
X_143:=IF(X_141 0,1,0);
X_144:=IF(CLOSE MA(CLOSE,20)ORCLOSE MA(CLOSE,60),1,0);
X_145:=IF(CLOSE REF(CLOSE,40)*1.6ANDCLOSE REF(CLOSE,40)ANDCLOSE REF(CLOSE,1),1,0);
X_146:=IF(VOL MA(VOL,40),1,0);
X_147:=EMA(WINNER(CLOSE)*70,3);
X_148:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*65,3);
X_149:=X_148/(X_147+X_148)*100;
X_150:=X_147/(X_147+X_148)*100;
X_151:=EMA(X_150,89);
X_152:=INTPART(X_149);
X_153:=INTPART(X_150);
X_154:=IF(X_153 X_152,1,0);
X_155:=IF(VOL REF(VOL,10)*0.5,1,0);
X_156:=IF(CLOSE REF(CLOSE,1)*1.07,1,0);
X_157:=IF(CLOSE REF(CLOSE,1)*1.05,1,0);
X_158:=IF(REF(X_133,1) 9.91,2,0);
X_159:=IF(REF(X_133,2) 9.91,2,0);
X_160:=IF(X_158=0ANDX_159=0,0,1);
X_161:=IF(COUNT(X_133 =9.91,25) =4OR(COUNT(X_133 =9.91,25) =3ANDCLOSE HHV(CLOSE,20)),0,1);
X_162:=VOL*CLOSE*100;
X_163:=SUM(X_162,1)/(SUM(VOL,1)*100);
X_164:=5;
X_165:=EMA(X_163,X_164);
X_166:=(X_163-X_165)*100/X_163;
X_167:=HHV(X_166,30);
X_168:=X_166 =HHV(REF(X_166,1),15);
X_169:=TFILTER(X_166 0ANDX_168 0,X_166 =0,1);
X_170:=IF(X_169 0,1,0);
X_171:=IF(X_166 0AND(BARSLAST(X_170=1) =0ANDBARSLAST(X_170=1) =10),1,0);
X_172:=IF(X_137 0ANDX_138 0ANDX_144 0ANDX_145 0ANDX_146 0ANDX_154 0ANDX_155 0ANDX_132 0ANDX_157 0ANDX_160 0ANDX_161 0ANDX_171 0,1,0);
X_173:=IF(X_172 0ANDX_132 0,1,0);
X_174:=TFILTER(X_173 0,X_132=0,1);
X_175:=TFILTER(X_173 0,X_132=0,2);
X_176:=IF(NAMELIKE(1),0,1);
X_177:=IF(NAMELIKE(2),0,1);
X_178:=DYNAINFO(17)
X_179:=X_176ANDX_177ANDX_178;
XG:X_179ANDX_174;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
FASTK:=SMA(RSV,3,1);
K:SMA(FASTK,3,1);
D:SMA(K,5,1),colorwhite;
80,POINTDOT,linethick2;
20,POINTDOT,linethick2;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF(VAR9 100,VAR9-100,0);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
VAR14:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF
(INDEXC,1))/INDEXC,8,1)*100-25;
VAR15:=MA(Var14,3);
VAR16:=REF(VAR15,1);
STICKLINE(VAR12-VAR13 0,VAR12,VAR13,8,0),colorred;
STICKLINE(VAR12-VAR13 0,VAR12,VAR13,8,0),colorgreen;
生命线:=EMA(VAR13,5);
STICKLINE(CROSS(VAR13,VAR12)ANDVAR12 60,90,100,10,0),COLOR00ff00;
绿灯亮卖:0,color00ff00;
STICKLINE(CROSS(VAR12,VAR13)ANDVAR12 VAR13ANDVAR12 18,10,0,10,0),colorred;
红灯亮买:0,colorred;
Var21:=INDEXC;
Var22:=MA(Var21,6);
Var23:=MA(Var21,24);
Var24:=MA(Var21,32);
Var25:=MA(Var21,62);
Var26:=MA(Var21,105);
Var27:=Var25 REF(Var25,1)ANDVar26 REF(Var26,1)ANDVar25 Var26*0.98;
Var28:=Var24 Var22*1.11ANDVar23 Var22*1.095;
Var29:=Var22 Var21*0.95;
一:=Var27ANDVar28ANDVar29ANDCLOSE/COST(8) =0.8ANDCLOSE OPEN;
STICKLINE(抄底一,40,60,1,1),colorff00ff;
Var2A:=CLOSE/MA(CLOSE,40)*100
Var2B:=CLOSE/MA(CLOSE,60)*100
Var2C:=HIGH LOW*1.051;
Var2D:=Var2CANDCOUNT(Var2C,5)
Var2E:=Var2DAND(Var2AORVar2B);
Var2F:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Var30:=(CLOSE-Var2F)/Var2F*100+30-(REF(HIGH,13)/CLOSE-1.35)*100;
Var31:=(CLOSE-REF(CLOSE,5))/CLOSE*100
Var32:=WINNER(CLOSE);
Var33:=EMA((INDEXC-MA(INDEXC,10))/INDEXC*100,14) -4.9;
Var34:=(MA(VOL,5)-VOL)/CAPITAL*100
Var35:=(VOL-MA(VOL,21))/VOL*100;
抄底二:=Var33ANDVar31ANDVar32 0.12ANDVar34ANDVar35
STICKLINE(抄底二,40,60,3,1),coloryellow;
Var36:=(REF(CLOSE,1)+REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5))/5;
Var37:=(REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5)+REF(CLOSE,6))/5;
Var38:=(REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5)+REF(CLOSE,6)+REF(CLOSE,7))/5;
Var39:=(REF(CLOSE,4)+REF(CLOSE,5)+REF(CLOSE,6)+REF(CLOSE,7)+REF(CLOSE,8))/5;
Var3A:=(REF(CLOSE,5)+REF(CLOSE,6)+REF(CLOSE,7)+REF(CLOSE,8)+REF(CLOSE,9))/5;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
抄底三:=(Var36/CLOSE 1.112ORVar37/CLOSE 1.123ORVar38/CLOSE 1.135ORVar39/CLOSE 1.145ORVar3A/CLOSE 1.156)ANDBIAS3 =-20ANDCOST(25)/CLOSE =1.5ANDCLOSE OPEN;
DRAWTEXT(抄底三,40,'注意'),color0099ff;
Var3B:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
抄底四:=FILTER(IF(CROSS(Var3B,-28),1,0),8);
STICKLINE(CROSS(Var3B,-28),40,50,8,1),colorwhite;
Var3C:=DMA(EMA(CLOSE,13),SUM(VOL,5)/2/CAPITAL);
Var3D:=(CLOSE-Var3C)/Var3C*100;
抄底五:=REF(Var3D,1) -35ANDVar3D REF(Var3D,1)ANDREF(Var3D,1) REF(Var3D,2)ANDVar3D-REF(Var3D,1)
STICKLINE(抄底五,20,30,8,1),colorffcc66;
Var3E:=100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9);
抄底六:=CLOSE OPEN*1.06ANDVar3E
STICKLINE(抄底六,10,20,8,1),colorblue;
[源码注释]通达信公式动态公式解读
输出XG:收盘价的5日简单移动平均 收盘价的13日简单移动平均并且收盘价的13日简单移动平均 收盘价的21日简单移动平均并且最近7日一直存在收盘价的5日简单移动平均和收盘价的13日简单移动平均的较小值 收盘价的30日简单移动平均