通达信多空概率主图指标公式

合集下载

通达信指标公式源码多空解盘指标

通达信指标公式源码多空解盘指标

通达信指标公式源码多空解盘指标VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;STICKLINE(VAR2 < MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;STICKLINE(VAR2 > MA(VAR3,6),LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(VAR2<close)and(var2CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;STICKLINE(((OPENMA(VAR3,6))),OPEN,CLOSE,3.05,1),COLORRED; DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.02)),7);DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.02)), 8);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE; M:=IF(AL<="" 1.1,ref(c,1)="" bdsfid="91" p="">撑:IF(NL<m,cdp-(cdp-m)*0.618,nl)nodraw;< bdsfid="93" p=""></m,cdp-(cdp-m)*0.618,nl)nodraw;<>底:IF(AL<="" 1.1,ref(c,1)="" bdsfid="95" p="">。

通达信多空主图指标公式

通达信多空主图指标公式

通达信多空主图指标公式
通达信多空主图指标公式
通达信多空主图指标是一种常用的技术指标,它可以帮助投资者判断股票市场的走势,以及未来的变化情况。

多空主图指标主要由收盘价和均线组成,它可以用来判断股票走势的短期内的走势趋势,以及未来可能出现的变化。

通达信多空主图指标的公式主要由收盘价和均线组成,其具体公式如下:
1、多头动能指标:DIFF=EMA(CLOSE,N1)-EMA(CLOSE,N2)
2、空头动能指标:DEA=EMA(DIFF,M1)
3、多空指标:MACD=(DIFF-DEA)*2
其中,N1、N2、M1分别表示收盘价的N1和N2日指数移动平均线,以及DIFF的M1日指数移动平均线。

通达信多空主图指标可以帮助投资者更好的判断股票市场的走势,及时调整投资组合,从而获得更多的投资收益。

通达信指标——多空布林线(主图)

通达信指标——多空布林线(主图)

{N10,P3}BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;UPR:BBI+P*STD(BBI,N);DWN:BBI-P*STD(BBI,N);DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);V AR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;V AR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;V AR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;V AR6:=(V AR3+V AR4+V AR5)/3;V AR7:=EMA(VAR6,5);ZB:=EMA(EMA(V AR3,5),5)*3, COLORSTICK;V AR8:=IF(VAR6<=-20,10,0);V AR9:=HHV(V AR8,10);V ARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2, , COLORFF00FF;D:=EMA(K,5), , COLORWHITE;J:=K*3-D*2, ,COLORYELLOW;V ARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, , COLORGREEN;DRAWTEXT(V AR8=10 AND FILTER(V AR8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;DRAWTEXT(V ARA=20,LOW*0.95,'底部') COLORYELLOW;V ARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;V ARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR11:=VARF < REF(V AR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,LOW*0.95,'大资金活动'),LINETHICK1,COLORFF00FF;V AR12:=(HIGH+LOW+CLOSE)/3;V AR13:=(V AR12-MA(V AR12,14))/(0.015*A VEDEV(V AR12,14));V AR14:=(V AR12-MA(V AR12,70))/(0.015*A VEDEV(V AR12,70));V AR15:=IF(VAR13>=150 AND V AR13 < 200 AND V AR14>=150 AND V AR14 < 200,10,0);V AR16:=IF(VAR13<=-150 AND V AR13>-200 AND V AR14<=-150 AND V AR14>-200,-10,V AR15);V AR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;V AR18:=100-ABS(V AR17);V AR19:=IF(VAR18 < 90,V AR18,100);V AR1A:=IF(VARE > 0,V ARE,0);V AR1B:=IF(VAR14>=200 AND V AR13>=150,15,IF(VAR14<=-200 AND V AR13<=-150,-15,V AR16))+60;V AR1C:=V AR1A>48 AND V AR1B>60 AND V AR19 < 100;DRAWTEXT(V AR1C AND COUNT(V AR1C,30)=1,LOW*0.95,'大笔成交') COLORWHITE;。

通达信博尔量化交易多空概率系统主图指标公式

通达信博尔量化交易多空概率系统主图指标公式

通达信博尔量化交易多空概率系统主图指标公式N:=4;M:=4;NK:=O#YEAR;NS:=C#YEAR;STICKLINE(NS>=NK,NS,NK,8,0),COLOR000099;STICKLINE(NS<NK,NS,NK,8,0),COLORLICYAN;QQ1:=VOL/((DHIGH-DLOW)*2-ABS(DCLOSE-DOPEN));主买:=IF(DCLOSE>DOPEN,QQ1*(DHIGH-DLOW),IF(DCLOSE<DOPEN,QQ1*((DHIGH-DOPEN)+(DCLOSE-DLOW)),VOL/2));主卖:=IF(DCLOSE>DOPEN,0-QQ1*((DHIGH-DCLOSE)+(DOPEN-DLOW)),IF(DCLOSE<DOPEN,0-QQ1*(DHIGH-DLOW),0-VOL/2));DD:=(主买+主卖)/10000;DDX1:=EMA(DD,60)*60;DDX2:=MA(DDX1,N);DDX3:=MA(DDX1,M);STICKLINE(DDX1<DDX3,H,L,0,0),COLORGREEN;STICKLINE(DDX1<DDX3,C,O,4,0),COLOR00B500;STICKLINE(DDX1<DDX3,C,O,3,0),COLOR00C600;STICKLINE(DDX1<DDX3,C,O,2,0),COLOR00D500;STICKLINE(DDX1<DDX3,C,O,1,0),COLOR00E600;STICKLINE(DDX1>DDX3,H,L,0,0),COLOR106FFF;STICKLINE(DDX1>DDX3,C,O,4,0),COLOR0000C8;STICKLINE(DDX1>DDX3,C,O,3,0),COLOR0000D7;STICKLINE(DDX1>DDX3,C,O,2,0),COLOR0000EA;STICKLINE(DDX1>DDX3,C,O,1,0),COLOR0000FF;STICKLINE(DDX1<DDX2 AND DDX1>DDX3,H,L,0,0),COLORFF5D10;STICKLINE(DDX1<DDX2 ANDDDX1>DDX3,C,O,4,0),COLORFF5D10;STICKLINE(DDX1<DDX2 AND DDX1>DDX3,C,O,3,0),COLORFF7710;STICKLINE(DDX1<DDX2 AND DDX1>DDX3,C,O,2,0),COLORFF9910;STICKLINE(DDX1>DDX2 AND DDX1<DDX3,H,L,0,0),COLORFF00FF;STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,4,0),COLORD000D0;STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,3,0),COLORE600E6;STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,2,0),COLORF900F9;STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,1,0),COLORFF09FF;JRH:=HHV(CLOSE,2);JRL:=LLV(CLOSE,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); {}VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));CLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));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);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);红色持股:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLOR00FF00,NODRAW;短买:=VAR19,COLOR33AACC,NODRAW;品红离场:=VAR1A,COLORFF99FF,NODRAW;急速超跌:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;CO:=(C-O);STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE;ZC:=DCLOSE#WEEK;ZO:=DOPEN#WEEK;ZH:=DHIGH#WEEK;ZL:=DLOW#WEEK;ZJ:=(ZC+ZO+ZH+ZL)/4;做空68:ZJ*(1+0.068),COLORRED;做空95:ZJ*(1+0.136),COLORBLUE;做多68:ZJ*(1-0.068),COLORGREEN;做多95:ZJ*(1-0.136),COLOR8409FF;。

通达信指标公式源码 多空动力指标

通达信指标公式源码 多空动力指标

JJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);QJJ:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF (CLOSE>OPEN,-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,-QJJ*(HIGH-LOW),-VOL/2)); HSL:=XVL/20/1.15;攻击流量:=HSL*0.55+REF(HSL,1)*0.33+REF(HSL,2)*0.22;STICKLINE(HSL*0.4>=0,HSL*0.4*1.5,0,0,0),COLOR0000FF;STICKLINE(HSL*0.4<0,HSL*0.4*1.5,0,0,0),COLORFFBE00;GJJ:=EMA(攻击流量,8);今日:EMA(攻击流量,3),NODRAW;STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,3,0),COLOR000033;STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,2.4,0),COLOR000055;STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,1.6,0),COLOR000077;STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.8,0),COLOR000099;STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.4,0),COLOR0000BB;STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.2,0),COLOR0000DD;STICKLINE(今日>=REF(今日,0) AND 今日>0,0,今日,0.05,0),COLOR0000FF;STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,3,0),COLORBB3300;STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,2.4,0),COLORFF5500;STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,1.6,0),COLORFF7700;STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.8,0),COLORFF9900;STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.4,0),COLORFFBB00;STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.2,0),COLORFFDD00;STICKLINE(今日<=REF(今日,0) AND 今日<0,0,今日,0.05,0),COLORFFFF00;昨日:REF(今日,1),NODRAW,COLOR6633FF;前日:REF(今日,2),NODRAW,COLORFF00FF;三日前:REF(今日,3),NODRAW,COLOR00DDFF;ZJLL:=REF(今日,1);QZJJ:=(今日-ZJLL)/ZJLL*100;增幅%:IF(今日>0 AND ZJLL<0,ABS(QZJJ),IF(今日<0 AND ZJLL<0 AND 今日<ZJLL,-QZJJ,QZJJ)),NODRAW;周流量:SUM(今日,5),NODRAW;BB:=REF(周流量,1);ZQZJJ:=(周流量-BB)/BB*100;周增幅%:IF(周流量>0 AND BB<0,ABS(ZQZJJ),IF(周流量<0 AND BB<0 AND 周流量<BB,-ZQZJJ,ZQZJJ)),NODRAW;多方力度:HSL/1000,NODRAW;动力线:GJJ,COLOR00FFFF;趋势线:=MA((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,2)NODRAW;超卖区:(趋势线<-20)NODRAW;DRAWICON(趋势线<-20,0,41);ZDZ:=CONST(HHV(HSL*0.4*1.5,120));ZXZ:=CONST(LLV(HSL*0.4*1.5,120));DFX:=(ZDZ-ZXZ)/6;LWS:=CURRBARSCOUNT;DRAWTEXT(LWS=110,ZDZ,'说明:'),COLORFFFFFF;DRAWTEXT(LWS=100,ZDZ,'红柱=多方'),COLOR0000FF;DRAWTEXT(LWS=90,ZDZ,'蓝柱=空方'),COLORFFFF00;DRAWTEXT(LWS=80,ZDZ,'影线=方向'),COLOR00FFFF;。

通达信指标公式源码 筹码多空线

通达信指标公式源码 筹码多空线
多空6日:MEMA(多空,6),COLORYELLOW,LINETHICK1;
{换手率}
换手:100*VOL/(FINANCE(7)/100),NODRAW;
换手5日:MA(换手,5),NODRAW;
换手10日:MA(换手,10),NODRAW;
换手20日:MA(换手,20),NODRAW;
STICKLINE(浮筹比例<10,10,浮筹比例,6,0),COLORRED;
{筹码多空线}
开盘:=WINNER(O)*100,NODRAW;
收盘:=WINNER(C)*100,NODRAW;
最高:=WINNER(H)*100,NODRAW;
最低:=WINNER(L)*100,NODRAW;
DRAWKLINE(最高,开盘,最低,收盘);{画筹码K线}
获利比例%:收盘,NODRAW;
MID:=(3*收盘+最低+开盘+最高)/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*REFF(MID,20))/210,LINETHICK1,COLORWHITE;

