精准预测股价变化通达信指标公式源码
准确率超高通达信指标公式源码
经过实盘操作,准确率很高的指标里有具体的使用说明;VAR1S:=(CLOSE*2+HIGH+LOW)/4;VAR2S:=(EMA(VAR1S,13)-EMA(VAR1S,34))/EMA(VAR1S,34)*100;VAR3S:=EMA(VAR2S,5);主力控盘:=2*(VAR2S-VAR3S)*3.8;SA1:= 主力控盘,COLORWHITE,NODRAW;SA2:=SA1-REF(SA1,1);SA3:=MA(SA1,3),COLORGREEN;SAA3:=MA(SA1,7),COLORCYAN;SAA4:=MA(SA1,13),COLORRED;MM1:=MA(CLOSE,5);Q5:(MM1-REF(MM1,1))/REF(MM1,1)*100,NODRAW,COLORMAGENTA;MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-L OW)),14);HD2 :=HIGH-REF(HIGH,1);LD2 :=REF(LOW,1)-LOW;DMP2:=EXPMEMA(IF(HD2>0&&HD2>LD2,HD2,0),14);DMM2:=EXPMEMA(IF(LD2>0&&LD2>HD2,LD2,0),14);PDI2:=DMP2*100/MTR;MDI2:=DMM2*100/MTR;ADX:=EXPMEMA(ABS(MDI2-PDI2)/(MDI2+PDI2)*100,6);ADXR:=EXPMEMA(ADX,6);SAA31:=SAA3-REF(SAA3,1);ADXR12:=MA(ADX,3);ADXR13:=ADX-ADXR12;ADXR14:=ADX-ADXR;ZK2:=ADX<16;ZK3:=(ADXR<16&&ADX<20);ZK31:=ADXR<20&&ADXR>ADX;ZK4:=(ADX<MDI2&&ADXR<MDI2&&ADX<30);ZK41:=(ADX<PDI2&&ADXR<PDI2&&PDI2>MDI2&&ADX<30&&ADX<REF(ADX,1));ZK5:=(ZK2 OR ZK3 OR ZK31);SWQ1:=MAX(ADX,ADXR);AD1:=ADX-REF(ADX,1);Y:=(H+O+L+3*C)/6;X:=EMA(100-(100/(1+SUM(IF(Y>REF(Y,1),Y*VOL,0),13)/SUM(IF(Y<REF(Y,1),Y*VOL,0), 13))),5),COLOR00FFFF,LINETHICK2;AA:=30>X,LINETHICK0;BB:=X>80,LINETHICK0;VAR1:=(C-MA(C,6))/MA(C,6)*100;VAR2:=(C-MA(C,24))/MA(C,24)*100;VAR3:=(C-MA(C,32))/MA(C,32)*100;VAR4:=(VAR1+VAR2+VAR3)/3;VAR5:=EMA(VAR4,5);VAR6:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;VAR7:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LL V(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);VAR8:=VAR7<REF(VAR7,1) AND V>REF(V,1) AND C>REF(C,1);K:EMA(VAR5,5)*4;D:EMA(K,5),NODRAW,COLOR38B0DE;J:K*3-D*2,NODRAW,COLORCC66FF;MACD:EMA(EMA(VAR1,5),5)*6,NODRAW,COLORWHITE;{DRAWBAND(J,RGB(238,238,6),K,RGB(256,150,60));}DRAWBAND(K,RGB(238,238,6),D,RGB(256,150,60));按短线卖:IF(EXIST(Q5>2.5,5),-60,DRAWNULL),LINETHICK7,COLORGREEN;按短线卖2:IF(EVERY(Q5<2.5,5)&&MACD>8,-60,DRAWNULL),LINETHICK7,COLORYELLOW;按短线买:IF(EXIST(Q5<-2.5,5),-60,DRAWNULL),LINETHICK7,COLORRED;中线股:IF(SA1>0,-40,DRAWNULL),LINETHICK7,COLORMAGENTA;中线币:IF(SA1<0,-40,DRAWNULL),LINETHICK7,COLORGREEN;盘整币:IF(MDI2>ADXR OR ZK5,-30,DRAWNULL),LINETHICK7,COLORGREEN; DRAWTEXT(EVERY(Q5<1,4)&&Q5>0&&MACD>REF(MACD,1)&&REF(MACD,1)<REF(MAC D,2)&&EVERY(Q5>-0.5,4),MACD*1.04,'P卖'),COLORGREEN;STICKLINE(SA1<REF(SA1,1),0,MACD*1.03,2,1),COLORGREEN;STICKLINE(SA1>REF(SA1,1)&&SA1>0,0,MACD*1.03,2,1),COLORRED;STICKLINE(Q5>5&&SA1>0&&MACD>REF(MACD,1),0,MACD*1.03,2,1),COLORRED; DRAWTEXT(AA&&SA1>REF(SA1,1),MACD*1.1,'吸货'),COLOR0066FF;DRAWTEXT(BB&&SA1<REF(SA1,1),MACD*1.1,'派发'),COLORFFFF00;DRAWTEXT(CROSS(3,Q5)&&EXIST(Q5>4,6),MACD*1.1,'卖4'),COLORGREEN; DRAWTEXT(CROSS(4,Q5)&&EXIST(Q5>5,6),MACD*1.1,'卖5'),COLORGREEN; DRAWTEXT(CROSS(5,Q5)&&EXIST(Q5>6,6),MACD*1.1,'卖6'),COLORGREEN; DRAWTEXT(CROSS(6,Q5)&&EXIST(Q5>7,5),MACD*1.1,'卖7'),COLORGREEN; STICKLINE(MACD>0,0,MACD,1,0),COLORRED;STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),COLORFFFF00; STICKLINE(MACD<0,0,MACD,1,0),COLORFF9900;STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,1,0),COLORFF00FF;MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+1 5*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+1 0*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+ 5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/21 1,COLOR0000FF;牵牛线:=MA(CLOSE,26),COLORFF00FF;CX1:=辰星线;QN1:=牵牛线;IF(CX1>REF(CX1,1)&&CX1>QN1,-50,DRAWNULL),LINETHICK7,COLORRED;IF(CX1>REF(CX1,1)&&CX1<QN1,-50,DRAWNULL),LINETHICK7,COLORMAGENTA;IF(CX1<REF(CX1,1)&&CX1<QN1,-50,DRAWNULL),LINETHICK7,COLORGREEN;IF(CX1<REF(CX1,1)&&CX1>QN1,-50,DRAWNULL),LINETHICK7,COLORCYAN; DRAWTEXT(NDAY(SA1,0,2)&&CX1>REF(CX1,1)&&MACD>REF(MACD,1)&&REF(MACD,1) <REF(MACD,2),MACD*1.1,'BBB'),COLORMAGENTA;DA:=(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;X2:=(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA, 5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*RE F(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+ 3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORF0F000;X3:=(MA(X2,3)+MA(X2,2))/2,COLORYELLOW,LINETHICK1;DRAWTEXT(SA1>REF(SA1,1)&&SA1>0&&REF(SA1,1)<REF(SA1,2)&&X2>X3,MACD*1.1,'信号1'),COLORMAGENTA;DRAWTEXT(Q5>5&&SA1>0&&MACD>REF(MACD,1)&&REF(MACD,1)<REF(MACD,2)&&X2 >X3,MACD*1.1,'信号2'),COLORRED;DRAWTEXT(MACD>0&&MACD>REF(MACD,1)&&REF(MACD,1)<REF(MACD,2)&&X2>X3,-3,'信号3'),COLORRED;DRAWTEXT(MACD<0 ANDMACD>REF(MACD,1)&&REF(MACD,1)<REF(MACD,2)&&X2>X3,MACD*1.1,'信号4'),COLORWHITE;-60;-50;-40;-30;。
买卖明确通达信指标公式源码
买卖明确通达信指标公式源码通达信指标是国内最常用的股票技术指标之一,被广泛用于股票市场的分析和交易。
以下是一些常见的通达信指标的源码。
1.移动平均线(MA)移动平均线是股票市场中最常用的技术指标之一,用于平滑价格走势。
以下是通达信中计算简单移动平均线的源码:```pythondef MA(close, n):ma = []for i in range(n-1):ma.append(None)for i in range(n-1, len(close)):sum = 0for j in range(n):sum += close[i-j]ma.append(sum/n)return ma```2.相对强弱指标(RSI)相对强弱指标用于测量价格走势的强弱程度,可以帮助判断股票是否超买或超卖。
以下是通达信中计算相对强弱指标的源码:```pythondef RSI(close, n):rsi = []for i in range(n-1):rsi.append(None)for i in range(n-1, len(close)):up_sum = 0down_sum = 0for j in range(n):if close[i-j] > close[i-j-1]:up_sum += close[i-j] - close[i-j-1]elif close[i-j] < close[i-j-1]:down_sum += close[i-j-1] - close[i-j]if up_sum + down_sum == 0:rsi.append(50)else:rsi.append(100 * up_sum / (up_sum + down_sum))return rsi```3.指数移动平均线(EMA)指数移动平均线是对价格走势进行指数加权平均的技术指标,可以反映价格走势的动态变化。
以下是通达信中计算指数移动平均线的源码:```pythondef EMA(close, n):ema = []k=2/(n+1)for i in range(n-1):ema.append(None)ema.append(close[n-1])for i in range(n, len(close)):ema.append((1-k)*ema[i-1] + k*close[i])return ema```4.随机指标(KDJ)随机指标是通过比较最高价、最低价和收盘价来反映价格走势强弱的技术指标。
买卖明确通达信指标公式源码
买卖明确通达信指标公式源码
1.移动平均线(MA):
移动平均线是股票技术分析中常用的指标之一,计算股票收盘价的n
日平均值。
在通达信中,计算n日移动平均线的公式源码如下:MA(CLOSE,N):REF(MA(CLOSE,N),1)*(N-1)/N+CLOSE/N;
其中CLOSE表示收盘价,N表示移动平均的周期。
2.相对强弱指标(RSI):
相对强弱指标是衡量股票市场上涨和下跌压力的指标,计算公式如下:LC:=REF(CLOSE,1);
RSI:SMA(MAX(A,0),N,1)/SMA(ABS(A),N,1)*100;
其中A表示当日股价与前一日的差值,N表示RSI的计算周期。
3.随机指标(KDJ):
随机指标是一种超买超卖指标,计算公式如下:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
其中LLV表示最低价的最小值,HHV表示最高价的最大值,N表示计
算KDJ的周期,而M1和M2表示计算KDJ的平滑周期。
4.平均真实波幅(ATR):
平均真实波幅是一种衡量股票波动性的指标,计算公式如下:TR1=MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1)));
ATR:MA(TR1,M);
其中TR1表示真实波幅,M表示计算ATR的周期。
通达信精典趋势线主图指标源码及预警
通达信精典趋势线主图指标源码及预警E5:=EMA(C,5);E13:=EMA(C,13);DRAWBAND(E5,RGB(200,0,0),E13,RGB(0,200,0));DRAWKLINE(H,O,L,C);平衡:EMA(C,20)COLORYELLOW;上轨:平衡 + 2*STD(C,20),LINETHICK2,COLORMAGENTA;下轨:平衡 - 2*STD(C,20),LINETHICK2,COLORGREEN;IF(平衡>REF(平衡,1),平衡,DRAWNULL),COLORRED;IF(平衡=REF(平衡,1),平衡,DRAWNULL),COLORYELLOW;IF(平衡<REF(平衡,1),平衡,DRAWNULL),COLORGREEN;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFBB0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFDD0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.5,0 ),COLORFFFF 00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0) ,COLOR0000FF;VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);红持:=VAR9Q;STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000055;STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR000077;STICKLINE(VAR9Q,C,(O+C)/2,0.5,0),COLOR0000FF;VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);粉变:=VARAQ;STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF11FF;STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFF55FF;STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF99FF;STICKLINE(VARAQ,C,(O+C)/2,0.5,0),COLORFFDDFF;VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)!=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);灰跌:=VARBQ;STICKLINE(VARBQ,C,(O+C)/2,3,0),COLOR333333;STICKLINE(VARBQ,C,(O+C)/2,2,0),COLOR777777;STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORBBBBBB;STICKLINE(VARBQ,C,(O+C)/2,0.5,0),COLORFFFFFF;VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);绿买:=VARCQ;STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR003300;STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR007700;STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00BB00;STICKLINE(VARCQ,O,(O+C)/2,0.5,0),COLOR00FF00;VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);蓝抛:=VARDQ;STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFF5500;STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFF9900;STICKLINE(VARDQ,O,(O+C)/2,0.5,0),COLORFFDD00;Y1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9),3),1);{DRAWTEXT(CROSS(CLOSE,Y1),LOW,'[买进]'),COLORYELLOW;STICKLINE(CROSS(Y1,CLOSE),H*1.05,H,0,0),COLORWHITE;{DRAWTEXT(CROSS(Y1,CLOSE),HIGH*1.05,'[卖出]'),COLORWHITE;{新加}VAR1W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR2W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3W:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));{DRAWTEXT(CROSS(VAR2W,MA(VAR3W,6)),LOW -0.6,'(买)'),COLORFF99FF;DRAWTEXT(CROSS(MA(VAR3W,6),VAR1W),HIGH+0.9,'(卖)'),COLORCCFF13;}VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);STICKLINE(VAR3P>90,L,L*0.92,0,0),COLORFF00FF;DRAWTEXT(VAR3P>90,LOW*0.92,'追涨'),COLORFF00FF;SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+C LOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CL OSE)/3,5),2);SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) ANDC>O;MR:=SC AND COUNT(SS,2);买:=MR AND NOT(REF(MR,1));STICKLINE(买,L,L*0.95,0,0),COLORRED;DRAWTEXT(买,L*0.95, '必涨'),COLORRED;多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);STICKLINE(CROSS(78.89,多方),H+0.1,H,0,0),COLOR00FF00;DRAWTEXT(CROSS(78.89,多方),H+0.3,'(逃顶)'),COLOR00FF00;A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1);A2:=(EMA(A1,5)-REF(EMA(A1,5),1))/REF(EMA(A1,5),1)*1;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;{DRAWTEXT(CROSS(A1,EMA(A1,5))ANDEMA(A1,5)<A5,L*0.98,'(黑马)'),COLORYELLOW;}VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*1;VAR2:=SMA(VAR1,3,1)*100;趋势线:=SMA((SMA(VAR2,3,1)*VAR1),3,1)*1;VAR9:=CROSS(趋势线,(SMA(VAR2,3,1)*VAR1)) AND (SMA(VAR2,3,1)*VAR1)>8;{DRAWTEXT(VAR9 AND COUNT(VAR9,1)=1,H+0.4,'逃'), LINETHICK2,COLORYELLOW;{新加}DRAWICON(FILTER(CROSS(-"WR.WR1"(14,14),(0 - 81)),10),L-0.2,1);E5:=EMA(C,5);E13:=EMA(C,13);DRAWBAND(E5,RGB(200,0,0),E13,RGB(0,200,0));DRAWKLINE(H,O,L,C);平衡:EMA(C,20)COLORYELLOW;上轨:平衡 + 2*STD(C,20),LINETHICK2,COLORMAGENTA;下轨:平衡 - 2*STD(C,20),LINETHICK2,COLORGREEN;IF(平衡>REF(平衡,1),平衡,DRAWNULL),COLORRED;IF(平衡=REF(平衡,1),平衡,DRAWNULL),COLORYELLOW;IF(平衡<REF(平衡,1),平衡,DRAWNULL),COLORGREEN;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFBB0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFDD0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.5,0 ),COLORFFFF 00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0) ,COLOR0000FF;VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);红持:=VAR9Q;STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000055;STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR000077;STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000BB;STICKLINE(VAR9Q,C,(O+C)/2,0.5,0),COLOR0000FF;VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);粉变:=VARAQ;STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF11FF;STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFF55FF;STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF99FF;STICKLINE(VARAQ,C,(O+C)/2,0.5,0),COLORFFDDFF;VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)!=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);灰跌:=VARBQ;STICKLINE(VARBQ,C,(O+C)/2,3,0),COLOR333333;STICKLINE(VARBQ,C,(O+C)/2,2,0),COLOR777777;STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORBBBBBB;STICKLINE(VARBQ,C,(O+C)/2,0.5,0),COLORFFFFFF;VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);绿买:=VARCQ;STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR003300;STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR007700;STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00BB00;STICKLINE(VARCQ,O,(O+C)/2,0.5,0),COLOR00FF00;VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);蓝抛:=VARDQ;STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF1100;STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFF5500;STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFF9900;STICKLINE(VARDQ,O,(O+C)/2,0.5,0),COLORFFDD00;Y1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9),3),1);{DRAWTEXT(CROSS(CLOSE,Y1),LOW,'[买进]'),COLORYELLOW;STICKLINE(CROSS(Y1,CLOSE),H*1.05,H,0,0),COLORWHITE;{DRAWTEXT(CROSS(Y1,CLOSE),HIGH*1.05,'[卖出]'),COLORWHITE;{新加}VAR1W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR2W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3W:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));{DRAWTEXT(CROSS(VAR2W,MA(VAR3W,6)),LOW -0.6,'(买)'),COLORFF99FF;DRAWTEXT(CROSS(MA(VAR3W,6),VAR1W),HIGH+0.9,'(卖)'),COLORCCFF13;}VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);STICKLINE(VAR3P>90,L,L*0.92,0,0),COLORFF00FF;DRAWTEXT(VAR3P>90,LOW*0.92,'追涨'),COLORFF00FF;SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+C LOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CL OSE)/3,5),2);SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;MR:=SC AND COUNT(SS,2);买:=MR AND NOT(REF(MR,1));STICKLINE(买,L,L*0.95,0,0),COLORRED;DRAWTEXT(买,L*0.95, '必涨'),COLORRED;多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);STICKLINE(CROSS(78.89,多方),H+0.1,H,0,0),COLOR00FF00;DRAWTEXT(CROSS(78.89,多方),H+0.3,'(逃顶)'),COLOR00FF00;A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1);A2:=(EMA(A1,5)-REF(EMA(A1,5),1))/REF(EMA(A1,5),1)*1;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;{DRAWTEXT(CROSS(A1,EMA(A1,5))ANDEMA(A1,5)<A5,L*0.98,'(黑马)'),COLORYELLOW;}VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*1;VAR2:=SMA(VAR1,3,1)*100;趋势线:=SMA((SMA(VAR2,3,1)*VAR1),3,1)*1;VAR9:=CROSS(趋势线,(SMA(VAR2,3,1)*VAR1)) AND (SMA(VAR2,3,1)*VAR1)>8;{DRAWTEXT(VAR9 AND COUNT(VAR9,1)=1,H+0.4,'逃'), LINETHICK2,COLORYELLOW;{新加}DRAWICON(FILTER(CROSS(-"WR.WR1"(14,14),(0 - 81)),10),L-0.2,1);请老师分别做个必涨。
通达信指标公式源码 变色趋势指标 上涨下跌一目了
VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;VAR4:=EMA(VAR3,5);VAR5:=3*VAR3-2*VAR4;AAA:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=LLV(LOW,13);VAR8:=HHV(HIGH,13);VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);多:VAR9,COLORBLUE,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORYELLOW; STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORBLUE;STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORYELLOW;Y:=(H+O+L+3*C)/6;X:=EMA(100-(100/(1+SUM(IF(Y>REF(Y,1),Y*VOL,0),14)/SUM(IF(Y<REF(Y,1),Y*VOL,0),14))),5),COLORBLUE;A1:=30,COLORWHITE;A2:=50,COLORWHITE;A3:=60,COLORFF0080;A4:=70,POINTDOT;A5:=80,COLORRED;MA5:=MA(C,5);MA6:=MA(C,6);MA10:=MA(C,10);MA20:=MA(C,20);A2M:=REF(MA20,1);J1:=(MA20-A2M)/A2M*100;MJ1:=MA(J1,3);MA30:=MA(C,30);MA60:=MA(C,60);MA120:=MA(C,120);乖离2:=(MA20-MA30)/MA30*100;VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);MAX1:=MAX(MA20,MA30);MAX2:=MAX(MAX1,MA60);MIN1:=MIN(MA20,MA30);MIN2:=MIN(MIN1,MA60);K1:=(MAX2/MIN2-1)*100;{粘合度符合条件}VAR2N:=IF(K1<=8,1,0);短线暴张:DRAWTEXT(FILTER( (VAR1 OR VAR2N) AND MA10>REF(MA10,1) AND COUNT(MA30>REF(MA30,1),3)=3 AND MA30>MA60 ANDCOUNT(CROSS(MA5,MA30),3) AND J1>MJ1 AND MA(V,5)>MA(V,60)AND MA(V,60)>REF(MA(V,60),1),5),68,'暴张'),COLORYELLOW;DRAWTEXT(CROSS("KDJ.K"(5,2,3),"KDJ.D"(5,2,3)) AND "KDJ.D"(5,2,3)<30 AND J1>MJ1 AND MA60>REF(MA60,1) AND COUNT(J1<1,3)>=1 ,58,'买入'),COLORWHITE;XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04)); XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),42,'买点'),COLORBLUE; DRAWTEXT((XL3 > 0),50,'底部'),COLORYELLOW;X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100); X8:=CROSS(79,X7);X9:=FILTER(X8,4);DRAWTEXT(X9, 56,'出货'),COLOR9000F5;VARQ1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VARQ2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VARQ3:=SMA(VARQ2,2,1);天:=100+(-ABS(VARQ1)),COLORRED;下:=SMA(VARQ3,2,1);选股2:=IF(CROSS(下,20),1,0);DRAWICON((CROSS(下,20) ),30,1);V1:=EMA(CLOSE,60)-EMA(CLOSE,300);V2:=EMA(V1,300);V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;操盘线:=SMA(V3,2,1),LINETHICK3;V5:=SMA(操盘线,2,1);抄底:=IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,18,0),COLORYELLOW,LINETHICK3;追买:=IF(操盘线>REF(操盘线,1) AND CROSS(操盘线,V5) ANDV5<50,8,0),COLORRED;。
精准抄底大黑马通达信指标公式源码
信号出现时高点低点一目了然,好不好直接上图VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1)+100;VAR6:=VAR5-VAR2;趋势:IF(VAR6>45,VAR6-45,0);0,COLOR00FFFF;20,POINTDOT,COLORFFAA66,LINETHICK1;80,POINTDOT,COLORFFAA66,LINETHICK1;100,COLORFFFF33;V1:=LLV(LOW,10);V2:=HHV(H,25);价位线:=EMA((C-V1)/(V2-V1)*4,4);DRAWTEXT(CROSS(价位线,0.3),20+4,'●买'),COLORRED;DRAWTEXT(CROSS(3.5,价位线),100-4,'●卖'),COLORGREEN;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);STICKLINE(VAR9Q>-120,0,VAR9Q,6.1,0),COLOR0000AA;STICKLINE(VAR9Q>-120,0,VAR9Q,4.9,0),COLOR0000BB;STICKLINE(VAR9Q>-120,0,VAR9Q,3.8,0),COLOR0000CC;STICKLINE(VAR9Q>-120,0,VAR9Q,2.7,0),COLOR0000DD;STICKLINE(VAR9Q>-120,0,VAR9Q,1.6,0),COLOR0000EE;STICKLINE(VAR9Q>-120,0,VAR9Q,0.4,0),COLOR4444FF;STICKLINE(趋势,(REF(趋势,1)),趋势,3.2,0) ,COLOR0044FF;STICKLINE(趋势,(REF(趋势,1)),趋势,2.7,0) ,COLOR0066FF;STICKLINE(趋势,(REF(趋势,1)),趋势,2.1,0) ,COLOR0088FF;STICKLINE(趋势,(REF(趋势,1)),趋势,1.5,0) ,COLOR00AAFF;STICKLINE(趋势,(REF(趋势,1)),趋势,0.9,0) ,COLOR00CCFF;STICKLINE(趋势,(REF(趋势,1)),趋势,0.2,0) ,COLOR00FFFF;粉红持有:=REF(趋势>REF(趋势,1),1);STICKLINE(粉红持有,(REF(趋势,1)),趋势,3.2,0),COLOR770077; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.7,0),COLOR990099; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.1,0),COLORBB00BB; STICKLINE(粉红持有,(REF(趋势,1)),趋势,1.5,0),COLORDD00DD; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.9,0),COLORFF00FF; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.2,0),COLORFF66FF;绿色减仓:=趋势<REF(趋势,1);STICKLINE(绿色减仓,(REF(趋势,1)),趋势,3.2,0 ),COLOR003300; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.7,0 ),COLOR006600; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.1,0 ),COLOR009900; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,1.5,0 ),COLOR00CC00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.9,0 ),COLOR00FF00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.2,0 ),COLORCCFF66;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLOR0000FF,LINETHICK2; N:=21;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE( E,E,55,2.7,0),COLORFF6600;STICKLINE( E,E,55,2.1,0),COLORFF8800;STICKLINE( E,E,55,1.5,0),COLORFFAA00;STICKLINE( E,E,55,0.9,0),COLORFFCC00;STICKLINE( E,E,55,0.2,0),COLORFFFF00;DRAWTEXT(E,50,' 逃顶'),COLORFF9966;TYP:=(HIGH+LOW+CLOSE)/3;VAR11:=3;VAR21:=(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));股价准备启动:IF(CROSS(VAR21,VAR11),100,0),COLORRED,LINETHICK2;主力线:=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),LINETHIC K1,POINTDOT;超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK0,COLORLIRED;轴:0,COLORFFFFFF;。
通达信测股价公式
{预测股价公式}{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;预测低一:O-B2,linethick0;最低价:low,coloryellow,linethick0;预测高一:=O+B2;{预测当天股价公式}开盘价1:=open;开盘价2:=REF(open,1);最高价1:=high;最高价2:=REF(high,1);最低价1:=low;最低价2:=REF(low,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:=最高价2;BB:=最低价2;CC:=开盘价2;DD:=收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;下跌支撑价:=CCC;下跌反转价:=DDD;EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5; 心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:GGG,colorffffff,LINETHICK0;最高价:high,colorred,linethick0;{预测今日最高价公式}预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1);开盘价:open,colorffffff,linethick0;收盘价:close,coloryellow,linethick0;差额一:预测低一-low,colorffffff,LINETHICK0;差额二:预测低二-low,colorffffff,LINETHICK0;差比一:(差额一/low)*100,colorffffff,LINETHICK0;差比二:(差额二/low)*100,colorffffff,LINETHICK0;DRAWTEXTREL(10,60,' ★今日最低价:'+NUMTOSTRN(low,2)+'元'),coloryello w,linethick1;DRAWTEXTREL(10,200,' 预测预测低一: '+NUMTOSTRN(ref(预测低一,0),2)+'元' +' 预测低二: '+NUMTOSTRN(ref(ggg,0),2)+'元'),colorffffff,linethick1; DRAWTEXTREL(10,350,'目前差价 '+NUMTOSTRN(ref(差额一,0),2)+'元 '+ NUMTOSTRN(ref(差额二,0),2)+'元'),coloryellow,linethick1; DRAWTEXTREL(10,470,'目前差比 '+NUMTOSTRN(ref(差比一,0),2)+'% '+ NUMTOSTRN(ref(差比二,0),2)+'%'),coloryellow,linethick1;DRAWTEXTREL(320,150,' ● 今日最高价:'+NUMTOSTRN(high,2)+'元'),coloryello w,linethick1;DRAWTEXTREL(350,350,' 预测高一: '+NUMTOSTRN(ref(预测高一,0),2)+'元'),colo rffffff,linethick1;DRAWTEXTREL(350,470,' 预测高二: '+NUMTOSTRN(ref(预测高二,0),2)+'元'),colo rffffff,linethick1;{T + 0 操作数据}pp:=0.0115;{可调整}成本价:=预测低二*1.006;{也是买回价}卖出价:=成本价*(1+pp);高低差一:=预测高一-预测低二;高低差二:=预测高二-预测低二;差价比一:=卖出价/预测高一*100;差价比二:=卖出价/预测高二*100;昨日高低比:=(最高价2-最低价2)/最高价2*100;目前高低比:=(最高价1-最低价1)/最高价1*100;ssu1:=卖出价<预测高一and 卖出价<预测高二;ssu2:=卖出价>预测高一or 卖出价>预测高二or 差价比一>98% or 差价比二>98%;DRAWTEXTREL(500,60,' ★T + 0 操作数据目前纯利设定为:'+NUMTOSTR N(ref(pp*100,0),2)+'%'),coloryellow,linethick1;DRAWTEXTREL(530,200,' 成本价: '+NUMTOSTRN(ref(成本价,0),2)+'元'+' 卖出价: '+NUMTOSTRN(ref(卖出价,0),2)+'元'),colorffffff,linethick1;DRAWTEXTREL(530,350,' 高低差一: '+NUMTOSTRN(ref(高低差一,0),2)+'元'+ ' 差价比一: '+NUMTOSTRN(ref(差价比一,0),2)+'%'),coloryellow,linethick1; DRAWTEXTREL(530,470,' 高低差二: '+NUMTOSTRN(ref(高低差二,0),2)+'元'+ ' 差价比二: '+NUMTOSTRN(ref(差价比二,0),2)+'%'),coloryellow,linethick1; DRAWTEXTREL(750,200,' 买回价: '+NUMTOSTRN(ref(ggg,0),2)+'元'),colorfffff f,linethick1;DRAWTEXTREL(750,470,' 昨日高低比: '+NUMTOSTRN(ref(昨日高低比,0),2)+'% '),colorffffff,linethick1;DRAWTEXTREL(750,350,' 目前高低比: '+NUMTOSTRN(ref(目前高低比,0),2)+'% '),colorffffff,linethick1;IF BARSTATUS=2 AND ssu1 THEN BEGINDRAWTEXTREL(530,610,' ★设定成功'),COLORRED,linethick1;ENDELSEIF BARSTATUS=2 AND ssu2 THEN BEGINDRAWTEXTREL(530,610,' ● 设定失败'),COLORgreen,linethick1;ENDsu1:=预测低二>low and 卖出价<high;su2:=预测低二<low or 卖出价>high;IF BARSTATUS=2 AND su1 THEN BEGINDRAWTEXTREL(650,610,'★操作成功'),COLORRED,linethick1;ENDELSEIF BARSTATUS=2 AND su2 THEN BEGINDRAWTEXTREL(650,610,'● 操作失败'),COLORgreen,linethick1;END顶线:=80;顶线:=80;{黄金点:=-20;}预测一:=-35;预测二:=-50;失败:=-65;底线:=-75;DRAWTEXT(DISPSTATUS=2,顶线,' 80'),COLORred,ALIGN0;{DRAWTEXT(DISPSTATUS=2,黄金点,' 黄金买点'),COLORffffff,ALIGN0;} DRAWTEXT(DISPSTATUS=2,预测一,' 预测一'),COLORred,ALIGN0; DRAWTEXT(DISPSTATUS=2,预测二,' 预测二'),COLORyellow,ALIGN0; DRAWTEXT(DISPSTATUS=2,失败,' 未到位'),COLORgreen,ALIGN0; DRAWTEXT(DISPSTATUS=2,底线,' -75'),COLORgreen,ALIGN0;{DRAWTEXT(low<hjmd,-20,'☆'),COLORffffff,ALIGN1;}{DRAWTEXT(low>hjmd,-20,'●'),COLORgreen,ALIGN1;}DRAWTEXT(low<预测低一,-35,'☆'),COLORred,ALIGN1;DRAWTEXT(low<预测低二,-50,'☆'),COLORyellow,ALIGN1;DRAWTEXT(low>预测低二,-65,'●'),COLORgreen,ALIGN1;{说明:红树林园这一段源码做出来的效果是买点到位闪烁交替显示[风险]和[注意]} Amod:=MOD(CURRENTTIME,2);DRAWTEXT(DISPSTATUS=2 and Amod=0,50,'预测警示'),colorffffff;DRAWTEXT(DISPSTATUS=2 and low<预测低一and Amod=0,30,'预测一☆'),colorr ed;DRAWTEXT(DISPSTATUS=2 and low<预测低一and Amod=1,30,'预测一☆'),color yellow;DRAWTEXT(DISPSTATUS=2 and low<预测低二and Amod=0,10,'预测二☆'),colorr ed;DRAWTEXT(DISPSTATUS=2 and low<预测低二and Amod=1,10,'预测二☆'),color yellow;{DRAWTEXT(DISPSTATUS=2 and low<hjmd and Amod=0,20,'黄金买点☆'),color red;}{DRAWTEXT(DISPSTATUS=2 and low<hjmd and Amod=1,20,'黄金买点☆'),color yellow;}DRAWTEXT(DISPSTATUS=2 and low>预测低一and Amod=0,30,'预测一●'),colorg reen;DRAWTEXT(DISPSTATUS=2 and low>预测低一and Amod=1,30,'预测一●'),colorff ffff;DRAWTEXT(DISPSTATUS=2 and low>预测低二and Amod=0,10,'预测二●'),colorg reen;DRAWTEXT(DISPSTATUS=2 and low>预测低二and Amod=1,10,'预测二●'),colorff ffff;{DRAWTEXT(DISPSTATUS=2 and low>hjmd and Amod=0,20,'黄金买点●'),colorg reen;}{DRAWTEXT(DISPSTATUS=2 and low>hjmd and Amod=1,20,'黄金买点●'),colorff ffff;};在成交量温和变化时,不妨根据CDP设计阻力价和支撑位,通过高抛低吸来降低成本。
起涨起跌点通达信指标公式源码
起涨起跌点通达信指标公式源码【公式解析】起涨起跌点(Upturn-Downturn Point,UDP)是通达信中的一个指标,用来标识股价的起涨和起跌点。
该指标通过计算一定周期内最高点和最低点之间的差值,并与一定比例的移动平均线进行对比,从而判断股价的上涨和下跌力度。
【公式代码】//起涨起跌点(Upturn-Downturn Point)//输入参数:N-计算周期//输出:GD-起涨起跌点UPDOWNP(N):=M:=CLOSE;S:=STD(M,N);GD:=IFF(REF(C,M)>MA(REF(C,M),5),M+N*S,M-N*S);【代码解析】1.首先声明起涨起跌点指标的函数UPDOWNP,函数的输入参数为计算周期N,没有输出参数。
2.内部变量M表示收盘价序列,将其赋值为CLOSE。
3.内部变量S表示收盘价序列的标准差,计算公式为STD(M,N),其中N为计算周期,表示最近N个收盘价的标准差。
4.内部变量GD表示起涨起跌点序列,赋初值为M+N*S,表示最近N个收盘价的平均值加上N倍的标准差。
5.判断条件REF(C,M)>MA(REF(C,M),5)表示收盘价M相对于其5个周期前的移动平均线MA(REF(C,M),5)是否上涨。
6.如果条件成立,即收盘价上涨,则GD赋值为M+N*S,表示起涨点;如果条件不成立,即收盘价下跌,则GD赋值为M-N*S,表示起跌点。
7.返回GD作为起涨起跌点指标的输出。
【注意事项】1.起涨起跌点指标是通过计算收盘价的标准差来判断上涨和下跌力度的,因此在使用时应对计算周期和标准差的倍数加以合理设定。
2.UPDOWNP函数返回的是起涨起跌点序列,可以作为其他指标的输入,进行综合分析和判断。
【总结】以上是起涨起跌点指标的通达信源码和解析。
该指标通过计算一定周期内的收盘价标准差,并与移动平均线进行对比,来判断股价的上涨和下跌力度。
在实际应用中,可以结合其他指标和技术分析方法,进行股价的预测和交易决策。
通达信最全指标公式源码,给大家分享实用的技术指标
通达信最全指标公式源码,给⼤家分享实⽤的技术指标源码: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,COLORRED;IF(主⼒>=REF(主⼒,1),主⼒,DRAWNULL),COLORRED,LINETHICK2;拉升提⽰主图+⼀⼿遮天副图+主⼒追踪副图。
超⽜龙头主图主图源码:展开全⽂TY:=C;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06;TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;参考重点关注主⼒追踪副图股票实盘分析和技术分享,,坚持每⼀天给⼤家分享实盘经验,教⼤家如何在个股起爆前把握主升浪个股,让所有粉丝朋友逐步建⽴出属于⾃⼰的⼀套交易系统。
通达信指标-预测上涨-副选指标源码
通达信指标-预测上涨-副选指标源码副图指标源码A:=1;X00:=O;MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );明日重心涨跌幅:=(MX000-X00)/X00*100;资金动力:=明日重心涨跌幅*100;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;{涨停}最低成本:=COST(5);最高成本:=COST(95);平均成本:=COST(50);成本重心:=(平均成本-最低成本)/(最高成本-最低成本)*100;成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上AND MA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);XG15:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG10:=BARSLASTCOUNT(XG15);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 资金动力<=400 AND 涨多 AND XG9=1;霸气2:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;VAR34 := ZJL.折价率#WEEK;VAR35 := MA(VAR34,PERIOD) + (2 * STD(VAR34,PERIOD));VAR36 := (MA(VAR34,3 * PERIOD)) + (2 * (STD(VAR34,3 * PERIOD)));VAR37 := (MA(VAR34,5 * PERIOD)) + (2 * (STD(VAR34,5 * PERIOD)));VAR38 := (MA(VAR34,6 * PERIOD)) + (2 * (STD(VAR34,6 * PERIOD)));VAR39 := (MA(VAR34,7 * PERIOD)) + (2 * (STD(VAR34,7 * PERIOD)));VAR40 := (MA(VAR35 - (REF(VAR35,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR35 - (REF(VAR35,3 * PERIOD)),PERIOD)));VAR41 := (MA(VAR36 - (REF(VAR36,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR36 - (REF(VAR36,3 * PERIOD)),PERIOD)));VAR42 := (MA(VAR37 - (REF(VAR37,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR37 - (REF(VAR37,3 * PERIOD)),PERIOD)));VAR43 := (MA(VAR38 - (REF(VAR38,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR38 - (REF(VAR38,3 * PERIOD)),PERIOD)));VAR44 := (MA(VAR39 - (REF(VAR39,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR39 - (REF(VAR39,3 * PERIOD)),PERIOD)));VAR45 := REF(HHV(VAR37,5),1);VAR46 := REF(HHV(VAR37,5),6);VAR47 := REF(HHV(VAR37,5),11);VAR48 := REF(HHV(VAR37,5),16);VAR49 := REF(HHV(VAR37,5),21);VAR50 := REF(HHV(VAR37,5),26);VAR51 := IF(VAR45 < REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MAX(VAR46, VAR47)))),REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MA X(VAR46,VAR47)))),VAR45);气:=((((VAR37 > VAR51)) AND (VAR38 > VAR51)) AND (VAR39 > VAR51)),COLORRED;必涨:XXX AND XG5 AND 霸气AND ST1 AND ST{ AND 气}*A,COLORFF00FF;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨 2 AND REF(C,1)<REF(MA34,1) { AND 底部<=0.13}){ OR (必涨AND MACD.DIF<0.2)}{AND XG10=1},COLORRED,NODRAW;STICKLINE(确定涨,0,0.5,4,0 )*A,COLOR000099;STICKLINE(确定涨,0,0.5,3,0 )*A,COLOR0000BB;STICKLINE(确定涨,0,0.5,1.5,0 )*A,COLOR0000DD;STICKLINE(确定涨,0,0.5,0.3,0 )*A,COLOR0000FF;选股指标源码A:=1;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;最低成本:=COST(5);最高成本:=COST(95);成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上ANDMA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上 AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气2:=O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨2 AND REF(C,1)<REF(MA34,1) );{提示大家:在复制通达信指标源码时注意复制完整,复制不完整在测试时指标会提示错误。
通达信指标公式源码 主力轨迹公式
VAR1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*50;短线1:=VAR2*(1+VAR1),COLOR0099FF;短线2:=MA(短线1,5),COLOR336633;LC := REF(CLOSE,1);VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2))*100))/100;RC := (CLOSE-LC)*VID;LONG := SUM(RC,0);DIFF := SMA(LONG,10,1);DEA := SMA(LONG,20,1);长线1:=DIFF-DEA,COLOR9900FF;长线2:=MA(长线1,10),COLORCC3300;DRAWBAND(短线1,RGB(99,50,0),短线2,RGB(0,70,60));DRAWBAND(长线1,RGB(115,0,37),长线2,RGB(0,51,102));STICKLINE(长线1>0,0,长线1/2,1,0),COLOR000098;STICKLINE(长线1<0,0,长线1/2,1,0),COLOR007100;主力短线1: VAR2*(1+VAR1),COLOR004F98;主力短线2:MA(主力短线1,5),COLOR4D7500;主力长线1: DIFF-DEA,COLOR9900FF;主力长线2: MA(主力长线1,10),COLORCC3300;主力长线强度:主力长线1/2,NODRAW,COLOR3300FF;{钱龙短线}L2:=5; L3:=10;Var1:=MA((VOL-REF(VOL,1))/REF(VOL,1),L2);Var2:=(CLOSE-MA(CLOSE,L3))/MA(CLOSE,L3)*100;MY: Var2*(1+Var1);钱龙短线: MY, COLORSTICK;MA(钱龙短线,5);V0:0,COLORFFA2AF;{钱龙短线指标当指标曲线向上交叉其平均线时,视为短线买进信号。
通达信指标计算公式源码大全
通达信指标计算公式源码大全1. 指标计算公式的概述本文档提供了通达信指标计算公式的源码大全。
在通达信软件中,指标计算公式是用于生成各种技术指标的数学计算公式。
这些指标可以帮助投资者分析市场趋势,预测股票价格的走势,以及制定投资策略。
2. 常用指标计算公式2.1 移动平均线移动平均线是最常用的技术指标之一,可以平滑价格曲线,过滤噪音,显示价格的趋势。
以下是常见的移动平均线计算公式:- 简单移动平均线(SMA)- 加权移动平均线(WMA)- 指数移动平均线(EMA)2.2 相对强弱指标(RSI)相对强弱指标是一种衡量股票价格变动强度的指标。
以下是相对强弱指标的计算公式:\[RSI = 100 - \frac{100}{1 + RS}\]\[RS = \frac{\text{N日内收盘涨幅之和}}{\text{N日内收盘跌幅之和}}\]2.3 布林带指标(BOLL)布林带指标是一种测量股票价格波动性的指标。
以下是布林带指标的计算公式:\[MB = \frac{\text{N日收盘价之和}}{N}\]\[UP = MB + k \times \text{标准差}\]\[DN = MB - k \times \text{标准差}\]\[k\] 为参数,一般取值为2。
3. 自定义指标计算公式除了常见的指标计算公式之外,通达信软件还支持自定义指标计算公式。
用户可以根据自己的需求编写和修改指标计算公式。
4. 重要提示本文档提供的指标计算公式源码仅供参考和研究使用,请在投资交易中谨慎使用,切勿盲目依赖指标计算结果。
以上是《通达信指标计算公式源码大全》的内容概述,希望对您的投资分析和技术指标计算有所帮助。
通达信20个高准确率选股公式源码
通达信20个高准确率选股公式源码是不是每次看收盘的涨停股望而兴叹,明明自己看过这个股票,当时为什么没买!都是对自己没有信心的表现。
我也分享20个高准确率的选股公式,有的含未来,仅供参考,结合指标分析。
推荐20个高成功率选股公式之一Var00:=LWINNER(1,CLOSE);Var1:=FORCAST(Var00,10);Var2:=MA(Var1,3);Var3:=MA(Var2,12);Var4:=MA(Var3,16);Var5:=MA(Var4,31);Var6:=MA(Var5,55);Var7:=Var5; Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;Var9:=Var2>Var1*0.95;Var1h:=INDEXC;Var2h:=MA(Var1h,6);Var3h:=MA(Var1h,24);Var4h:=MA(Var1h,32);Var5h:=MA(Var1h,62);Var6h:=MA(Var1h,105);Var7h:=Var5h; Var8h:=Var4h>Var2h*1.11 AND Var3h>Var2h*1.095;Var9h:=Var2h>Var1h*0.95;pt:=(if(h=l and c=o and l=c and c>0 and ref(h,1)=ref(l,1) and ref(c,1)=ref(o,1)and ref(h,1)=ref(c,1) and ref(c,1)>0,0,1))>0;(Var7h AND Var8h AND Var9h AND CLOSE/COST(8)<=0.7985 and (count(c=l,4)<3 or c>ref(c,1)))and pt orVar7 and Var8 and Var9 and CLOSE/COST(5)<=0.8 AND((Var1>OPEN OR Var1>REF(OPEN,1) ORREF(Var1,1)))====================================== ========================================= =====推荐20个高成功率选股公式之二条件选股公式:BFBZ (20天10%利润,成功率98.52%信号量2209) 缺省周期:日线Var1:=INDEXC;Var2:=MA(Var1,6);Var3:=MA(Var1,24);Var4:=MA(Var1,32);Var5:=MA(Var1,62);Var6:=MA(Var1,105);Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98;Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;Var9:=Var2>Var1*0.95;Var7 AND Var8 AND Var9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));====================================== ====================================== 推荐20个高成功率选股公式之三条件选股公式:魔鬼组合 (99.65% 缺省周期:日线Var2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);Var3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;Var4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;Var5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;Var6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;Var7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;Var8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;Var9:=(Var3+Var4+Var5+Var6+Var7+Var8)/6;VarA:=EMA(Var9,3);VarB:=ABS(Var6-Var8);VarC:=(Var9+VarB)/2;VarD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;VarE:=VarD+VarC;VarF:=IF(Var2>0 AND VarE<0,200,0);Var10:=IF(VarC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);Var11:=IF(VarE<0 AND Var10=-50,100,0);Var12:=MA(CLOSE,3);Var13:=REF(CLOSE,2)*0.865;Var14:=REF(CLOSE,13)*0.772;Var15:=MIN(Var13,Var14);Var16:=100*VOL/CAPITAL;Var17:=MA(CLOSE,13);Var18:=IF((CLOSE-Var15)/CLOSE<0.03 AND SUM(Var16,5)/5<1.8,1,0);Var19:=IF(Var18>0 AND (Var10<0 OR Var2>0),100,0);Var1A:=Var19;Var1B:=IF(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0) AND Var19<10,50,0);Var1C:=(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0);Var1D:=VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;Var1E:=Var1C OR Var1D;g:=MA(CLOSE,80)-MA(CLOSE,10)/3;aaa:=Var1A and CLOSE<g;Var2a:=1;Var3a:=Var2a*(CLOSE-MA(CLOSE,33))/MA(CLOSE,33)*100;bbb:=HHV(CLOSE,13)/CLOSE>1.15 AND HIGH/LOW>1.08 AND CROSS(-30,Var3);Var1bb:=INDEXC;Var2b:=MA(Var1bb,6);Var3b:=MA(Var1bb,24);Var4b:=MA(Var1bb,32);Var5b:=MA(Var1bb,62);Var6b:=MA(Var1bb,105);Var7b:=Var5b<REF(Var5b,1) AND Var6b<REF(Var6b,1) AND Var5b<Var6b*0.98;Var8b:=Var4b>Var2b*1.11 AND Var3b>Var2b*1.095;Var9b:=Var2b>Var1bb*0.95;ccc:=Var7b AND Var8b AND Var9b AND CLOSE/COST(8)<=0.8 AND(CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) ORREF(CLOSE,1)<REF(OPEN,1));Var1cc:=DMA(CLOSE,VOL/MA(VOL,4)/4);Var2c:=DMA(CLOSE,VOL/MA(VOL,33)/33);Var3c:=(CLOSE-Var1cc)/Var1cc*100<-11;Var4c:=(Var1cc-Var2c)/Var2c*100<-22.3;Var5c:=Var3c AND Var4c;ddd:=Var5c AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND(REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND(REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND(REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND(REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND(REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7)) ;A1:=INDEXC;A2:=MA(A1,5);A3:=MA(A1,20);A4:=MA(A1,30);B1:=A4>A2*1.08 AND A3>A2*1.055;B2:=A2>A1*1.03;B3:=B1 AND B2;M1:=MA(C,5);M2:=MA(C,10);M3:=M1<M2;N1:=(M1-C)/C>(9/100);N2:=(M2-M1)/M1>0.05;N3:=(H>L*1.07) AND COUNT(H>L*1.04,5)>2;N4:=COUNT(M3,7)>=7;N5:=N1 AND N2 AND N3 AND N4;eee:=B3 AND N5;ff:=(ref(c,32)-close)/ref(c,32)>=0.385;fff:=ccc and ff;Xar1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);Xar2:=(CLOSE-xar1)/xar1*100+30-(REF(HIGH,13)/CLOSE-1.35)*100;Xar3:=(CLOSE-ref(CLOSE,5))/CLOSE*100<-9;当前获利:=WINNER(CLOSE);大盘涨跌:=ema((INDEXC-ma(INDEXC,10))/INDEXC*100,14)<-4.9;换手率:=(ma(v,5)-VOL)/CAPITAL*100<0.8;量能变化:=(vol-MA(vol,21))/vol*100;买入信号:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND换手率 AND 量能变化>18;{飞雪迎春:(Xar2<-8.1 AND 买入信号=1);}{DRAWTEXT(飞雪迎春=1,0.8,'飞雪迎春' );}gg1:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND换手率 AND 量能变化>18;ggg:=aaa and gg1;(aaa and bbb) or (aaa and ccc) or (aaa and ddd) or (aaa and eee)or fff or ggg============================================================================ 推荐20个高成功率选股公式之四条件选股公式:飞鹰优化 (90.87%缺省周期:日线Var1:=CLOSE/MA(CLOSE,40)*100<78;Var2:=CLOSE/MA(CLOSE,60)*100<74;Var3:=HIGH>LOW*1.051;Var4:=Var3 AND COUNT(Var3,5)>1;Var4 AND (Var1 OR Var2) andma(c,27)/close>1.169 and ma(c,17)/close>1.158 andclose<ma(c,120) and ma(c,60)<ma(c,120) and ma(c,60)>ma(c,30) and "cci">-210============================================================================ 推荐20个高成功率选股公式之五条件选股公式:BIMOWANG (成功率93.12 信号3736 缺省周期:日线Var1:=EMA(WINNER(CLOSE)*70,3);Var2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);Var3:=CLOSE/MA(CLOSE,40)*100<76;Var4:=CLOSE/MA(CLOSE,60)*100<74;Var5:=HIGH>LOW*1.051;Var6:=Var5 AND COUNT(Var5,5)>1;Var6 AND (Var3 OR Var4) AND Var2<20 AND Var1<20AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5;============================================================================ 推荐20个高成功率选股公式之六条件选股公式:股神选股(20天10利润成功率92.88% 信号量4310 缺省周期:日线参数描述: N(1,30,22)N2(1,10,5)N3(1,5,3)N4(-50,0,-30)Var1:=IF(DATE>=1031231, 0, 1);Var2:=CLOSE<0.980*REF(CLOSE, 1);Var3:=OPEN<REF(CLOSE, 1);Var4:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100*Var1;Var5:=(CLOSE-REF(OPEN, 29))/REF(OPEN, 29)*100*Var1;Var6:=MA(COST(N)/LOW, N3);Var7:=Var6>1.5 AND Var4>N2 AND Var5<N4;Q:Var7 OR (COUNT(Var7, 10) AND Var2 OR COUNT(Var7, 20) AND Var3)*Var1;====================================== ====================================== 推荐20个高成功率选股公式之七原公式加密,以下源码是从网上找的,不知是否与原公式一样,还请高手特别版。
通达信经典指标及选股公式(源码)
通达信经典指标及选股公式(源码)H1:=EMA(C,8);H2:=EMA(H1,20);VR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;VR2:=SMA(VR1,5,1);VR3:=SMA(VR2,8,1);VAR4:=CROSS(VR2,VR3) AND VR3< 20;VAR5:=C>LLV(C,60)*1.13 AND VAR4;VAR6:=IF(C>200,VAR4,VAR5);HH2:=XMA(CLOSE,14);HH3:=MEMA(CLOSE,4);AA2:=MA(CLOSE,8);BB2:=(CLOSE-AA2)/AA2*10,COLORYELLOW;FF1:=MA(BB2,3),COLORGREEN;DRAWTEXT(CROSS(BB2,FF1) AND REF(HH2>HH3,1) AND REF(HH2>HH3,2) AND REF(HH2<HH3,3) AND HH2>HH3,4,'庄现'),COLORWHITE;T:=DMA((MA(L,4)+MA(L,6)+MA(L,12)+MA(L,24))/4,0.966);U:=T+2*STD(L,20);LO:=T-2*STD(L,20);S:=((U+T)/2-L)/L>0.3 AND ABS(L-LO)/L<0.3 AND L<T;CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;YJD:=(EMA(CS,3)-50)*2,COLORRED;AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;HHH:=BBB-LLV(BBB,10);SS:=(MA(HHH,2)*3+HHH*13)/16;短线买点:=IF(SS>13,MA(SS,2),SS);短J5:="KDJ.J"(5,3,3),COLORGRAY;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR4A:=(HHV(HIGH,4)-VAR1A)/(HHV(HIGH,4)-LLV(LOW,4))*100-72;VAR5A:=(VAR1A-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;VAR6A:=SMA(VAR5A,2,1);RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;KK:=SMA(RSV1,3,1);DD:=SMA(KK,3,1);JJ:=3*KK-2*DD;WWQQ:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));加分:=WWQQ,COLORWHITE,LINETHICK1;加分反弹:=CROSS(99,加分);短线买点反弹:=CROSS(短线买点,21),COLORYELLOW;短J5反弹:=CROSS(短J5,0),COLORBLUE;YJD反弹:=CROSS(YJD,-80),COLORGREEN;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORYELLOW;买入:=FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5);任意反弹:=(短线买点反弹 OR 短J5反弹 OR YJD反弹 OR 加分反弹) AND 买入 AND C>O;STICKLINE(任意反弹,0,3,3,0),COLORRED;选股公式:H1:=EMA(C,8);H2:=EMA(H1,20);VR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;VR2:=SMA(VR1,5,1);VAR4:=CROSS(VR2,VR3) AND VR3< 20;VAR5:=C>LLV(C,60)*1.13 AND VAR4;VAR6:=IF(C>200,VAR4,VAR5);HH2:=XMA(CLOSE,14);HH3:=MEMA(CLOSE,4);AA2:=MA(CLOSE,8);BB2:=(CLOSE-AA2)/AA2*10,COLORYELLOW;FF1:=MA(BB2,3),COLORGREEN;T:=DMA((MA(L,4)+MA(L,6)+MA(L,12)+MA(L,24))/4,0.966);U:=T+2*STD(L,20);LO:=T-2*STD(L,20);S:=((U+T)/2-L)/L>0.3 AND ABS(L-LO)/L<0.3 AND L<T;CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;YJD:=(EMA(CS,3)-50)*2,COLORRED;AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;HHH:=BBB-LLV(BBB,10);SS:=(MA(HHH,2)*3+HHH*13)/16;短线买点:=IF(SS>13,MA(SS,2),SS);短J5:="KDJ.J"(5,3,3),COLORGRAY;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR4A:=(HHV(HIGH,4)-VAR1A)/(HHV(HIGH,4)-LLV(LOW,4))*100-72;VAR5A:=(VAR1A-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;VAR6A:=SMA(VAR5A,2,1);RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;KK:=SMA(RSV1,3,1);JJ:=3*KK-2*DD;WWQQ:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));加分:=WWQQ,COLORWHITE,LINETHICK1;加分反弹:=CROSS(99,加分);短线买点反弹:=CROSS(短线买点,21),COLORYELLOW;短J5反弹:=CROSS(短J5,0),COLORBLUE;YJD反弹:=CROSS(YJD,-80),COLORGREEN;XG1:=CROSS(BB2,FF1) AND REF(HH2>HH3,1) AND REF(HH2>HH3,2) AND REF(HH2<HH3,3) AND HH2>HH3;XG2:=(短线买点反弹 OR 短J5反弹 OR YJD反弹 OR 加分反弹);VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORYELLOW;买入:=FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5);XG1 AND XG2 AND 买入 AND C>O;。
大盘研判通达信指标公式源码
大盘研判通达信指标公式源码一、Moving Average(简称MA):MA是最常用的一种技术指标,用于计算一段时间内的平均价格。
MA 的计算公式如下:MA(C,N)=SUM(C,N)/N其中,C代表收盘价,N代表时间周期。
二、Bollinger Bands(简称BOLL):BOLL是一个涨跌幅极限的指标,它由上轨、中轨和下轨组成。
BOLL 的计算公式如下:MA(C,N)=SUM(C,N)/NMD=SUM((C-MA(C,N))^2,N)/NUP=MA(C,N)+K*MDDN=MA(C,N)-K*MD其中,C代表收盘价,N代表时间周期,K代表标准差倍数。
三、Relative Strength Index(简称RSI):RSI是一种相对强弱指标,用于衡量价格变动的速度和幅度。
RSI的计算公式如下:RSI=N1/(N1+N2)*100其中,N1代表一段时间内上涨的幅度之和,N2代表一段时间内下跌的幅度之和。
四、Moving Average Convergence Divergence(简称MACD):MACD是一种用于判断趋势的指标,它由两个不同周期的移动平均线的差分组成。
MACD的计算公式如下:DIF=EMA(C,SHORT)-EMA(C,LONG)DEA=EMA(DIF,MID)MACD=2*(DIF-DEA)其中,C代表收盘价,EMA代表指数平滑移动平均线,SHORT、LONG和MID分别代表不同的时间周期。
五、Volume-weighted Average Price(简称VWAP):VWAP是一种以成交量加权的平均价格指标,用于衡量价格的有效性。
VWAP的计算公式如下:VWAP=SUM(P*V,N)/SUM(V,N)其中,P代表价格,V代表成交量,N代表时间周期。
通达信指标公式源码最牛的抄底追涨公式无未来
通达信指标公式源码最牛的抄底追涨公式无未来抄底追涨实战公式DEFDRAWICON(T1,T2,SHORT):REF(L,T1)>REF(LLV(L,T2),T1)ANDREF(L,T1)<REF(HHV(H,T2),T1)ANDC<REF(O,T1)ANDC>REF(C,T1)ANDC=HHV(H,T1)ANDC<REF(HHV(H,T2),T1)ANDSHORT>REF(MA(C,SHORT),T1)?1:01,DEFDRAWICON(T1,T2,SHORT)定义函数使用3个参数,T1,T2,SHORT。
2,REF(L,T1),取最近T1日内的最低价;3,REF(LLV(L,T2),T1),取最近T1日内,T2日内的最低价的最低价;4,REF(L,T1)>REF(LLV(L,T2),T1),判断最近T1日内的最低价是否大于最近T1日内,T2日内的最低价的最低价;5,REF(L,T1)<REF(HHV(H,T2),T1),判断最近T1日内的最低价是否小于最近T1日内,T2日内的最高价的最高价;6,C<REF(O,T1),判断当日收盘价是否小于最近T1日开盘价;7,C>REF(C,T1),判断当日收盘价是否大于最近T1日收盘价;8,C=HHV(H,T1),判断当日收盘价是否等于最近T1日内的最高价;9,C<REF(HHV(H,T2),T1),判断当日收盘价是否小于最近T1日内,T2日内的最高价的最高价;10,SHORT>REF(MA(C,SHORT),T1),判断当日SHORT均线是否大于最近T1日内当日SHORT均线;11,?1:0,符合上述条件就返回1,否则返回0。
通达信量价趋势副图源码指标公式
本副图为图形指标,根据量价关系编程,经多时验证直观且准确,图中有趋势提示,可配合K线主图判断操作A:=EMA(EMA(AMOUNT/10000000,5),10);N1:=A;最高:N1,LINETHICK1;最低:N1,LINETHICK1;收盘:N1,LINETHICK1;开盘:REF(收盘,1),LINETHICK1;均量10:=MA(A,10);B:=收盘>开盘;D:=收盘<开盘;F:=EMA(EMA(C,5),10);N2:=F;收盘1:=N2;开盘1:=REF(收盘1,1);G:=收盘1>开盘1;I:=收盘1<开盘1;DRAWTEXT_FIX(1,0.9,0.42,0,'【量价趋势】'),COLORYELLOW;DRAWTEXT_FIX(收盘1>开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价涨'),COLORRED; DRAWTEXT_FIX(收盘1<开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价跌'),COLORGREEN; DRAWTEXT_FIX(收盘>开盘AND ISLASTBAR,0.91,0.58,0 ,'量增'),COLORMAGENTA; DRAWTEXT_FIX(收盘<开盘AND ISLASTBAR,0.91,0.58,0 ,'量缩'),COLORLIRED;K:=B AND G;{}P:=D AND G;高:=REF(HHV(N1,130),3);上部:REFDATE(高,DATE),COLORWHITE,LINETHICK1;STICKLINE(K,上部,上部*1.05,4,0),COLOR3333FF;STICKLINE(P,上部,上部*1.05,4,0),COLOR3CFFFF;DRAWBAND(开盘,RGB(0,255,100),最高,RGB(255,00,100));DRAWTEXT_FIX(1,0.29,0.1,0,'上部红色为价涨量升,上升趋势;'),COLOR3333FF; DRAWTEXT_FIX(1,0.485,0.1,0,'黄色为价跌量减,量价背离,注意顶部!'),COLOR3CFFFF; DRAWTEXT_FIX(1,0.35,0.25,0,'没有标记的区域包括放量下跌和无量阴跌,都不参与'),COLOR66FF33。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
精准预测股价变化,当天的买卖出神入化!
精准预测股价变化(有未来函数)智者慎用,效果不错!当天的买卖出神入化!个人常用!
N:=27;PP:=0.03;
AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);
AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);
AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);
BB1:=0;
B1万元:=DVOL*DCLOSE/100;
B1差:=B1万元-REF(B1万元,1);
B2万元:=DVOL*DCLOSE/100;
B2比:=B2万元/REF(B2万元,1);
净流入万元:=(AAA2-AAA3-0.5*AAA4);
PM:=MA(净流入万元,1);
PMA:=PM/REF(PM,1)>1;
PMB:=REF(PMA,1)<1 AND PMA;
数字:(EMA(MA(B1万元,2),2))/100000,COLORYELLOW,NODRAW;
二日比:=数字/REF(数字,1);
选股:PMB AND 数字>REF(数字,1) AND 二日比>1,COLORRED,NODRAW;
MA5:MA(C,5);MA10:MA(C,10);MA30:MA(C,30);
DRAWNUMBER(选股=1 ,L,数字),COLORYELLOW;
DRAWICON(选股,L*0.975,1);
{预测当天最低价公式}
A1:=REF(O,1);
A2:=ABS((REF(C,1)-A1)/A1);
A3:=ABS((REF(H,1)-A1)/A1);
A4:=ABS((REF(L,1)-A1)/A1);
B1:=ABS((A2+A3+A4)/3);
B2:=O*B1;
预测低一:=O-B2;
预测高一:=O+B2;
今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW;
开盘价1:=OPEN;
开盘价2:=REF(OPEN,1);
最高价1:=HIGH;
最高价2:=REF(HIGH,1);
最低价1:=LOW;
最低价2:=REF(LOW,1);
收盘价1:=CLOSE;
收盘价2:=REF(CLOSE,1);
AA:=最高价2;
BB:=最低价2;
CC:=开盘价2;
DD:=收盘价2;
EE:=(AA+BB+CC+2*DD)/5;
AAA:=EE+(AA-BB);
BBB:=2*EE-BB;
CCC:=2*EE-AA;
DDD:=EE-(AA-BB);
上升突破价:=AAA;
上升阻力价:=BBB;
下跌支撑价:=CCC;
下跌反转价:=DDD;
EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;
心理价:=EEE;
FFF:=(EEE+开盘价1)/2;
GGG:=(预测低一+FFF)/2;
预测低二:=GGG;
{预测今日最高价公式}
预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1); DRAWTEXT_FIX(1,0.04,0.15,0,'预测低一:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.10,0.15,0,CONST(预测低一)),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.15,0,'元'),COLORYELLOW,LINETHICK1; DRAWTEXT_FIX(1,0.04,0.20,0,'预测高一:'),COLORFFFFFF; DRAWNUMBER_FIX(1,0.10,0.20,0,CONST(预测高一)),COLORFFFFFF; DRAWTEXT_FIX(1,0.15,0.20,0,'元'),COLORFFFFFF,LINETHICK1; DRAWTEXT_FIX(1,0.18,0.15,0,'预测低二:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.24,0.15,0,CONST(预测低二)),COLORYELLOW; DRAWTEXT_FIX(1,0.29,0.15,0,'元'),COLORYELLOW,LINETHICK1; DRAWTEXT_FIX(1,0.18,0.20,0,'预测高二:'),COLORFFFFFF; DRAWNUMBER_FIX(1,0.24,0.20,0,CONST(预测高二)),COLORFFFFFF; DRAWTEXT_FIX(1,0.29,0.20,0,'元'),COLORFFFFFF,LINETHICK1;
买回价:=预测低二*1.015;
卖出价:=买回价*(1+PP);
DRAWTEXT_FIX(1,0.04,0.10,0,'卖出价:'),COLOR8080FF,LINETHICK1; DRAWNUMBER_FIX(1,0.10,0.10,0,CONST(卖出价)),COLOR8080FF; DRAWTEXT_FIX(1,0.15,0.10,0,'元'),COLOR8080FF,LINETHICK1; DRAWTEXT_FIX(1,0.18,0.10,0,'买回价:'),COLOR8080FF,LINETHICK1; DRAWNUMBER_FIX(1,0.24,0.10,0,CONST(买回价)),COLOR8080FF; DRAWTEXT_FIX(1,0.29,0.10,0,'元'),COLOR8080FF,LINETHICK1; DRAWTEXT_FIX(1,0.01,0.02,0,'★
=========================================== ★'),COLORRED;
DRAWTEXT_FIX(1,0.15,0.05,0,'T+1 操作'),COLORFFFFFF; DRAWTEXT_FIX(1,0.01,0.08,0,'操'),COLOR0000FF;
DRAWTEXT_FIX(1,0.01,0.12,0,'盘'),COLOR0000FF;
DRAWTEXT_FIX(1,0.01,0.16,0,'铁'),COLOR0000FF;
DRAWTEXT_FIX(1,0.01,0.20,0,'律'),COLOR0000FF;
DRAWTEXT_FIX(1,0.32,0.08,0,'坚'),COLOR0000FF;
DRAWTEXT_FIX(1,0.32,0.12,0,'决'),COLOR0000FF;
DRAWTEXT_FIX(1,0.32,0.16,0,'执'),COLOR0000FF;
DRAWTEXT_FIX(1,0.32,0.20,0,'行'),COLOR0000FF;
DRAWTEXT_FIX(1,0.01,0.24,0,'★
=========================================== ★'),COLORRED;
STICKLINE(C>=O,C,O,3.4,0),COLOR0000AA;
STICKLINE(C>=O,C,O,3.0,0),COLOR0000BB ;
STICKLINE(C>=O,C,O,2.4,0),COLOR0000CC;
STICKLINE(C>=O,C,O,2.0,0),COLOR0000DD ;
STICKLINE(C>=O,C,O,1.6,0),COLOR0000EE;
STICKLINE(C>=O,C,O,1.2,0),COLOR0000FF;
STICKLINE(C>=O,C,O,0.6,0),COLOR0000FF;
STICKLINE(C>=O,H,L,0,0),COLORRED;
STICKLINE(C<=O,C,O,3.4,0),COLORAAAA00;
STICKLINE(C<=O,C,O,3.0,0),COLORBBBB00;
STICKLINE(C<=O,C,O,2.4,0),COLORCCCC00;
STICKLINE(C<=O,C,O,2.0,0),COLORDDDD00;
STICKLINE(C<=O,C,O,1.6,0),COLOREEEE00;
STICKLINE(C<=O,C,O,1.2,0),COLORFFFF00;
STICKLINE(C<=O,C,O,0.6,0),COLORFFFF00;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;。