RSI短线王探讨通达信指标公式源码

合集下载

通达信RSI指标公式

通达信RSI指标公式

通达信RSI指标公式0.RSI变色-用RSI指标买卖,准确率极高:最近,行情不佳,本人将近几年用得较好的RSI指标(无未来)送给大家,“RSI变色”指标:LC:=REF(CLOSE,1);RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC), 6,1)*100,LINETHICK2;MA6 :MA(RSI6,6),COLORGREEN;IF(MA6>REF(MA6,1) ORRSI6>MA6,MA6,DRAWNULL),COLORRED,LINETHICK 2;一般情况下用60分钟图来买就已经达到很好效果,激进的朋友可以用30分钟图来买!1.通达信RSI与K线:PC:(2*C+H+L+AMOUNT/VOL/100)/5,LINETHICK0;JC9:(FORCAST(PC,5)+WMA(PC,5)+EMA(PC,3)+MA(PC,3))/ 4,LINETHICK0;LPC:=REF(JC9,1);R收:EMA(SMA(MAX(JC9-LPC,0),6,1)/SMA(ABS(JC9-LPC),6, 1)*100,3),COLOR00FF00,LINETHICK2;LPH:=REF(H,1);R高:=EMA(SMA(MAX(H-LPH,0),6,1)/SMA(ABS(H-LPH),6,1) *100,3);LPK:=REF(O,1);R开:=EMA(SMA(MAX(O-LPK,0),6,1)/SMA(ABS(O-LPK),6,1) *100,3);LPL:=REF(L,1);R低:=EMA(SMA(MAX(L-LPL,0),6,1)/SMA(ABS(L-LPL),6,1)* 100,3);LLR:LLV(R收,2),COLORFF9900,LINETHICK1;IF(R收!=LLR,R收,DRAWNULL),COLORRED,LINETHICK2; DRAWBAND(R收,RGB(120,100,0),LLR,RGB(120,100,0)); STICKLINE(R收>=REF(R收,1),R高,R收,0,0 ),COLOR0000FF;STICKLINE(R收>=REF(R收,1) ,R开,R低,0,0),COLOR0000FF;STICKLINE(R收>=REF(R收,1) ,R收,R开,2,0 ),COLOR0033FF;STICKLINE(R收>=REF(R收,1) ,R收,R开,1.5,0 ),COLOR0066FF;STICKLINE(R收>=REF(R收,1) ,R收,R开,1,0 ),COLOR0099FF;STICKLINE(R收>=REF(R收,1) ,R收,R开,0,0 ),COLOR00AAFF;STICKLINE(R收<REF(R收,1) ,R高,R开,0,0 ),COLOR00FF00;STICKLINE(R收<REF(R收,1) ,R收,R低,0,0 ),COLOR00FF00;STICKLINE(R收<REF(R收,1) ,R收,R开,2,0 ),COLOR003300;STICKLINE(R收<REF(R收,1) ,R收,R开,1.5,0 ),COLOR006600;STICKLINE(R收<REF(R收,1) ,R收,R开,1,0 ),COLOR009900;STICKLINE(R收<REF(R收,1) ,R收,R开,0,0 ),COLOR00AA00;2.RSI看趋势压力:N:=14; LC:=REF(CLOSE,1);RSI:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC), N,1)*100;DRAWLINE(RSI>=HHV(RSI,10),RSI,RSI<=LLV(RSI,3) ,HHV(RSI,3),1),COLORFF6000,LINETHICK1;AA0:=REF(RSI,N)=HHV(RSI,2*N+1);QY0:=BACKSET(AA0,N+1);CC0:=FILTER(QY0,N)ANDRSI=HHV(RSI,N+1);DRAWICON(CC0,RSI,2);AA1:=REF(RSI,N)=LLV(RSI,2*N+1);QY1:=BACKSET(AA1,N+1);CC1:=FILTER(QY1,N)ANDRSI=LLV(RSI,N+1);DRAWICON(CC1,RSI,1);Q:=5;AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);BB:=FILTER(AA,Q);CC:=BACKSET(BB,Q+1);DD:=FILTER(CC,Q);AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);BBB:=FILTER(AAA,Q);CCC:=BACKSET(BBB,Q+1);DDD:=FILTER(CCC,Q);R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);S11:=R11>REF(R11,1);压力:DRAWLINE(DD,RSI,S11,RSI,1),LINETHICK1,COLOR00 FF00;T11:=BACKSET(ISLASTBAR,BARSLAST(DDD)+1);U11:=T11>REF(T11,1);支撑:DRAWLINE(DDD,RSI,U11,RSI,1),LINETHICK1,COLOR0 088FF;3.多周期RSI指标:LC:=REF(CLOSE,1);RSI11:MA(SMA(MAX(CLOSE-LC,0),11,1)/SMA(ABS(CLOS E-LC),11,1)*100,3),COLORRED;RSI13:MA(SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOS E-LC),13,1)*100,3),COLORRED;RSI15:MA(SMA(MAX(CLOSE-LC,0),15,1)/SMA(ABS(CLOS E-LC),15,1)*100,3),COLORRED;E-LC),17,1)*100,3),COLORRED;RSI20:MA(SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOS E-LC),20,1)*100,3),COLORRED;RSI30:MA(SMA(MAX(CLOSE-LC,0),30,1)/SMA(ABS(CLOS E-LC),30,1)*100,3),COLORGREEN;RSI35:MA(SMA(MAX(CLOSE-LC,0),35,1)/SMA(ABS(CLOS E-LC),35,1)*100,3),COLORGREEN;RSI40:MA(SMA(MAX(CLOSE-LC,0),40,1)/SMA(ABS(CLOS E-LC),40,1)*100,3),COLORGREEN;RSI45:MA(SMA(MAX(CLOSE-LC,0),45,1)/SMA(ABS(CLOS E-LC),45,1)*100,3),COLORGREEN;RSI50:MA(SMA(MAX(CLOSE-LC,0),50,1)/SMA(ABS(CLOS E-LC),50,1)*100,3),COLORGREEN;RSI100:SMA(MAX(CLOSE-LC,0),100,1)/SMA(ABS(CLOSE-LC),100,1)*100,COLORYELLOW;RSI150:SMA(MAX(CLOSE-LC,0),150,1)/SMA(ABS(CLOSE-LC),150,1)*100,COLORYELLOW;RSI200:SMA(MAX(CLOSE-LC,0),200,1)/SMA(ABS(CLOSE-LC),200,1)*100,COLORYELLOW;RSI250:SMA(MAX(CLOSE-LC,0),250,1)/SMA(ABS(CLOSE-LC),250,1)*100,COLORYELLOW;LC),300,1)*100,COLORYELLOW;50,POINTDOT;4.我的RSI指标:N:=14;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC), N,1)*100;DRAWLINE(RSI>=HHV(RSI,10),RSI,RSI<=LLV(RSI,3) ,HHV(RSI,3),1),COLORFF6000,LINETHICK1;AA0:=REF(RSI,N)=HHV(RSI,2*N+1);QY0:=BACKSET(AA0,N+1);CC0:=FILTER(QY0,N)ANDRSI=HHV(RSI,N+1);DRAWICON(CC0,RSI,2);AA1:=REF(RSI,N)=LLV(RSI,2*N+1);QY1:=BACKSET(AA1,N+1);CC1:=FILTER(QY1,N)ANDRSI=LLV(RSI,N+1);DRAWICON(CC1,RSI,1);Q:=5;AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);BB:=FILTER(AA,Q);CC:=BACKSET(BB,Q+1);DD:=FILTER(CC,Q);AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);BBB:=FILTER(AAA,Q);CCC:=BACKSET(BBB,Q+1);DDD:=FILTER(CCC,Q);R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);S11:=R11>REF(R11,1);压力:DRAWLINE(DD,RSI,S11,RSI,1),LINETHICK1,COLOR00 FF00;T11:=BACKSET(ISLASTBAR,BARSLAST(DDD)+1);U11:=T11>REF(T11,1);支撑:DRAWLINE(DDD,RSI,U11,RSI,1),LINETHICK1,COLOR0 088FF;我的RSI:RSI,COLORFFFFFF;IF(RSI>65,RSI,DRAWNULL),COLOR0000FF;IF(RSI<35,RSI,DRAWNULL),COLORFF00FF;CONST(RSI),COLOR00FFFF,DOTLINE;5.东方家战神RSI:P:=5;N1:=6;HIGHN:=2;LC:=REF(CLOSE,1);RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC), 6,1)*100,COLORWHITE;AA:=REF(RSI1,HIGHN)=HHV(RSI1,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN)ANDRSI1=HHV(RSI1,HIGHN+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);AA1:=REF(RSI1,HIGHN)=LLV(RSI1,2*HIGHN+1);QY1:=BACKSET(AA1,HIGHN+1);CC1:=FILTER(QY1,HIGHN)ANDRSI1=LLV(RSI1,HIGHN+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);A1:=REF(RSI1,P)=HHV(RSI1,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);A2:=REF(RSI1,P)=LLV(RSI1,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1);MID:=MA(RSI1,20);UPPER:=MID+ 2*STD(RSI1,20);LOWER:=MID -2*STD(RSI1,20);高:=REF(HHV(RSI1,360),1);低:=REF(LLV(RSI1,240),1);BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,6);上轨:UPPER,COLORYELLOW;下轨:LOWER,COLORYELLOW;DRAWICON(CC,RSI1*1.03,2);DRAWICON(CC1,RSI1*0.97,1);高压:DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,CURRB ARSCOUNT=GDCS1,RSI1,1);低支:DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,CURRB ARSCOUNT=DDCS1,RSI1,1);阻力:DRAWLINE(D1,RSI1,S11,RSI1,1),COLORYELLOW; 支撑:DRAWLINE(D2,RSI1,U11,RSI1,1),COLOR00FF00; DRAWTEXT(CROSS(RSI1,LOWER),LOWER,'抄'),COLOR00FF00;DRAWTEXT(CROSS(LOWER,RSI1),LOWER,'▼'),COLOR00FF00;DRAWTEXT(CROSS(RSI1,高),MID,'年高'),COLORYELLOW;DRAWTEXT(CROSS(低,RSI1),MID,'年低'),COLORYELLOW;DRAWTEXT(CROSS(UPPER,RSI1),UPPER,'逃'),COLORYELLOW;DRAWTEXT(CROSS(RSI1,UPPER),UPPER,'▲'),COLORYELLOW;VM:MA(RSI1,N1),COLORFF00FF,NODRAW; STICKLINE(CROSS(BIAS,乖离)AND 乖离<-9,6,0,2,0),COLORRED; DRAWTEXT(ISLASTBAR ANDRSI1>REF(RSI1,1),VM,' ▲'),COLORDD00FF; DRAWTEXT(ISLASTBAR ANDRSI1<REF(RSI1,1),VM,' ▼'),COLORCCEE00;6.最优版RSI:N:=14;N1:=3;N2:=34;K:=3;LC:=REF(C,1);RSII:=SMA(MAX(C-LC,0),14,1)/SMA(ABS(C-LC),14,1)*100, COLORRED,LINETHICK2;压力:HHV(MA(RSII,3),13),COLORGREEN;支撑:LLV(MA(RSII,3),13),COLORYELLOW;V AR2:MA(RSII,8),COLOR888888;V AR3:REF(V AR2,3),COLOR888888;DRAWBAND(V AR2,RGB(0,124,24),RSII,RGB(255,0,0)); STICKLINE(VAR2>=V AR3,V AR3,V AR2,2,0),COLOR00FF FF;{DRAWNULL}STICKLINE(VAR3>V AR2,V AR2,V AR3,2,0),COLORFFBB 00};RSI:RSII,COLORFFFFFF,LINETHICK2;V AR4:IF(RSI<V AR2,RSI,V AR2),COLORRED,LINETHICK 1;AA:=REF(RSI,N1)=HHV(RSI,2*N1+1);BB:=BACKSET(AA,N1+1);CC:=FILTER(BB,N1)AND RSI=HHV(RSI,N1+1);A1:=BARSLAST(REF(CC,1));顶背离:=REF(CLOSE,A1+1)<CLOSE ANDREF(RSI,A1+1)>RSI ANDCC;DRAWTEXT(顶背离,压力+1.5,'DBL'),COLORMAGENTA; DRAWLINE(CC,RSI,FILTER(顶背离>0,5),RSI,0),COLORWHITE;AA2:=REF(RSI,N1)=LLV(RSI,2*N1+1);BB2:=BACKSET(AA2,N1+1);CC2:=FILTER(BB2,N1)AND RSI=LLV(RSI,N1+1);A2:=BARSLAST(REF(CC2,1));{ 股旁网-通达信公式}底背离:=REF(C,A2+1)>CLOSE ANDREF(RSI,A2+1)<RSIANDCC2;DRAWTEXT(底背离,支撑-1.5,'DBL'),COLORMAGENTA; DRAWLINE(CC2,RSI,FILTER(底背离>0,5),RSI,0),COLORWHITE;。