通达信指标公式源码 多空压力线主图指标

通达信指标公式源码 多空压力线主图指标

多空压力线主图指标源码通达信贴图用法:黄托底买进,绿压顶卖出,简单实用,一目了然。

来自老师的源码,初来驾到,喜欢的点个赞,不喜勿喷。

V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;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);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);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORWHITE;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1),MA5,DRAWNULL),LINETHICK1,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1),MA5,DRAWNULL),LINETHICK1,COLORGREEN;DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X, 5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*R EF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*RE F(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK1;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLORBLUE,LINETHICK2;A:=(MA5>多空线);IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT;A1:=(MA5<多空线);IF(A1,多空线,DRAWNULL),COLORWHITE;A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30 ))/(HHV(H,30)-LLV(L,30))*100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,2)-EMA(CLOSE,13);{12,26,改成2,13,}A6:=EMA(A5,9);下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH, 3),1),LINETHICK2;STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,; DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));。

通达信多空量指标

通达信多空量指标

通达信多空量指标VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2)))); 买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,3,0),COLOR33FF33;量比:=(VOL / MA(VOL,5));JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);神比:=(买盘/ VAR30);鬼比:=(卖盘/ VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) >MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) <MA(CLOSE,30)));VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);DRAWTEXT(((DATE > 700101) AND CROSS(84,VARE)),HIGH,'■卖出'),COLORF2A3A4;VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,买盘) + 买盘) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,买盘) + 买盘) / 2); VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,买盘) + 买盘) / 2); VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,卖盘) + 卖盘) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,3,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,3,1),COLOR00FF00;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,2,0),COLOR00FFFF;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,2,0),COLORFF0000;STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,2,0),COLORFFFFFF;STICKLINE(((VAR7 > VAR6) AND (VAR7 >VAR8)),0,VAR7,2,0),COLORFF00FF;STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,1,0);STICKLINE((买盘> 0),买盘,0,1,0),COLOR0000FF;上攻均量:=MA(买盘,JY1);下攻均量:=MA(卖盘,JY1);DRAWTEXT(((((((((VAR7 > VAR6) AND (VARA > 2)) AND (VAR9 > VAR8)) AND (CLOSE > MA(CLOSE,5))) AND (CLOSE > MA(CLOSE,30))) AND (HIGH >MA(CLOSE,60))) AND (VOL > MA(VOL,5))) AND (VAR7 >=MA(VOL,5))),VOL,'▼出货');DRAWTEXT(((((((VAR8 > VAR6) AND (VAR8 > VAR7)) AND (VARA < (0 - 2))) AND (CLOSE < MA(CLOSE,30))) AND (VAR8 < (MA(VOL,5) / 2))) AND(MA(VOL,5) < MA(VOL,10))),VOL,'●低进');DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB)),VOL,'◆强势');DRAWTEXT((((((量比> 1) AND ((买盘/ 三日上攻) > 1.58)) AND IF((三日上攻> 上攻均量),(三日上攻> 三日下攻),(三日上攻> REF(三日上攻,1)))) AND (三日下攻< REF(三日下攻,1))) AND ((((CLOSE - REF(CLOSE,3)) /REF(CLOSE,3)) * 100) < 14)),(买盘* 1.3),'★参与'),COLOR99FF00;换手率:((VOL / CAPITAL) * 100);DRAWTEXT((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率> 1)),(VOL * 1.1),'●量变'),COLOR00FFFF;VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=MA(VAR1,7);VAR3:=VAR2-MA(VAR1,7/2)<0;VAR4:=VAR2-MA(VAR1,7/2)>0;VAR5:=BARSLAST(VAR3);VAR6:=0-BARSLAST(VAR4);VAR7:=IF(VAR3<=0,VAR5,VAR6);上买下卖: (-1)*VAR7, VOLSTICK;强弱分界: 0, DOTLINE;。

多空分时通达信指标公式源码

多空分时通达信指标公式源码

多空分时通达信指标公式源码
多空分时指标(DMI)是一种技术分析指标,用于判断股价的上涨或下跌趋势的强弱,以及市场的多头或空头力量的对比。

下面是通达信的多空分时指标公式源码。

公式1:上升动量值(DM+)
DM+=最高价-前一日最高价
公式2:下降动量值(DM-)
DM-=前一日最低价-最低价
公式3:真实波幅(TR)
TR=MAX(MAX(最高价-最低价,ABS(最高价-前一日收盘价)),ABS(最低价-前一日收盘价))
公式4:上升方向指标(+DI)
+DI=N日内DM+的总和/N日内TR的总和*100
公式5:下降方向指标(-DI)
-DI=N日内DM-的总和/N日内TR的总和*100
公式6:相对方向指标(DX)
DX=ABS(+DI-(-DI))/(+DI+(-DI))*100
公式7:平均动向指标(ADX)
ADX=MA(DX,M)
其中,N为计算DMI指标的周期,M为计算ADX指标的周期。

上述源码为通达信的多空分时指标公式,使用该源码可以在通达信软件上计算多空分时指标。

需要注意的是,该源码中的计算方式可能与其他软件中的指标计算方式存在差异,请根据实际需求进行相应的调整。