通达信指标源码公式赛金钻RSI源码.docx

通达信指标源码公式赛金钻RSI源码.docx

SSRCJL:=EMA(VOL Z13);SSRCJE:=EMA(AM0UNT,13);SSRCBJX:=((SSRCJE / SSRCJL) / 100);SSRGL:=(((CLOSE ・ SSRCBJX) / SSRCBJX) * 100);短底:=SSRGL<(0-6);STICKLINE((SSRGL < (0 ・ 6)),0,4,1,0),COLORWHITE;好线:=38,COLORFF3311;平线:=51,COLORFF1155;OK:=REF(CLOSE,1);RSIl:=SMA(MAX(CLOSE-OK z O),7,l)/SMA(ABS(CLOSE-OK)z7,l)*100,COLORW HITE;RSI2:=SMA(MAX(CLOSE-OK z O),7,l)/SMA(ABS(CLOSE-OK),7z l)*100z COLORW HITE;鱼:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFOOFF; RSI4:=SMA(鱼刀)丄INETHICK1,COLORWHITE; 趋势A:=MA(((CLOSE-LLV(LOW Z48))/(HHV(HIGH,48)-LLV(LOW Z48))*50),17)+9Z CO LORFFFFFF;趋势B:=MA(((CLOSE-LLV(LOW Z53))/(HHV(HIGH,53)-LLV(LOW,53))*50)Z17)+9Z CO LOR3377DD;趋势C:=EMA(((CLOSE-LLV(LOW Z38))/(HHV(HIGH,38)-LLV(LOW,38))*50),17)+18, COLORYELLOW,LINETHICK1;A1:=MA(趋势A,7)*1.372,COLORGREEN丄INETHICK1,NODRAW;A2:=A1*1.O887;A3:=(1.5*(趋势B+RSI4)・(A2+A1))+12,COLORGREEN丄INETHICK1QOTLINE; 鱼网:IF((CROSS(RSI2,RSI4) OR CROSS(RSI2,A3) AND A3v好线AND RSI1<平线),48,38),COLOR9AFAOO 丄INETHICK1,DOTLINE; 阴线买入:C>O AND MA(C z5)<MA(C z10) AND REF(CvO,l) AND REF(C<0,2) AND REF(C<O,3) AND (REF(Cl)vREF(C,4)*0・88 OR REF(C z l)<REF(O z4)*0.88 兀OLORGREEN,NODRAW;STICKLINE(阴线买入,10,15,1,0 兀OLORGREEN;鱼网蓝柱:鱼网=48 AND CROSS(鱼「好线)ANDREF(MA(C,3)/1)<=MA(C,3),COLORBLUE Z NODRAW;STICKLINE(鱼网蓝柱,50,55,1,0兀OLORRED;白绿线:SMA(角必1)丄INETHICK1,COLORWHITE,NODRAW;HH:=BARSLAST(鱼 v = 15)v5;深水鱼:CROSS(鱼,RSI4) AND HH AND 白绿线>15,NODRAW,COLORFF阡阡;STICKLINE(深水鱼,80,70,1,0兀OLORFFFFFF;买点l:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;买点2:=SMA(买点1,3,1);买点3:=SMA(买点2,3,1);买点4:=3*买点2-2*买点3;买点5:=C-REF(C,1);买点6:=100*EMA(EMA(买点5Z6),6)/EMA(EMA(ABS(买点5),6),6);买点:二LLV(买点6,2)=LLV(买点6,7) AND COUNT(买点6<0z2) AND CROSS(买点6,MA(买点6,2));STICKLINE(FILTER(买点=1,5),13,15,l z O),COLORRED;STICKLINE(买点,10,13,1Z O)Z COLORYELLOW;。

通达信指标公式源码 RSI顶底背离

通达信指标公式源码 RSI顶底背离

VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARAOR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,1),COLORFF9900; VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3.0,0),COLOR0088FF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.0,0),COLOR33AAFF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0.5,0),COLOR66CCFF; DRAWICON(VAR19,L*0.98,7);VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.0,0),COLOR008800; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.0,0),COLOR00BB00; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.5,0),COLOR00EE00; DRAWICON(VAR1A,H*1.02,8);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=3*K24-2*D24;压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR66CC66,LINE THICK3;支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORCC33CC,LINETHICK3;支撑价:LLV(LOW,34),COLOR0088FF,DOTLINE,LINETHICK2;阻力价:HHV(HIGH,34),COLORFF9900,DOTLINE,LINETHICK2; DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,30),L,'★<--极品绝底'),COLOR99FF00;DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)> C ANDREF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)<" MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.02,'★M'),COLOR00FFFF;{MACD底背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)>C AND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"),L-0.10,'◎K'),COLORFF00FF;{KDJ底背离} DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)>C ANDREF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)<"RSI. RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")>0,L-0.18,'◆R'),COLOR0000FF;{RSI底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)< C ANDREF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)>" MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.16,'★M'),COLOR00FF00;{MACD顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)<C AND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K")>0,H+0.08,'◎K'),COLORFFFFCC;{KDJ顶背离} DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)<C ANDREF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)>"RSI. RSI1" AND CROSS("RSI.RSI2","RSI.RSI1")>0,H+0.04,'◆R'),COLORFF9900;{RSI顶背离};DRAWRECTREL(0,500,135,999.4,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);主力进:=(超B)+(大B),NODRAW;主力出:=(超S)+(大S),NODRAW;小散进:=(中B)+(小B),NODRAW;小散出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(主力进),MAX(ABS(主力出),MAX(ABS(小散进),ABS(小散出))))),NODRAW;DRAWRECTREL(0,CONST(940-(ABS(主力进)*250/DAZHIV)),30,960,IF(CONST(主力进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(940-(ABS(主力出)*250/DAZHIV)),62,960,IF(CONST(主力出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(70,CONST(940-(ABS(小散进)*250/DAZHIV)),100,960,IF(CONST(小散进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(102,CONST(940-(ABS(小散出)*250/DAZHIV)),132,960,IF(CONST(小散出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('',CON2STR(主力进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.033,0.9,0,STRCAT('',CON2STR(主力出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.9,0,STRCAT('',CON2STR(小散进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.101,0.9,0,STRCAT('',CON2STR(小散出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,1,0,'(X10万元)'),COLOR00FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0,1,0,'主进出'),COLORCYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,1,0,'散进出'),COLORCYAN;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW; DRAWRECTREL(0,515,CONST(ABS(主力买力度)*500/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*500/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR00FFFF;DRAWTEXT_FIX(1,0.05,0,0,HYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.19,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.30,0.00,0,'主题投资:')COLOR00FFFF;DRAWTEXT_FIX(1,0.35,0.00,0,EXTERNSTR(0,2))COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.05,0,'主营业务:')COLOR00FFFF; DRAWTEXT_FIX(1,0.05,0.05,0,EXTERNSTR(0,3))COLOR00FFFF; DRAWTEXT_FIX(1,0.00,0.10,0,'解禁日期:')COLOR00FFFF; DRAWTEXT_FIX(1,0.05,0.10,0,EXTERNSTR(0,4))COLOR00FFFF; DRAWTEXT_FIX(1,0.00,0.15,0,'愚民概念:'),COLOR00FFFF; DRAWTEXT_FIX(1,0.05,0.15,0,EXTERNSTR(0,6)),COLOR00FFFF; {上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;};。

通达信指标公式源码预测成交量公式

通达信指标公式源码预测成交量公式

通达信指标公式源码预测成交量公式通达信是国内一款非常常用的股票分析软件,其指标公式源码是其最核心的部分之一、下面是一些通达信中常用的指标公式源码以及一个预测成交量的公式源码。

一、通达信指标公式源码示例通达信软件中有很多内置的指标公式,下面是一些示例:1.移动平均线指标(MA)公式:MA(CLOSE,N)源码示例:```MA1:MA(C,5);MA2:MA(C,10);MA3:MA(C,20);```2.相对强弱指标(RSI)公式:RSI(CLOSE,N)源码示例:```RSI1:RSI(C,6);RSI2:RSI(C,12);RSI3:RSI(C,24);```3.指数移动平均线(EMA)公式:EMA(CLOSE,N)源码示例:```EMA1:EMA(C,5);EMA2:EMA(C,10);EMA3:EMA(C,20);```4.布林线指标(BOLL)公式:BOLL(CLOSE,N,K)源码示例:```BOLLUP:BOLL(C,20,2);BOLLMID:BOLL(C,20,1);BOLLDOWN:BOLL(C,20,-2);```5.动态支撑压力指标(SUP)公式:SUP(MIN(O,LOW),N)源码示例:```SUP1:SUP(MIN(O,L),20);SUP2:SUP(MIN(O,L),30);SUP3:SUP(MIN(O,L),60);```这些只是通达信软件中的一小部分指标公式,通达信软件中还有很多其他指标公式可供使用。

二、预测成交量公式源码预测成交量是一个常用的技术分析指标之一,下面是一个预测成交量的简单公式源码示例:```PredictedVolume:VOL*(CLOSE/REF(CLOSE,1));```以上是一个简单的公式,其基本思想是通过当前价格的涨跌情况来预测成交量的大小。

具体来说,通过计算当前成交量乘以当前价格与前一天价格的比值,从而得出预测的成交量。

需要注意的是,这只是一个简单的预测成交量的公式,其精确性可能有限,实际中还需要考虑更多的因素来进行准确的成交量预测。

RSI顶底通达信指标公式源码.doc

RSI顶底通达信指标公式源码.doc

VAR1:=EMA(C,3);VAR2:=EMA(C Z5);VAR3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EMA(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6・REF(VAR6,15))/REF(VAR6,15)*100;VAR&=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;VAR9:=EMA(VAR7,8);STICKLINE(VAR7<1*REF(VAR7Z1)Z H,L Z0.4,0),COLORBLUE;STICKLINE(VAR7vl*REF(VAR7,l),O,C,4, 1)Z COLORBLUE;STICKLINE(VAR7>1*REF(VAR7,1),H,L,0.4,0),COLORRED;STICKLINE(VAR7>1*REF(VAR7/1)Z O,C,4, 1),COLORRED;STICKLINE(VAR7vl*REF(VAR7,l) AND VAR9>1*REF(VAR9,1),H丄,0.4,0),COLORGREEN; STICKLINE(VAR7<1*REF(VAR7Z1) AND VAR9>1*REF(VAR9Z1),O,C,4, 1),COLORGREEN; 买进价:=((C-REF(MA(C,6),l))/6+MA(C z6))*1.004;买进条件:二CROSS©买进价)AND买进价>REF(买进价,1);STICKLINE(买进条件Z H,L,0.4Z1)Z COLORFF0080Z LINETHICK2;STICKLINE(买进条件Q ,C Z5Z0),COLORFF0080,LINETHICK2;加码价:=((C-REF(MA(C,18)Z1))/18+MA(C,18))*1.004;加码条件:=CROSS(C,加码价)AND加码价>REF(加码价,1);STICKLINE(加码条件,H,L,0・4,1),COLORYELLOW丄INETHICK2;STICKLINE(加码条件z O,C z5z O)z COLORYELLO^LINETHICK2;JL 01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;AA:(20*LJL07+19*REF(LJL07,l)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)+ 15*REF(LJL07,5)+14*REF(LJL07,6)+13 *REF(LJL07,7)+12*REF(LJL07,8)+ll*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07/11)+8*REF(LJL07,12)4-7*REF(LJL07Z13)+6*REF(LJL 07z14)+5*REF(LJL07z15)+4*REF(LJL07z16)+3*REF(LJL07z17)+2*REF(LJL07z18)+REF(LJ L07,20))/210,COLORRED;BB:MA(AA,5)Z COLORRED,LINETHICK4,POINTDOT;CC:IF(JL01<=AA/BB,DRAWNULL)Z COLORGREEN,LINETHICK4,POINTDOT;MTM:=C-REF(C,l);DX: = 100*EMA(EMA(MTM z6)/6)/EMA(EMA(ABS(MTM),6),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX Z MA(DX,2)),1,0); DRAWTEXT(HLTER(买=1,5)丄OW-0.03J* 预警jCOLORRED;A3:=BARSLAST(REF(CROSS(”RSLRSI1”(6,12,24),”RSI・RSI2”(6J2,24)),1));B3:=REF(C,A3+1)>C AND REF(,,RSLRSI1"(6Z12Z24)/A3+1)<"RSLRSI1,,(6Z12,24) AND CROSS(”RSI・RSI1“(6,12,24),”RSI・RSI2”(6,12,24));DRAWICON(FILTER(B3>0,5),L*0.98Z10);DRAWTEXT(FILTER(B3>0z5)z L*0.98;*R 底'),COLORYELLOW;{RSI 底}C3:=BARSLAST(REF(CROSS(”RSLRSI2”(6,12,24),”RSI・RSI1”(6J2,24)),1));D3:=REF(C,C3+1)<C AND REF(,,RSLRSI1',(6Z12/24)Z C34-1)>,,RSLRSI1,,(6Z12/24) AND CROSS(”RSI・RSI2“(6,12,24),”RSI・RSI1”(6,12,24));DRAWICON(FILTER(D3>0Z5),H*1.03,12);DRAWTEXT(FILTER(D3>0z5\H*1.03,,*R 顶'),COLORGREEN;{RSI 顶};。

RSI看趋势看支撑看压力看背离通达信指标公式源码

RSI看趋势看支撑看压力看背离通达信指标公式源码

这么多年还是觉得经典的指标好而且是系统自带的,这个我的RSI指标是在RSI基础上修改一下,增加自动画线功能,效果和实践应用可见一斑。

具体看RSI突破压力线就是买点,特别在一波下跌之后出现在低位突破的效果明显,指标有未来函数因为是画线功能,不喜欢的请绕道,如有雷同纯数巧合,不当之处请前辈们斧正优化。

N:=14;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;DRAWLINE(RSI>=HHV(RSI,10),RSI,RSI<=LLV(RSI,3),HHV(RSI,3),1),COLORFF6000,LIN ETHICK1;AA0:=REF(RSI,N)=HHV(RSI,2*N+1);QY0:=BACKSET(AA0,N+1);CC0:=FILTER(QY0,N) AND RSI=HHV(RSI,N+1);DRAWICON(CC0,RSI,2);AA1:=REF(RSI,N)=LLV(RSI,2*N+1);QY1:=BACKSET(AA1,N+1);CC1:=FILTER(QY1,N) AND RSI=LLV(RSI,N+1);DRAWICON(CC1,RSI,1);{}Q:=5;AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);BB:=FILTER(AA,Q);CC:=BACKSET(BB,Q+1);DD:=FILTER(CC,Q);AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);BBB:=FILTER(AAA,Q);CCC:=BACKSET(BBB,Q+1);DDD:=FILTER(CCC,Q);R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);S11:=R11>REF(R11,1);压力:DRAWLINE(DD,RSI,S11,RSI,1),LINETHICK1,COLOR00FF00;T11:=BACKSET(ISLASTBAR,BARSLAST(DDD)+1);U11:=T11>REF(T11,1);支撑:DRAWLINE(DDD,RSI,U11,RSI,1),LINETHICK1,COLOR0088FF; {}我的RSI:RSI,COLORFFFFFF;IF(RSI>65,RSI,DRAWNULL),COLOR0000FF;IF(RSI<35,RSI,DRAWNULL),COLORFF00FF;CONST(RSI),COLOR00FFFF,DOTLINE;。

通达信指标公式源码MACD、KDJ、RSI三合一

通达信指标公式源码MACD、KDJ、RSI三合一

DIFF:EMA(CLOSE,7) - EMA(CLOSE,19),COLORGREEN;DEA:EMA(DIFF,9),COLORYELLOW;MACD:2*(DIFF-DEA),COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=REF(C,A3+1)>C ANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1)); D3:=REF(C,C3+1)<C ANDREF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));{MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;}MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;{STICKLINE(B1>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;}STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED; STICKLINE(MACD<=REF(MACD,1) ANDMACD>0,0,MACD,0,0),COLORYELLOW;STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORCYAN; STICKLINE(MACD>=REF(MACD,1) ANDMACD<0,0,MACD,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;NOTEXT强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED; NOTEXT弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA; VARA1:=(DVOL/C)/2,NODRAW;VARA2:=SUM(IF(VARA1>100 AND CLOSE>REF(CLOSE,1),VARA1,0),0); VARA3:=SUM(IF(VARA1>100 AND CLOSE<REF(CLOSE,1),VARA1,0),0); VARA4:=SUM(IF(VARA1<100 AND CLOSE>REF(CLOSE,1),VARA1,0),0); VARA5:=SUM(IF(VARA1<100 AND CLOSE<REF(CLOSE,1),VARA1,0),0); VARA6:=VARA2+VARA3+VARA4+VARA5;机买:=(VARA2/VARA6)*100,LINETHICK2,COLORRED;机卖:=(VARA3/VARA6)*100,LINETHICK2,COLORGREEN;主力差:=机买-机卖,LINETHICK2,NODRAW;强度:主力差-REF(主力差,1),NODRAW,COLORYELLOW;STICKLINE(强度>1.5,-0.1,0,2,0),COLORYELLOW;近期:BARSLAST(强度>1.5),NODRAW,COLORGRAY;N:=7{2,100};M:=5{2,100};VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;B:=SMA(VAR1,N,1);VAR2:=SMA(B,M,1);短买:CROSS(B,VAR2) AND B<40,NODRAW,COLORRED;DRAWICON(短买,0,1);。

短线王通达信指标公式源码

短线王通达信指标公式源码

短线王通达信指标公式源码短线王指标是由组合、资金动能指标、主流资金和短线王敢死队三个指标构成的。

如果一只股票没有机构、敢死队和拉升资金参与,那么它就不能成为一只强势股和妖股。

这个指标可以用一副图来展示。

如果一只股票没有机构、敢死队和拉升资金参与,那么千万不要买。

买了反而会浪费时间,甚至赔钱。

换手1指标的计算公式为:V*100/CAPITAL。

主力、大户、中户和散户的计算公式为:MA(换手1,4)、MA(换手1,9)、MA(换手1,17)和MA(换手1,34)。

均量的计算公式为:(主力+大户+中户+散户)/4.主力能量的计算公式为:(主力-均量)*1,颜色为黄色,不绘制线条。

操盘的计算公式为:STICKLINE(主力能量>=0AND主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),颜色为红色,填充颜色为黄色。

STICKLINE(1,0,0,1,0),点形式为点状,线条粗细为3,颜色为蓝色。

Z_J1的计算公式为:EMA(C,2)-EMA(C,150)。

Z_J2的计算公式为:EMA(Z_J1,100)。

Z_J3的计算公式为:2*(Z_J1-Z_J2)。

Z_J4的计算公式为:POW(Z_J3,3)*0.1+POW(Z_J3,1)。

G_J1的计算公式为:EMA(C,2)-EMA(C,89)。

G_J2的计算公式为:EMA(G_J1,30)。

G_J3的计算公式为:2*(G_J1-G_J2)*9.8.G_J4的计算公式为:POW(G_J3,3)*0.1+POW(G_J3,2)。

攻击资金的计算公式为:IF(G_J3>0.015,G_J4,0)/28,线条粗细为2,颜色为红色。

DRAWICON(CROSS(攻击资金,0.015),攻击资金*0.95,9)用于绘制图标。

QQ的计算公式为:((MA(CLOSE,1)+MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,7)+MA(CLOSE,9))/5)。

短线王通达信指标公式源码 → 高频交易王通达信指标公式源码

短线王通达信指标公式源码 → 高频交易王通达信指标公式源码

短线王通达信指标公式源码→ 高频交易
王通达信指标公式源码
本文将介绍短线王通达信指标公式源码,并展示如何将其改进为高频交易王通达信指标公式源码。

短线王指标介绍
短线王通达信指标是一种用于短期股票交易的技术指标,以帮助投资者做出买入和卖出的决策。

该指标的计算基于一系列因子,包括收盘价、最高价和最低价等数据。

短线王指标公式源码
以下是短线王指标的通达信公式源码示例:
{短线王指标源码}
高频交易王指标改进
为了适应高频交易的需求,我们可以对短线王指标进行一些改进。

高频交易需要更快的指标计算速度和更准确的买卖信号。

以下是对短线王指标进行改进的示例:
{高频交易王指标改进源码}
总结
通过对短线王指标进行改进,我们可以得到适用于高频交易的指标。

这些改进可以提高交易的速度和准确性,帮助投资者在高频交易环境下做出更好的决策。

以上是关于短线王通达信指标公式源码改进为高频交易王通达信指标公式源码的文档。

希望对您有所帮助!。

通达信rsi玄机指标源码

通达信rsi玄机指标源码

通达信RSI玄机指标源码1. 简介通达信(TDX)是中国股市中广泛使用的一种股票软件,它提供了丰富的技术指标和工具。

其中,RSI(Relative Strength Index,相对强弱指标)是一种常用的技术指标,用于衡量股票的超买超卖情况,判断股票价格的走势。

本文将介绍通达信中的RSI玄机指标的源码实现。

该指标是基于RSI指标的改进版本,通过引入玄机因子,能够更准确地判断股票价格的变化趋势。

2. RSI玄机指标的计算公式RSI玄机指标的计算公式与传统的RSI指标类似,但在计算过程中引入了玄机因子。

下面是RSI玄机指标的计算公式:RSI = 100 - 100 / (1 + RS)RS = EMA(UP, N) / EMA(DOWN, N)UP = MAX(CLOSE - REF(CLOSE, 1), 0)DOWN = ABS(MIN(CLOSE - REF(CLOSE, 1), 0))其中,CLOSE表示当日的收盘价,REF(CLOSE, 1)表示前一日的收盘价,MAX表示取两个数中的较大值,MIN表示取两个数中的较小值,ABS表示取绝对值,EMA表示指数移动平均线。

3. RSI玄机指标的源码实现下面是通达信中RSI玄机指标的源码实现:// 定义变量var CLOSE, REF_CLOSE, UP, DOWN, EMA_UP, EMA_DOWN, RS, RSI;// 计算UP和DOWNUP = MAX(CLOSE - REF_CLOSE, 0);DOWN = ABS(MIN(CLOSE - REF_CLOSE, 0));// 计算EMA_UP和EMA_DOWNEMA_UP = EMA(UP, N);EMA_DOWN = EMA(DOWN, N);// 计算RS和RSIRS = EMA_UP / EMA_DOWN;RSI = 100 - 100 / (1 + RS);// 绘制RSI线Plot(RSI, "RSI", colorBlue, styleLine);在源码中,首先定义了需要使用的变量,包括CLOSE(当日收盘价)、REF_CLOSE(前一日收盘价)、UP(上涨幅度)、DOWN(下跌幅度)、EMA_UP(上涨幅度的指数移动平均值)、EMA_DOWN(下跌幅度的指数移动平均值)、RS(相对强弱指标)和RSI(RSI玄机指标)。

通达信指标公式源码RSI自动画线

通达信指标公式源码RSI自动画线

RSI自动画线有飞狐版的,大智慧版的唯独没有通达信版。

今改写成通达信版。

RSI:SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORWHITE; A1:=REF(RSI,2)=HHV(RSI,2*2+1);B1:=FILTER(A1,2);C1:=BACKSET(B1,2+1);D1:=FILTER(C1,2);{高}A2:=REF(RSI,2)=LLV(RSI,2*2+1);B2:=FILTER(A2,2);C2:=BACKSET(B2,2+1);D2:=FILTER(C2,2);{低}H1:=(D1 AND NOT(D2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1));H2:=D1 AND NOT(D2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR BARSTATUS=2 OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);S1:=R1>REF(R1,1); {前一高}R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1); {前二高}R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);S3:=R3>REF(R3,1); {前三高}T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);U1:=T1>REF(T1,1); {前一低}T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1); {前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);U3:=T3>REF(T3,1); {前三低}{-----------------【图解模板】---------------------}压一:DRAWLINE(S2,RSI,S1,RSI,1),COLOR00B5B9,COLORRED; {压力1}压二:DRAWLINE(S3,RSI,S2,RSI,1),COLOR009AFF; {压力2}撑一:DRAWLINE(U2,RSI,U1,RSI,1),COLORFF68FF;{支撑1}撑二:DRAWLINE(U3,RSI,U2,RSI,1),COLORFFC800;{支撑2}DRAWLINE(U2,RSI,0,0,3),POINTDOT,COLORFFAFFF; {启动直线}20,COLORGRAY;50,COLORGRAY;80,COLORGRAY;IF(C,RSI,DRAWNULL),COLORWHITE;说明:任何公式都不是铁板一块,需要进行判断,有经验的根据自己的经验进行判断股价走势,没有经验的多看少动,待到有经验了再行判断不迟。

分时RSI通达信指标公式源码

分时RSI通达信指标公式源码

分时RSI通达信指标公式源码---
分时RSI指标是一种用于分析股票价格波动的技术指标。

RSI (Relative Strength Index)是一种常用的技术指标,用于研究价格
走势的强弱程度。

本文将介绍分时RSI指标的源码。

指标计算方法
分时RSI指标的计算方法如下所示:
1. 计算每个交易周期内的价格涨幅,即当前价格与前一个交易
周期的收盘价格之差。

2. 将所有涨幅中的正值相加,得到正值的和。

3. 将所有涨幅中的负值取绝对值后相加,得到负值的和。

4. 计算相对强度RS(Relative Strength),即正值和负值的比值。

RS = 正值和 / 负值和。

5. 计算RSI指标值,即100减去(1 + RS)的倒数再乘以100。

RSI = 100 - (100 / (1 + RS))。

通达信指标公式源码
下面是分时RSI指标的通达信公式源码:
(100/(1+(SUM(IF(CLOSE>REF(CLOSE,1),CLOSE-
REF(CLOSE,1),0),N))/(SUM(IF(CLOSE<REF(CLOSE,1),REF(CLOSE ,1)-CLOSE,0),N))))
使用方法
将上述通达信公式源码复制到通达信软件的公式编辑器中,即可使用分时RSI指标进行技术分析。

注意事项
- 该指标适用于股票等金融市场分析,具体使用时请根据实际情况调整参数N的值。

- 使用该指标进行交易决策时应结合其他技术分析指标和基本面分析,并考虑市场风险因素。

以上是关于分时RSI通达信指标公式源码的介绍。

希望对您有所帮助!。

通达信指标公式源码[RSI微分]加上80和20条线。分别代表顶部和底部

通达信指标公式源码[RSI微分]加上80和20条线。分别代表顶部和底部

通达信指标公式源码[RSI微分]加上80和20条线。

分别代表顶部和底部加上80和20条线。

分别代表顶部和底部。

{[RSI微分]加上80和20条线。

分别代表顶部和底部。

}VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100,NODR AW;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100,NOD RAW;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100,NODR AW;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100,NODRA W;开盘值:VAR2,NODRAW;收盘值:VAR4,NODRAW ;最高值:VAR6,NODRAW ;最低值:VAR8,NODRAW ;{STICKLINE(VAR4VAR2,VAR8,VAR6,3,0),COLORRED;} STICKLINE(VAR4VAR2,VAR2,VAR4,3,0),COLORRED; STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0.8,1),COLORRED;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<var4,var4,var6,0.8,1),colorred;< p="">STICKLINE(VAR4>VAR2 AND VAR6<="" p="">VAR6>VAR4,VAR4,VAR8,0.8,1),COLORRED;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<var2,var2,var8,0.8,1),colorred;< p="">STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0.8,1),COLORRED;STICKLINE(VAR4>VAR2 AND VAR6<="" p="">VAR8<var2,var2,var6,0.8,1),colorred;< p="">STICKLINE(VAR4>VAR2 AND VAR6<="" p="">VAR8>VAR2,VAR2,VAR6,0.8,1),COLORRED;STICKLINE(VAR4VAR8 ANDVAR6<var4,var4,var8,0.8,1),colorcyan;< p="">STICKLINE(VAR4<="" p="" var6VAR8<var4,var4,var6,0.8,1),colorcyan;< p="">STICKLINE(VAR4<="" p="" var6VAR6>VAR4,VAR4,VAR8,0.8,1),COLORCYAN;STICKLINE(VAR4VAR8 ANDVAR6<var4,var2,var8,0.8,1),colorcyan;< p="">STICKLINE(VAR4VAR8 ANDVAR6>VAR4,VAR2,VAR8,0.8,1),COLORCYAN;STICKLINE(VAR4<="" p="" var6VAR8<var2,var2,var6,0.8,1),colorcyan;< p="">STICKLINE(VAR4<="" p="" var6VAR8>VAR2,VAR2,VAR6,0.8,1),COLORCYAN;DRAWBAND(20,RGB(400,400,0),20,DRAWNULL);DRAWBAND(80,RGB(400,400,0),80,DRAWNULL);趋势:(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*80+10,COLORYELLOW;</var2,var2,var6,0.8,1),colorcyan;<></var4,var2,var8,0.8,1),colorcyan;<></var4,var4,var6,0.8,1),colorcyan;<></var4,var4,var8,0.8,1),colorcyan;<></var2,var2,var6,0.8,1),colorred;<></var2,var2,var8,0.8,1),colorred;<></var4,var4,var6,0.8,1),colorred;<>。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档