通达信多空变色K线主图指标公式明阳程序化

通达信多空变色K线主图指标公式明阳程序化

通达信多空变色K线主图指标公式明阳程序化M1:=13;M2:=5;MA1:MA(CLOSE,M1);{设定均线}MA2:=MA(CLOSE,M2);{设定均线}DRAWKLINE(H,O,L,C);{写K线}STICKLINE(MA1>=REF(MA1,1),H,L,0,0),COLOR0000FF;{均线上行,标记影线}STICKLINE(MA1>=REF(MA1,1) AND (C>=O),O,C,3,1),COLOR0000FF;{均线上行,标记阳线}STICKLINE(MA1>=REF(MA1,1)AND (C<=O),O,C,3,0),COLOR0000FF;{均线上行,标记阴线}STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) ANDCOUNT(MA1>=REF(MA1,1),20)>13,H,L,0,0),COLOR00FFFF;{做顶,标记影线}STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C>=O),O,C,3,1),COLOR00FFFF;{做顶,标记阳线}STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C<=O),O,C,3,0),COLOR00FFFF;{做顶,标记阴线}STICKLINE(MA1<REF(MA1,1),H,L,0,0),COLOR00FF00;{均线下行,标记影线}STICKLINE(MA1<REF(MA1,1) AND (C>=O),O,C,3,1),COLOR00FF00;{均线下行,标记阳线}STICKLINE(MA1<REF(MA1,1) AND (C<=O),O,C,3,0),COLOR00FF00;{均线下行,标记阴线};STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) ANDCOUNT(MA1<=REF(MA1,1),30)>15,H,L,0,0),COLORFF00FF;{做底,标记影线}STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C>=O),O,C,3,1),COLORFF00FF;{做底,标记阳线}STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C<=O),O,C,3,0),COLORFF00FF;{做底,标记阴线};。

通达信信号主图指标公式(带分笔分段)

通达信信号主图指标公式(带分笔分段)

通达信信号主图指标公式(带分笔分段)通达信信号主图指标公式(带分笔分段)N:=10;N1:=5;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:=CROSS(RSI,11);{DRAWTEXT(低吸,L,'★'),COLORWHITE;}DRAWTEXT(低吸,L-0.12,'低吸'),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;DRAWTEXT(FILTER(VARB,6),L-0.14,'坚决买进'),COLORFF00FF;{DRAWTEXT(FILTER(VARB,6),L,'★'),COLORFF00FF;}VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);{DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),L,'★'),COLORYELLOW;}DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),L-0.14,'出击'),COLORYELLOW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);多方趋势:=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);天线:=78.89;STICKLINE(CROSS(天线,多方趋势),H*1.02,H*1.00,6,0),COLOR00FF00;DRAWTEXT(CROSS(天线,多方趋势),H*1.04,'逃'),COLOR00FF00;A1:=REF(H,N)=HHV(H,2*N+1);B:=FILTER(A1,N);D:=BACKSET(B,N+1);HD:=FILTER(D,N);A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);DD2:=BACKSET(B2,N+1);LD:=FILTER(DD2,N);STICKLINE(REF(HD,1),REF(H,1),REF(H,1),18,0),COLOR00FF00, LINETHICK3;STICKLINE(REF(LD,1),REF(L,1),REF(L,1),18,0),COLOR0000FF,LI NETHICK3;DRAWTEXT(REF(LD,1),REF(L,1)-0.01,'●进'),COLOR0000FF;DRAWTEXT(REF(HD,1),REF(H,1)+0.05,'▲跑'),COLOR00FF00;短期:= MA(AMOUNT/VOL/100,22.5);中期:= MA(AMOUNT/VOL/100,44);长期:= MA(AMOUNT/VOL/100,118);VAR2:=EMA(EMA(AMOUNT/VOL/100,N1)*1.062,N1)*1.062;VAR3:=EMA(EMA(AMOUNT/VOL/100,N1)*0.938,N1)*0.938;{DRAWTEXT(CLOSE>VAR2,CLOSE,'●短卖'),COLOR00FF00;}{DRAWTEXT(CLOSE<VAR3,CLOSE,'●短买'),COLORRED;}STICKLINE(CLOSE>短期,短期,短期,2,0),COLOR00FF00;STICKLINE(短期>CLOSE,短期,短期,2,0),COLORFFCCCC;STICKLINE(短期>CLOSE AND 中期>CLOSE,短期,短期,2,0),COLOR0099FF;VAR4:=CLOSE>短期 AND ABS(短期-长期<=1) AND CROSS(短期,中期);BRSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;BK:=SMA(BRSV,3,1);BD:=SMA(BK,3,1);BJ:=3*BK-2*BD;X1:=REF(H,1)-REF(H,2)>=REF(H,1)*1.03;X2:=CLOSE/OPEN>1.05 AND C-REF(C,1)>=X1;X3:=X2+REF(C,1);DRAWTEXT(X2 AND X3 AND BJ>80,H+0.15,'顶'),COLOR00FF00;{DRAWTEXT(X2 AND X3 ANDBJ>80,H+0.09,'●'),COLORGREEN;};KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF(LOW=LLV(LOW,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0ANDKU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0ANDKD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));HV:=H>UL AND H>REF(H,1) ;LV:=L<DL AND L<REF(L,1) ;GP:=BARSLAST(HV);DP:=BARSLAST(LV);IP:=IF(GP=0,DP,GP)>3;HV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV));LV1:=LV AND IP AND L<=LLV(L,BARSLAST(HV));DRAWLINE(LV1,LOW,HV1,HIGH,0),COLORYELLOW,LINETHICK1;DRAWLINE(HV1,HIGH,LV1,LOW,0),COLORYELLOW,LINETHICK1;。

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