【股票指标公式下载】-【通达信】动力线(强弱分界、底部、预警、顶部、走势、主力线)

合集下载

【股票指标公式下载】-【通达信】顶底趋势(顶部、底部、判断、趋势、主力进场)

【股票指标公式下载】-【通达信】顶底趋势(顶部、底部、判断、趋势、主力进场)

【通达信】顶底趋势(顶部、底部、判断、趋势、主力进场)-指标公式源码趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1) ,COL ORGREEN;STICKLINE(趋势>50,趋势,50,4,0),COLOR32329B;STICKLINE(50>趋势,趋势,50,4,0),COLOR326400;IF(趋势>50, 趋势,DRAWNULL), COLORRED;RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);DEA:=EMA(DIFF,6);MACD:=2*(DIFF-DEA);转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);STICKLINE(转点=1,50,50,6,0),COLORYELLOW;STICKLINE(转点=0,50,50,6,0),COLORCYAN;顶部:90,COLORYELLOW;底部:10,COLORCYAN;判断:SMA(趋势,3,1),COLORFF00FF, LINETHICK2;IF( 趋势>判断,判断,DRAWNULL), COLORYELLOW, LINETHICK2;IF( 趋势<判断,判断,DRAWNULL) ,COLORFFF000,LINETHICK2;DRAWICON(CROSS(趋势,判断),判断,1);DRAWICON(CROSS(趋势,顶部),顶部,2);LC:= REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;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;短线1: IF(VAR6>45,VAR6-45,0),COLORA6B8C1;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)/999*VAR7Q; VR2:=REF(LOW,1);VR3:=SMA(ABS(LOW-VR2),3,1)/SMA(MAX(LOW-VR2,0),3,1)*100;VR4:=EMA(IF(CLOSE*1.3,VR3*10,VR3/10),3);VR5:=LLV(LOW,30);VR6:=HHV(VR4,30);VR7:=IF(MA(CLOSE,58),1,0);VR8:=EMA(IF(LOW<=VR5,(VR4+VR6*2)/2,0),3)/618*VR7;VR9:=IF(VR8>100,100,VR8);主力进场:STICKLINE(VR9>-150,0,VR9,3,0), , COLORFF00FF;洗盘:IF(VR9<REF(VR9,1),VR9,0),COLORGREEN,NODRAW;STICKLINE(VR9<REF(VR9,1),0,VR9,3,0),COLORGREEN;短线获利:STICKLINE(REF("KDJ.J",1)<0 AND"KDJ.J">0,60,25,2,0),COLORYELLOW;VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);逃顶:=CROSS(82,RSI);STICKLINE( 逃顶,逃顶,20,5,0),COLORFF5500;STICKLINE( 逃顶,逃顶,30,3,0),COLORFF8800;STICKLINE( 逃顶,逃顶,30,2,0),COLORFFAA00;STICKLINE( 逃顶,逃顶,30,1,0),COLORFFCC00;D1:=(C+L+H)/3;D2:=EMA(D1,6);D3:=EMA(D2,5);BBUY:=CROSS(D2,D3);风险区:80,COLORFF85FF;安全区:20,COLORYELLOW,POINTDOT;天线:100,COLORFFFF00;强弱线:50,COLORGREEN,POINTDOT;DRAWICON(BBUY,(LOW *1),1);VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*10 0;DRAWICON(CROSS(82,VARR1),HIGH,15);DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;MAV:=(2*C+H+L)/4;VAR9:=LLV(LOW,34);VAR7:=HHV(HIGH,34);SK:= EMA((MAV-VAR9)/(VAR7-VAR9)*100,13);SD: EMA(0.667*REF(SK,1)+0.333*SK,2);高抛:80, POINTDOT;低吸:20, POINTDOT;强弱分界:50, POINTDOT;DRAWTEXT(CROSS(SD,16),低吸,'●主力'),COLORF0FF00,LINETHICK3;【通达信】顶底趋势(顶部、底部、判断、趋势、主力进场)-指标公式效果图(文档来源:若水财经社区)。

通达信画线指标公式

通达信画线指标公式

通达信画线指标公式
通达信是一种常用的股票交易软件,它支持自定义指标和画线指标。

以下是一些通达信中常用的画线指标公式示例:
移动平均线(MA): MA(CLOSE, N):计算收盘价CLOSE的N日简单移动平均线。

指数移动平均线(EMA): EMA(CLOSE, N):计算收盘价CLOSE 的N日指数移动平均线。

BOLL指标: BOLL(CLOSE, N, P):计算收盘价CLOSE的N日布林带指标,P为标准差倍数。

MACD指标: DIF: EMA(CLOSE, SHORT) - EMA(CLOSE, LONG) DEA: EMA(DIF, MID) MACD: (DIF - DEA) * 2
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
这些公式只是通达信中常用的画线指标公式示例,实际上通达信支持更多的指标公式和定制化功能。

如果你有特定的指标需求,可以根据自己的需求进行进一步的研究和开发。

需要注意的是,通达信软件使用一种特定的编程语言来编写自定义指标公式,称为通达信公式语言(TDX Formula)。

如果你想要进一步学习和开发通达信指标,可以查阅相关的编程手册和文档。

通达信指标公式源码资金强弱

通达信指标公式源码资金强弱

1.给你明确的“操作决策”`“中线决策”`“短线止赢价”和“短线买入价”指导;2.给你明确的当日资金情况,机构游资中户及散户今日进出资金情况,明白今日的流入和流出资金,方便你当日作出正确的决策!3.安装方式:安装环境是通达信,不要用通金魔方,先安装操盘线(是被引用的主图公式);再安装当日资金方程;附一下图不懂的看图操作操盘线主图指标源码:M1:=5;M2:=0;M3:=0;叠加指数:=0;BS点信号:=1;短线信号:=5;三线开关:=1;自动C:=INDEXC;自动H:=INDEXH;自动L:=INDEXL;自动O:=INDEXO;大盘低:=CONST(LLV(自动L,叠加指数));大盘高:=CONST(HHV(自动H,叠加指数));大盘差:=大盘高-大盘低;当前低:=CONST(LLV(L,叠加指数));当前高:=CONST(HHV(H,叠加指数));当前差:=当前高-当前低;比:=当前差/大盘差;变C:=当前低+(自动C-大盘低)*比,NODRAW;变H:=当前低+(自动H-大盘低)*比;变L:=当前低+(自动L-大盘低)*比;变O:=当前低+(自动O-大盘低)*比;自动HYC:=HY_INDEXC;自动HYH:=HY_INDEXH;自动HYL:=HY_INDEXL;自动HYO:=HY_INDEXO;大盘低HY:=CONST(LLV(自动HYL,叠加指数));大盘高HY:=CONST(HHV(自动HYH,叠加指数));大盘差HY:=大盘高HY-大盘低HY;当前低HY:=CONST(LLV(L,叠加指数));当前高HY:=CONST(HHV(H,叠加指数));当前差HY:=当前高HY-当前低HY;比HY:=当前差HY/大盘差HY;变HYC:=当前低HY+(自动HYC-大盘低HY)*比HY,NODRAW;变HYH:=当前低HY+(自动HYH-大盘低HY)*比HY;变HYL:=当前低HY+(自动HYL-大盘低HY)*比HY;变HYO:=当前低HY+(自动HYO-大盘低HY)*比HY;现价:C,NODRAW;MA1:MA(C,M1)COLORWHITE;MA2:MA(C,M2)COLORLIGREEN;MA3:MA(C,M3)COLORLIBLUE;趋势:((MA(C,5)+MA(C,10)+MA(C,15)+MA(C,20))/4),LINETHICK2,COLORGREEN;IF(趋势>REF(趋势,1),趋势,DRAWNULL),LINETHICK2,COLORRED;成本:((COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5)*三线开关,LINETHICK2,COLORWHITE;生命:EMA(C,55)*三线开关, CIRCLEDOT,COLORYELLOW;牛熊:EMA(C,265)*三线开关,CIRCLEDOT,COLORLIGREEN;JRH:=HHV(C,2);JRL:=LLV(C,2);VAR101:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR102:=(REF(VAR101,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR103:=(REF(VAR102,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR104:=(REF(VAR103,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR105:=(REF(VAR104,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR106:=(REF(VAR105,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR107:=(REF(VAR106,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR108:=(REF(VAR107,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR109:=(REF(VAR108,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR109,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)); VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR101);VAR1A:=((REF(VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW; 离场:=IF(红色持股,JRL,DRAWNULL);明离场价:离场,COLORFF99FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);离场价:=REF(离场,1),COLORMAGENTA,NODRAW;明短买价:进,COLOR33AACC,NODRAW;短买价:=REF(明短买价,1),COLORYELLOW,NODRAW;VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) ORVAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ AND CURRBARSCOUNT<短线信号);VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ AND CURRBARSCOUNT<短线信号);AAK:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;MA7:=MA(CLOSE,1)*BS点信号;转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+ 2+1);转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2 +1);BB2:=IF(C>REF(转强,1),1,IF(C<REF(转弱,1),-1,0));DD2:=BARSLAST(NOT(BB2=0));B:=IF(BB2=0,REF(BB2,DD2),BB2);中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6))*BS点信号;持股:BARSLASTCOUNT(MA7>中短),COLORRED,NODRAW;持币:BARSLASTCOUNT(MA7<中短),COLORGREEN,NODRAW;短买:IF(VAR19MZ,1,0),COLORYELLOW,NODRAW;生命线多头:=生命>REF(生命,1);生命上:BARSLASTCOUNT(生命线多头>0),COLORYELLOW,NODRAW;牛熊线多头:=牛熊>REF(牛熊,1);牛熊上:BARSLASTCOUNT(牛熊线多头>0),COLORLIGREEN,NODRAW;成本线多头:=成本>REF(成本,1);成本上:BARSLASTCOUNT(成本线多头>0),COLORWHITE,NODRAW;SA:=MAX(MAX(趋势,成本),MAX(生命,牛熊));SB:=MIN(MIN(趋势,成本),MIN(生命,牛熊));粘合:100*(SA-SB)/SB,COLORWHITE,NODRAW;三日涨幅:=(C-REF(C,3))/REF(C,3)*100;十日涨幅:=(C-REF(C,10))/REF(C,10)*100;牛牛:BARSLASTCOUNT(生命上>0 AND 牛熊上>0 AND 成本上>0 AND 粘合<10 AND 持股>0 AND 三日涨幅<15 AND 十日涨幅<30),COLORRED,NODRAW;DRAWTEXT(ISLASTBAR,成本,'←平均成本'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(AAK)>0,0.02,0,0,STRCAT('主力护盘价=',CON2STR(AAK,2)))COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(短买价)>0,0.02,0.1,0,STRCAT('短线买入价=',CON2STR(短买价,2)))COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(离场价)>0,0.02,0.1,0,STRCAT('短线止赢价= ',CON2STR(离场价,2)))COLORGREEN;STICKLINE(CURRBARSCOUNT<=叠加指数,变H,变L,0,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加指数,变O,变C,2,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加指数AND 变C>=变O,变O,变C,2,1),COLORAAAAAA;STICKLINE(CURRBARSCOUNT<=叠加指数,变HYH,变HYL,0,0),COLORYELLOW; STICKLINE(CURRBARSCOUNT<=叠加指数,变HYO,变HYC,2,0),COLORYELLOW; STICKLINE(CURRBARSCOUNT<=叠加指数AND 变HYC>=变HYO,变HYO,变HYC,2,1),COLORYELLOW;STICKLINE(MA7<中短,LOW,HIGH,0,1),COLORCYAN;STICKLINE(MA7>中短,LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(MA7<中短)),(CLOSE-0.003),OPEN,3.1,0),COLORLIBLUE; STICKLINE(((OPEN<CLOSE)AND(MA7<中短)),CLOSE,OPEN,3.1,1),COLORCYAN; STICKLINE(((OPEN>CLOSE)AND(MA7>中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED; STICKLINE(((OPEN<CLOSE)AND(MA7>中短)),OPEN,CLOSE,3.1,1),COLORRED; DRAWICON(CROSS(MA7,中短),L,7);DRAWICON(CROSS(中短,MA7),H,8);DRAWICON(VAR19MZ,L,1);DRAWICON(VAR1AMZ,H,2);当日资金方程式副图指标源码:超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;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S)NODRAW;超大单:=(超B)-(超S);大单:=(大B)-(大S);中单:=(中B)-(中S);小单:=(小B)-(小S);DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;流入:=ABS(超B+大B+中B+小B)*1000/VOL;流出:=ABS(超S+大S+中S+小S)*1000/VOL;净流买比:=流入*100/(流入+流出);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;大宗进限制:=IF((超B+大B)=0,0,大宗进),NODRAW;大宗出限制:=IF((超S+大S)=0,0,大宗出),NODRAW;非大宗进限制:=IF(中B+小B=0,0,非大宗进),NODRAW;非大宗出限制:=IF(中S+小S=0,0,非大宗出),NODRAW;资金流向买:=大宗进限制+非大宗进限制;资金流向卖:=大宗出限制+非大宗出限制;{ 当日}DRAWRECTREL(0,0,990,999,IF(120,RGB(10,0,0),0));DRAWRECTREL(0,330,990,390,RGB(10,0,0));DRAWRECTREL(10,325,983,8,RGB(188,188,188));DRAWRECTREL(50,555,950,530,RGB(0,140,0));DRAWRECTREL(50,555,50+CONST(净流买比*900/100),530,RGB(140,0,0)); DRAWTEXT_FIX(1,0.05,0.4,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比,2)),'%')),COLORYELLOW;DRAWRECTREL(500,555,500,530,RGB(250,250,0));DRAWRECTREL(60,CONST(800-IF((超大单)>0,(ABS(超大单)*250/DAZHI),0)),200,800,RGB(128,0,0));DRAWRECTREL(60,800,200,CONST(800+IF((超大单)<0,(ABS(超大单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(300,CONST(800-IF((大单)>0,(ABS(大单)*250/DAZHI),0)),430,800,RGB(128,0,0));DRAWRECTREL(300,800,430,CONST(800+IF((大单)<0,(ABS(大单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(600,CONST(800-IF((中单)>0,(ABS(中单)*250/DAZHI),0)),730,800,RGB(128,0,0));DRAWRECTREL(600,800,730,CONST(800+IF((中单)<0,(ABS(中单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(820,CONST(800-IF((小单)>0,(ABS(小单)*250/DAZHI),0)),950,800,RGB(128,0,0));DRAWRECTREL(820,800,950,CONST(800+IF((小单)<0,(ABS(小单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(60,799.8,950,800.2,RGB(255,0,0));DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)>0,0.08,0.900,0,'机构'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)<0,0.08,0.900,0,'机构'),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.08,0.900,0,'机构'),COLOR80FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)>0,0.32,0.900,0,'游资'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)<0,0.32,0.900,0,'游资'),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.32,0.900,0,'游资'),COLOR80FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)>0,0.62,0.900,0,'中户'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)<0,0.62,0.900,0,'中户'),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)=0,0.62,0.900,0,'中户'),COLOR80FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)>0,0.85,0.900,0,'散户'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)<0,0.85,0.900,0,'散户'),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)=0,0.85,0.900,0,'散户'),COLOR80FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)>0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)<0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),' ')),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)>0,0.25,0.6,0,STRCAT(STRCAT('',CON2STR(大单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)<0,0.25,0.6,0,STRCAT(STRCAT('',CON2STR(大单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.25,0.6,0,STRCAT(STRCAT('',CON2STR(大单,1)),' ')),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)>0,0.55,0.6,0,STRCAT(STRCAT('',CON2STR(中单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)<0,0.55,0.6,0,STRCAT(STRCAT('',CON2STR(中单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)>0,0.80,0.6,0,STRCAT(STRCAT('',CON2STR(小单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)<0,0.80,0.6,0,STRCAT(STRCAT('',CON2STR(小单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入)>0,0.93,0.4,1,STRCAT('当日净买:',STRCAT(CON2STR(净流入,1),'万'))) COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入)<0,0.93,0.4,1,STRCAT('当日净买:',STRCAT(CON2STR(净流入,1),'万'))) COLOR00FF00;DRAWTEXT_FIX(1,0.05,0.47,0,STRCAT(STRCAT('买入额:',CON2STR(资金流向买,1)),'万')),COLOR0000FF;DRAWTEXT_FIX(1,0.50,0.47,0,STRCAT(STRCAT('卖出额:',CON2STR(资金流向卖,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.00,0.34,0,'当日资金方程'),COLORWHITE;短买价:="操盘线.明短买价#DAY";离场价:="操盘线.明离场价#DAY";中线决策:="操盘线.持股#DAY";多方力度:=(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SM A((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1));空方力度:=100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55));操作决策:=多方力度>空方力度;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(操作决策)>0,0.15,0.05,0,STRCAT('【操作决策】===','☆波段操作☆'))COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(操作决策)=0,0.15,0.05,0,STRCAT('【操作决策】===','★轻仓短线★'))COLORBLUE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中线决策)>0,0.15,0.15,0,STRCAT('【中线决策】===','☆持股待涨☆'))COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中线决策)=0,0.15,0.15,0,STRCAT('【中线决策】===','★持币观望★'))COLORBLUE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(短买价)>0,0.15,0.25,0,STRCAT('【短线买入价】===★',STRCAT(CON2STR(短买价,2),'元★')))COLORBLUE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(离场价)>0,0.15,0.25,0,STRCAT('【短线止赢价】===☆',STRCAT(CON2STR(离场价,2),'元☆')))COLORRED;。

通达信指标公式大全

通达信指标公式大全

通达信指标公式大全:1.主力大单指标公式ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,VOL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*100,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);2.主力控盘指标公式V AR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR5:=(((V AR2 + (2 * V AR3)) + (3 * V AR4)) / 6);V AR6:=MA(V AR5,3);开始控盘:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF;V AR1:=EMA(EMA(CLOSE,3),1);控盘:=(V AR1-REF(V AR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;无控盘:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE;高度控盘:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货:0,COLOR00FF00;3.通达信资金进出分时指标公式(C,1),C*V,0),FROMOPEN),STICK,COLORRED;资金流出:-SUM(IF(C<REF(C,1),C*V,0),FROMOPEN),STICK,COLOR00FF00;资金差:资金流入+资金流出,COLORYELLOW;4.通达信做T+0的分时公式MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};5.通达信超准分时图指标公式BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*1 00,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARS COUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));底线:1.003,COLORRED,LINETHICK2;高线:1.03,COLORRED,LINETHICK3;黄色起动线:EXPMA((DCLOSE/VBNH),20),COLORYELLOW,POINTDOT;绿色散户线:EXPMA((DCLOSE/VBNH),120),COLORGREEN,LINETHICK2;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),EXPMA((DCLOSE/ VBNH),60)*1,1);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),EXPMA((DCLOSE/VBNH),60)),EXPMA((DCLOSE/ VBNH),120)*1,2);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02+0.005,18);STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,1.025,4,0), , COLORMAGENTA; STICKLINE(EXPMA(C,10)>EXPMA(C,60) ,1.03,1.034,1.0,0),COLORRED;STICKLINE(EXPMA(C,10)<EXPMA(C,60) ,1.03,1.025,1.0,0),COLORGREEN;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORWHITE; STICKLINE(EXPMA((DCLOSE/VBNH),120)>1.003 ,1.03,1.039,1.0,0),COLORMAGENTA; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.028,'买进'),COLORWHITE; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.036,'观察分时量 '),COLORWHITE; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.003*1,13);6.通达信观察分时指标公式BG:=IF(DATE<=1150530,1,0);GH:=BETWEEN((DCLOSE*BG)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOU NT((DCLOSE*BG)))),1.05,0.95);VB:=IF(GH=0,MA((DCLOSE*BG),BARSCOUNT((DCLOSE*BG))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BG)))));中线:1,COLORBLUE,LINETHICK2;快趋势线:EXPMA((DCLOSE/VB),21),COLORYELLOW,,LINETHICK1;慢趋势线:EXPMA((DCLOSE/VB),54),COLORGREEN,LINETHICK1;DRAWICON(CROSS(快趋势线,中线),快趋势线,1);DRAWICON(CROSS(慢趋势线,中线) AND (快趋势线>中线),中线-0.002,15);DRAWTEXT(CROSS(EXPMA((DCLOSE/VB),20),1),快趋势线-0.0025,'涨'),COLORRED; DRAWTEXT(CROSS(快趋势线,中线),快趋势线-0.0055,'买进'),COLORYELLOW;DRAWICON(CROSS(快趋势线,慢趋势线),慢趋势线,13);STICKLINE(快趋势线>中线 AND 快趋势线>REF(快趋势线,1) AND 快趋势线>慢趋势线,快趋势线,快趋势线+0.0015,1,0),COLORMAGENTA;DRAWTEXT(CROSS(中线,快趋势线),中线,'注意'),COLORWHITE;DRAWICON(CROSS(慢趋势线,快趋势线),慢趋势线,2);V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);见顶清仓:= STICKLINE(趋势线>=90 AND V12,中线,快趋势线,2,0),COLORCYAN; DRAWICON(CCC,快趋势线,12);DRAWICON(BB,快趋势线,23);DRAWTEXT (BB,快趋势线,'补仓'),COLORLIRED;7.通达信分时买卖力道指标公式A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR=1),((100*A2)/A6),0);A8:=((IF((ISLASTBAR=1),((100*A3)/A6),0)));A9:=((IF((ISLASTBAR=1),((100*A4)/A6),0)));A10:=((IF((ISLASTBAR=1),((100*A5)/A6),0)));机构买盘:(A2),LINETHICK0;机构卖盘:(A3),LINETHICK0;散户买盘:(A4),LINETHICK0;散户卖盘:(A5),LINETHICK0;STICKLINE(机构买盘>0 AND 机构买盘>=机构卖盘 AND 机构买盘>=REF(机构买盘,1),20,20+100,1,0),COLORRED;STICKLINE(机构卖盘>0 AND 机构卖盘>=机构买盘 AND 机构卖盘>=REF(机构卖盘,1),20,20+100,1,0),COLORWHITE;STICKLINE(散户买盘>0 AND 散户买盘>=散户卖盘 AND 散户买盘>=REF(散户买盘,1),-20,-20-100,1,0),COLORLIMAGENTA;STICKLINE(散户卖盘>0 AND 散户卖盘>=散户买盘 AND 散户卖盘>=REF(散户卖盘,1),-20,-20-100,1,0),COLORCYAN;VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*2000;买卖力道: SMA(VAR2,3,1),COLORLIGRAY;VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),V OL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-L OW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3 *(HIGH-OPEN+CLOSE-LOW),VOL/2)));VAR5:=AMOUNT/(100*VOL);VAR6:=MA(VAR5,40);VAR7:=100*(CLOSE-VAR6)/VAR6;底部追击:= IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,300,200),COLORGREEN; STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,1200,200,10,0) , COLORGREEN; VAR8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;VAR9:=SMA(VAR8,3,1);VARA:=SMA(VAR9,3,1);D: SMA(VARA,5,1)*20, COLORCYAN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);买入股票:= (趋势线<=13 AND V12>13),COLORRED;CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);清仓:=FILTER(趋势线>=90 AND V12 AND CROSS(D,买卖力道),5),COLORYELLOW;卖出区: 清仓+1800,COLORYELLOW;中:(0+卖出区)/2, COLORGREEN;{股旁网-股票公式网站 }STICKLINE(买卖力道>=中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORMAGENTA;STICKLINE(买卖力道>=中 AND 买卖力道< REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORBROWN;STICKLINE(买卖力道<中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORGREEN;STICKLINE(买卖力道<中 AND 买卖力道< REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORBLUE;DRAWICON(买入股票,中,15);DRAWTEXT (BB,0,'买股'),COLORYELLOW;DRAWTEXT(清仓,买卖力道,'顶'),COLORYELLOW;STICKLINE(清仓,买卖力道,买卖力道+0.01,2,0),COLORBLUE; DRAWICON(CROSS(D,中),中,13);DRAWICON(CROSS(中,买卖力道),买卖力道,2);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=(DIF-DEA)*3;红线:=IF(MACD>=0 AND MACD>REF(MACD,1),中,DRAWNULL);青线:=IF(MACD>=0 AND MACD< REF(MACD,1),中,DRAWNULL);粉线:=IF(MACD<0 AND MACD>=REF(MACD,1),中,DRAWNULL);蓝线:=IF(MACD<0 AND MACD< REF(MACD,1),中,DRAWNULL); STICKLINE(红线,200,250,1,0),COLORRED,LINETHICK1;STICKLINE(青线,200,250,1,0),COLORCYAN,LINETHICK1;STICKLINE(粉线,200,250,1,0),COLORMAGENTA,LINETHICK1; STICKLINE(蓝线,200,250,1,0),COLORBLUE,LINETHICK1;DRAWICON(CROSS((A2),(A3)),200,23);通达信如何使用分时指标的教程找到通达信软件的安装位置,打开“T0002”文件夹,找到“user.ini”文件,用记事本打开,把里面“Zstzb=MACD”这一句中的MACD修改为自己要用的指标名称就OK啦。

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘主力状态指标公式主力控盘主力状态指标公式主力控盘N:=35;M:=35;N1:=3;B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;B2:=SMA(B1,N,1)+100;B3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;控盘程度:(IF(B6>N1,B6-N1+2,0))*2.5,COLORYELLOW;控盘度:100,COLORRED;STICKLINE( 控盘程度,0,控盘程度,1.7,0 ),COLOR00FFFF; STICKLINE( 控盘程度AND 控盘程度>100,100,控盘程度,1.7,0 ),COLORRED;主力状态ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算} SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*8 0,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率} ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量} ZZNTS:=BARSLAST(ZSHTL90);{//走牛天数}ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0); {散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00F F00;{主力控盘筹码}STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;{筑顶风险区}STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;{顶部:(ZZLKP>75),COLORFFFFFF;}{主力筹码警戒}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED; {筑底散兵坑}STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;{底部:(ZSHTL>=90),COLOR66FFCC;}{筹码总量上升}IF(ZCMZL,ZCMZL>REF(ZCMZL,1),0),COLOR0066FF,LINETHIC K1;{增量资金};{//------【数值显示】}散户套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2; 主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2; 资金流入强度:ZJLRQD,LINETHICK2,COLORRED;资金流入强度2:IF(ZJLRQD<10,ZJLRQD,0),LINETHICK2,COLORWHITE;市场筹码总量:INTPART(ZCMZL),COLORWHITE,LINETHICK0; DRAWICON(CROSS(主力控盘系数,散户套牢系数),散户套牢系数-5,11);DRAWICON(CROSS(资金流入强度,散户套牢系数),散户套牢系数-5,17);。

通达信指标公式源码 活筹指数(副图 贴图 源码)

通达信指标公式源码 活筹指数(副图 贴图 源码)

主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLOR FF00FF,LINETHICK1;CN1:=HHV(V,5);{5日最高量}CN2:=O>C;CN02:=C>O;CN03:=C=O;CN04:=((SUM(V,5)/CN1));CN05:=IF(CN04>0.3,1,0);{大资金}CN06:=IF(CN2 AND CN05,V,0);{大资金流出}CN07:=IF(CN02 AND CN05,V,0);{大资金流入}CN08:=IF(CN03 AND CN05,V,0);{不明流向大资金}累积流入:SUM(CN07,9)/10000,COLORYELLOW,LINETHICK0;累积流出:SUM(CN06,9)/10000,COLORBLUE,LINETHICK0;净流入:(累积流入-累积流出),COLORFFFFFF,LINETHICK0;STICKLINE(累积流入,0 ,累积流入,8 ,1 ),COLORYELLOW;STICKLINE(累积流出,0 ,累积流出,8 ,1 ),COLORBLUE;VAR2:=LLV(LOW,35);VAR3:=HHV(HIGH,21);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*0.998;短线通道:20,COLORGREEN;短线顶部:85,COLORFF00FF;强弱分界:70,COLOR00FFFF;DRAWTEXT( 10,10,'临界悬浮- 点评:注意买不亏'),COLOR555555; DRAWTEXT(FILTER(CLOSE>0,100),15,'安全区'),COLORWHITE;短线:EMA(0.667*REF(VAR4,1)+0.333*VAR4,1);STICKLINE(短线>=REF(短线,1),短线+0.5,短线-1,6,0),COLORRED,LINETHICK2;STICKLINE(短线<REF(短线,1),短线+0.5,短线-1,6,0),COLOR00FF00; STICKLINE(短线通道>短线,短线通道,短线,7,0),COLOR00FFFF, LINETHICK3;DRAWTEXT(CROSS(短线,短线通道) ,短线+1,'买不亏'),COLORFF00FF;。

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘主力状态指标公式主力控盘主力状态指标公式主力控盘N:=35;M:=35;N1:=3;B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;B2:=SMA(B1,N,1)+100;B3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;控盘程度:(IF(B6>N1,B6-N1+2,0))*2.5,COLORYELLOW;控盘度:100,COLORRED;STICKLINE( 控盘程度,0,控盘程度,1.7,0 ),COLOR00FFFF; STICKLINE( 控盘程度AND 控盘程度>100,100,控盘程度,1.7,0 ),COLORRED;主力状态ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算} SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*8 0,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率} ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量} ZZNTS:=BARSLAST(ZSHTL90);{//走牛天数}ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0); {散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00F F00;{主力控盘筹码}STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;{筑顶风险区}STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;{顶部:(ZZLKP>75),COLORFFFFFF;}{主力筹码警戒}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED; {筑底散兵坑}STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;{底部:(ZSHTL>=90),COLOR66FFCC;}{筹码总量上升}IF(ZCMZL,ZCMZL>REF(ZCMZL,1),0),COLOR0066FF,LINETHIC K1;{增量资金};{//------【数值显示】}散户套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2; 主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2; 资金流入强度:ZJLRQD,LINETHICK2,COLORRED;资金流入强度2:IF(ZJLRQD<10,ZJLRQD,0),LINETHICK2,COLORWHITE;市场筹码总量:INTPART(ZCMZL),COLORWHITE,LINETHICK0; DRAWICON(CROSS(主力控盘系数,散户套牢系数),散户套牢系数-5,11);DRAWICON(CROSS(资金流入强度,散户套牢系数),散户套牢系数-5,17);。

全头条最详细——通达信指标公式大全

全头条最详细——通达信指标公式大全

全头条最详细——通达信指标公式大全一、K线的基本形态1、当天收阳:CLOSE>OPEN;2、当天收阴:CLOSE<OPEN;3、当天股价高开,言下之意开盘高于昨日收盘:OPEN>REF (CLOSE,1);4、当天股价低开:OPEN<REF(CLOSE,1);5、跳空高开:OPEN>REF(HIGH,1);当日开盘在昨日最高价之上6、跳空低开:OPEN<REF(LOW,1);7、长阳:C/O>1.03 或者 (C-O)/O*100>5 或者 (C-O)/O>0.05 意思是收盘价比开盘价上涨5%以上。

当然,用7%以上也可。

8、长阴:C/O<>9、高开大阴:O/REF(C,1)>1.04 AND C/O<1.94;>10、标准十字星:CLOSE=OPEN AND HIGH<>LOW更多见的是近似十字星。

例:ABS(C-O)<0.02 and="" h-c="">0.03 AND C-L>0.03; 该语句用上了一个函数:ABS,意思是求绝对值。

这样,该近似十字星即可能是阳星也可能是阴星。

再认识两个函数:MAX(A,B) 求A和B中的最大值。

MIN(A,B) 求A和B中的较小值有了这两个函数,近似十字星还可这样表述:ABS(C-O)<0.02 and="" h=""> MAX(C,O) AND L<>另外,该公式还可以用比例数编写。

11、长下影线:也有收阴收阳之分。

以阳线长下影线为例:C>O AND (O-L)>(C-O);此公式只表达了下影线比实体线长,并没有表达长度比例和有无上影线。

留个习题吧:不限制阴阳线,上影小于5分钱,下影线是实体的两倍以上。

形态还有许多,有几十种,不一一例举了,大家举一反三,慢慢摸索吧。

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

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

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;。

通达信有价值的经典指标公式

通达信有价值的经典指标公式

通达信有价值的经典指标公式以下是通达信有价值的经典指标公式(无源码的请下载附件导入)1 KDJ提前金叉N:=5;M1:=5;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,5,1);D:=SMA(K,M1,5);J:=3*K-2*D;VARB2:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);低买:=IF(黄金 AND RSV高卖:=IF(黄金 AND RSV>VARB2,80,120);上涨分界:=25;选股:(CROSS(上涨分界,低买));2 山沟涨停选股WA2:=(HHV(H,50)-L)/C>0.5;B2:=(HHV(H,8)-L)/C>0.25;A:=A2 AND B2;XG:COUNT(A,5)>=1 AND C/REF(C,1)>=1.095;3 抓牛启动点A:=LLV(HIGH,240);A2:=REF(LLV(CLOSE,480),1);A3:=REF(HHV(CLOSE,480),1);A4:=EMA(EMA(CLOSE,2)-EMA(CLOSE,150),100);A5:=2*(EMA(CLOSE,2)-EMA(CLOSE,150)-A4);A6:=POW(A5,3)*0.1+POW(A5,1);A7:=IF(A5>0.1,A6,0)*5;A8:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;CROSS(A8,A) AND CROSS(A8,A2) AND CROSS(A8,A3) AND CROSS(A7,A) AND CROSS(A7,A2) AND CROSS(A7,A3);4 低开长阳M:=4;N:=7;低开长阳:OPEN<= 1-M/100 AND CLOSE/OPEN>=1+N/100,COLORRED;DRAWICON(低开长阳,1.1,4);5 超级组合顶底N:=5;M1:=5;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,M1,5);J:=3*K-2*D;VARB2:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);低买:=IF(黄金 AND RSV高卖:=IF(黄金 AND RSV>VARB2,80,120);上涨分界:=25;选股:(CROSS(上涨分界,低买));VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED;STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00;底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖,动力线),20),动力线+0.02,2);界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:=动力线,COLORA8A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)A1:=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);上升:=CROSS(VAR1,8);准备上:(建仓区 OR REF(建仓区,0.5)) AND 上升;{出手买点}出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);{强势买点}D1:="WR.WR1"<5;D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;D3:=CROSS("MACD.DIF","MACD.DEA");D4:="I">-100 AND "I"<-90;D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;S1:=20;M2:=40;L1:=60;AAA:=CLOSE>OPEN;BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE, M2)&&CLOSE>MA(CLOSE,L1);CCC:=BBB&&OPENXG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;AA1:=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);MM:=DMA(CLOSE,WW);通道4:= (1-7/100)*MM;VAR4:=EXPMA(CLOSE,9);LDN:=EXPMA(VAR4*0.86,5);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));TTRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=DMM*100/TTRR;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);买底: C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN;6 侯氏私募选股A01:=DYNAINFO(7);A02:=MA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=(DMA(A06,(VOL / CAPITAL)) * 100);A08:=IF((A02 > A01),(100 - A07),A07);A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);STICKLINE((A09 > 0),0,A09,5,0),COLORFF00FF;黄金线选股:IF(((CROSS(A09,0.009) AND (OPEN && LOW)) AND (CLOSE && LOW)),20,0),COLORFF00FF;私募黄金线:A09,LINETHICK2,COLOR00FFFF;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);MSD:EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE;风险区:80,COLORFF85FF;安全区:20,COLORYELLOW;天线:100,COLORFFFF00,LINETHICK2;地线:=0,LINETHICK2 COLOR6699FF;强弱线:50,COLORGREEN,POINTDOT;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF(VAR9>100,VAR9-100,0);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);趋势值:VAR13,COLORRED;STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),COLORRED;STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;VARK1:=EMA(HHV(HIGH,500),21);VARK2:=EMA(HHV(HIGH,250),21);VARK3:=EMA(HHV(HIGH,90),21);VARK4:=EMA(LLV(LOW,500),21);VARK5:=EMA(LLV(LOW,250),21);VARK:=EMA(LLV(LOW,90),21);VARK7:=EMA((VARK4*0.96+VARK5*0.96+VARK*0.96+VARK 1*0.558+VARK2*0.558+VARK3*0.558)/6,21);VARK8:=EMA((VARK4*1.25+VARK5*1.23+VARK*1.2+VARK1* 0.55+VARK2*0.55+VARK3*0.65)/6,21);VARK9:=EMA((VARK4*1.3+VARK5*1.3+VARK*1.3+VARK1*0. 68+VARK2*0.68+VARK3*0.68)/6,21);VARKA:=EMA((VARK7*3+VARK8*2+VARK9)/6*1.738,21);VARKB:=REF(LOW,1);VARKC:=SMA(ABS(LOW-VARKB),3,1)/SMA(MAX(LOW-VARKB,0),3,1)*100;VARKD:=EMA(IF(CLOSE*1.35<=VARKA,VARKC*10,VARKC/10 ),3);VARKE:=LLV(LOW,30);VARKF:=HHV(VARKD,30);VARK10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=VARKE,(VARKD+VARKF*2)/2,0),3)/618*VARK10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF; STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF; STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF; STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF; STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;。

通达信组合实战5个公式

通达信组合实战5个公式

通达信组合实战5个公式原文地址:通达信组合实战5个公式作者:金钱的价值通达信组合实战5个公式一:奥斯卡LC:=REF(CLOSE,1);RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;WR10:=100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));活跃度:RSI5-WR10,LINETHICK0,COLORFFFF00;STICKLINE(活跃度>0,0,活跃度,2,1),COLORFF00FF;STICKLINE(活跃度<0,0,活跃度,2,1),COLOR808080;STICKLINE(活跃度>68 AND 活跃度<78,0,活跃度,2,0),COLORFFFF00;STICKLINE(活跃度>78,0,活跃度,2,0),COLOR00FFFF;SC:100*(CLOSE-MA(CLOSE,20)),COLORRED;MAO:EMA(SC,6),COLORFFFF00;饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,10 0,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),COLORRED ,LINETHICK0;80,POINTDOT,COLOR00FF00;-100,POINTDOT,COLORFFFF00;活跃度出现黄色柱要当心金叉配合紫色柱是比较好的买点二:逃顶指标VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED;STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00;底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;逃顶指标用法:用这个指标可以判断,个股逃顶数值在3.2以上,尤其是到达3.5以上,一旦在高位出现绿色柱状,就要及时卖出了,连续出现2个绿色柱状,说明下降通道打开了,更要逃命了,掌握住这点,你就是赢家。

通达信分时动力指标

通达信分时动力指标

通达信分时动力指标
通达信分时动力指标是一种常用的技术分析指标,其主要用途是衡量股价在分时段内的动能变化情况。

该指标由通达信软件公司研发,经过多年的应用和验证,已成为投资者进行技术分析的重要工具之一。

通达信分时动力指标主要包括三个部分:动力线、动能柱和能量柱。

其中,动力线是指股价在分时段内的趋势线,动能柱和能量柱则分别反映了股价在分时段内的动能和能量变化情况。

通过对通达信分时动力指标的分析,投资者可以更好地了解股价的走势和趋势,确定买入和卖出的时机,提高交易的成功率和盈利水平。

同时,该指标还可以帮助投资者识别市场的底部和顶部,及时调整投资策略,避免不必要的风险和损失。

总之,通达信分时动力指标是一种简单而有效的技术分析工具,可以帮助投资者更准确地预测股价的走势和趋势,从而实现更好的投资收益。

- 1 -。

【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)

【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)

【股票指标公式下载】-【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式源码{-------------------------通达信新分时源码深度优化版--------------------}A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←⾸次开盘价距⾦的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌{----------------------利⽤MACD趋势进⾏精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*0.809;中轴:=MACD中轴+-MACD超跌线;海⾯:=顶部*0.191;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采⽤21⽇⽉线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进⾏顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------⼤盘动向-------------------------------}VAR1⼤盘:=LLV(LOW,13);VAR2⼤盘:=HHV(HIGH,13);VAR3⼤盘:=(SMA((CLOSE-VAR1⼤盘)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1))-顶部/2;VAR4⼤盘:=SMA((VAR2⼤盘-CLOSE)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1)-顶部/2; ⼤盘散户:=IF(VAR4⼤盘<底部,底部,VAR4⼤盘),COLOR408000;⼤盘主⼒:=IF(VAR3⼤盘<底部,底部,VAR3⼤盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最⾼获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最⾼获利参数;VAR2C:=(COST(99.9)-COST(1))*最⾼获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;⾼密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主⼒:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主⼒:IF(个股主⼒=DRAWNULL,DRAWNULL,个股主⼒),COLOR330088;{--------------------换⼿率,五⽇换⼿率辅助判断个股活跃度-------------------}换⼿:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤⽇换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}⾦⾊背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,3.05,0),COLOR003333;⾦⾊背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,3.05,0),COLOR003333;⾦⾊背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));⾦⾊背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫⾊:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));⾼密峰墨蓝⾊:=DRAWBAND(⾼密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝⾊:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿⾊:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主⼒峰红⾊:DRAWBAND(主⼒,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));{--------若⽔论坛‘131488’会员提供的通达信■新宝塔线■-----原码-----------}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); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND 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); VARD:=CLOSEVARE:=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); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND 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); 三平底翻⾦:=(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;主⼒启动线:=MA(V,5),COLORFFFFFF;主⼒洗盘线:=MA(V,35),COLOR00FFFF;资⾦异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主⼒启动线,资⾦异动线) OR ((主⼒洗盘线 > 资⾦异动线) AND CROSS(主⼒启动线,主⼒洗盘线))),COLORYELLOW;启动:=(主⼒启动线>REF(主⼒启动线,1) AND (CROSS(VOL,主⼒启动线) AND (REF(VOL,1)线,2)))),COLOR45AAEE;成⽴:=三平底翻⾦ AND (出击 OR 启动);买⼊提⽰:=IF(成⽴=1,海⾯*0.5,0) AND 分时判断=1;{------------------------顶部线,天际线,海⾯线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海⾯线:DRAWBAND(海⾯,RGB(0,153,153),海⾯,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,1.50,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.95,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.31,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,1.50,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.95,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.31,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLORAA6633;MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORCC8855; MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORDD9966; {---------中轴线重画及顶部线,天际线,海⾯线,底部线,多空线⽂字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;天际线⽂字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;海⾯线⽂字:DRAWTEXT(CURRBARSCOUNT=1,海⾯,' 海⾯线'),COLOR999900; 底部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999; 中轴线⽂字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*0.998,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式效果图(⽂档来源:若⽔财经社区)。

【股票指标公式下载】-【通达信】动能指标(多空趋势、主力能量、操盘、减仓、反弹)

【股票指标公式下载】-【通达信】动能指标(多空趋势、主力能量、操盘、减仓、反弹)

【通达信】动能指标(多空趋势、主力能量、操盘、减仓、反弹)-指标公式源码V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 28,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),24,24+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),24,22+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,22,22.3),' 多空'),COLORWHITE; 换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORYELLOW;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,14.4,14.6),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORRED;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORYELLOW;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,9.6,9.8),' 大户'),COLORYELLOW; 操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,4.8,5),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE; JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));{4,9,17,34日换手偏离值均分成交量}ZLCJ:=JZ*ABS(主力能量);{4日换手偏离均量值换算当日成交量}DHCJ:=JZ*ABS(大户能量);{9日换手偏离均量值换算当日成交量}ZHCJ:=JZ*ABS(中户能量);{17日换手偏离均量值换算当日成交量}SHCJ:=JZ*ABS(散户能量);{34日换手偏离均量值换算当日成交量};换手率:VOL/CAPITAL*100,LINETHICK0;机构量:=ZLCJ,COLORMAGENTA,NODRAW;大户量:=DHCJ,COLORYELLOW,NODRAW;中户量:=ZHCJ,COLORLIBLUE,NODRAW;散户量:=SHCJ,COLORBLUE,NODRAW;【通达信】动能指标(多空趋势、主力能量、操盘、减仓、反弹)-指标公式效果图(文档来源:若水财经社区)。

通达信指标公式源码最牛短线

通达信指标公式源码最牛短线

通达信指标公式源码最牛短线通达信是中国股市常用的技术指标分析软件之一,其指标公式源码通常是使用C/C++语言编写。

以下是一个通达信中比较常用的短线指标公式源码示例:```cpp/**通达信最牛短线指标-动态平衡指标*公式:*DPT:=(CLOSE-LLV(LOW,34))/HHV(HIGH,34)*100;*DPB:=(HHV(HIGH,37)-CLOSE)/HHV(HIGH,37)*100;*DB:=DMA((DPT+DPB)/2,3);*BD:=DMA(DB,3);*返回值:*DB当日的DB值*BD当日的BD值*/extern "C" __declspec(dllexport) INT32 LuckyLineFLOAT*CLOSE,FLOAT*HIGH,FLOAT*LOW,INT32N,FLOAT*DB,FLOAT*BD) FLOATDPT[3];FLOATDPB[3];FLOATHHV_HIGH[3];FLOATLLV_LOW[3];for (INT32 i = 0; i < N; ++i)if (i < 34)HHV_HIGH[0]=HHV_HIGH[1]=HHV_HIGH[2]=HIGH[0];LLV_LOW[0]=LLV_LOW[1]=LLV_LOW[2]=LOW[0];}elseHHV_HIGH[0] = max(HIGH[i], HHV_HIGH[1]);HHV_HIGH[1]=HHV_HIGH[2];HHV_HIGH[2]=HHV_HIGH[0];LLV_LOW[0] = min(LOW[i], LLV_LOW[1]);LLV_LOW[1]=LLV_LOW[2];LLV_LOW[2]=LLV_LOW[0];}if (i < 37)DPB[0]=DPB[1]=DPB[2]=(HHV_HIGH[0]-CLOSE[0])/HHV_HIGH[0]*100; }DPB[0]=(HHV_HIGH[0]-CLOSE[0])/HHV_HIGH[0]*100;DPB[1]=(HHV_HIGH[1]-CLOSE[1])/HHV_HIGH[1]*100;DPB[2]=(HHV_HIGH[2]-CLOSE[2])/HHV_HIGH[2]*100;}if (i < 34)DPT[0]=DPT[1]=DPT[2]=(CLOSE[0]-LLV_LOW[0])/HHV_HIGH[0]*100; }elseDPT[0]=(CLOSE[0]-LLV_LOW[0])/HHV_HIGH[0]*100;DPT[1]=(CLOSE[1]-LLV_LOW[1])/HHV_HIGH[1]*100;DPT[2]=(CLOSE[2]-LLV_LOW[2])/HHV_HIGH[2]*100;}if (i >= 2)DB[i]=(DPT[0]+DPB[0])/2;BD[i]=(DB[i]+DB[i-1]+DB[i-2])/3;}}return 0;这是一个使用动态平衡指标计算当日的DB值和BD值的指标公式。

通达信分时看盘波段实时解盘公式

通达信分时看盘波段实时解盘公式

通达信分时看盘波段实时解盘公式股票公式不明白请查阅:股票公式文件使用以及说明!通达信分时看盘波段实时解盘公式我最喜欢的指标。

分时看盘主图:源码:一主三副图。

源码:主图:金轨道上18H:WMA(SMA(HHV(HIGH,18),9/2,1),3);下18L:WMA(SMA(LLV(LOW,18),9/2,1),3);通道:(上18H+下18L)/2;DRAWBAND(上18H,RGB(0,0,155),通道,RGB(0,0,155));DRAWBAND(通道,RGB(0,40,0),下18L,RGB(0,40,0));WMA(SMA(HHV(HIGH,18),9/2,1),3),COLOR0080FF,DOTLINE;WMA(SMA(LLV(LOW,18),9/2,1),3),COLOR0080FF,DOTLINE;(上18H+下18L)/2,COLORFFFFFF;MA5:WMA(C,5);IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHIC K3;{CCI-金}现价:IF (DYNAINFO(4)=0,C,DYNAINFO(7)),COLOR0077FF,LINETHICK0;TYB:WMA(((C+(H+L)/2)/2*0.618+(C+O)/2*0.382),2),LINETHI CK0;CCIA:=(TYB-MA(TYB,14))/(0.015*AVEDEV(TYB,14));CCIB:=(TYB-MA(TYB,28))/(0.015*AVEDEV(TYB,28));CCIC:=(TYB-MA(TYB,42))/(0.015*AVEDEV(TYB,42));CCI:=WMA((CCIA+2*CCIB+CCIC)/4,5);PK:=4;BX:=IF(BARSCOUNT(C)=500,0,500);CCIS:=ABS(HHV(CCI,BX)-LLV(CCI,BX))/(HHV(C,BX)-LLV(C,BX))*PK;CCIK:CCI/CCIS+现价,COLOR00FF00,DOTLINE;IF(CCIK>REF(CCIK,1),CCIK,DRAWNULL),COLOR00DDDD,LINE THICK3;DRAWTEXT(CCI>REF(CCI,1) AND CROSS(CCI,-100),CCIK,'CCI 底背离'),COLORFFFFFF;{高抛.低吸}RC:=(H+L+C*2)/4;R2D:=WMA(RC,27);R2E:=STD(RC,27);R3F:=(RC-R2D)/R2E*100;R40:=WMA(R3F,3);R41:=WMA(R40,3);JD:=WMA(R41,2);AJ:=3*R41-2*JD;DRAWTEXT(CROSS(AJ,JD) ,L-0.1,'★'),COLOR00FFFF,LINETHICK1;DRAWTEXT(CROSS(JD,AJ) ,H+0.1,'★'),COLORFFFF00,LINETHI CK1;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;AA:=REF(MA(C,20),1)<REF(MA(C,20),2);BB:=COUNT(AA,3)>=2;CC:=MA(C,20)>REF(MA(C,20),1);拐点:=CC AND BB;DRAWTEXT(拐点,L*0.99,'★拐点'),COLORYELLOW;副图一:洗盘后买入:N:=10;ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,V OL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*600,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;HHH:=BBB-LLV(BBB,27);CCC:=LLV(BBB,27)-BBB;QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK 1;SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;GG:=MA(HHH,5),LINETHICK1,COLORGREEN;MM:=MA(CCC,5),LINETHICK1,COLORGREEN;WW:=IF(QQ<GG,SS,MM),LINETHICK1,COLOR0000FF;EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK1;★买:=IF(EE-WW<5.6,200,0);RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH),COLORRED;买:IF(黄金AND RSVV<VARB2-2,180,0),COLOR00FFFF,STICK,LINETHICK1;DRAWTEXT(买>0,99.6,'买'),COLORFFFFFF;STICKLINE(买,0,2,0,9),COLOR0000FF;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);小心: 3.2,COLORYELLOW;风险: 3.5,COLORBLUE;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),0,0),COLORRED;STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),0,0),COLOR00FF00;底部:0.2,COLORC6C600;关注:0.5,COLORFF75FF;强弱分界:1.75,COLORRED;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,45,'低进'),COLORFFFFFF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,85,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,80,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,75,'↑'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,70,'↑'),COLORFF00FF;小股民:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);庄家:= EMA(0.667*REF(小股民,1)+0.333*小股民,2);DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,90.5,'高出'),COLOR00FF00;DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,80,'●'),COLOR00FF00;高出:100*(CROSS(庄家,小股民) AND 小股民>70),COLOR00FF00,STICK,LINETHICK1;副图二: 波段:VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);高位:90,DOTLINE,COLOR626262;低位:20,DOTLINE,COLOR626262;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),LINETHICK2,COLOR0000FF;C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFF FFF,LINETHICK1;H1:IF( CROSS(C2,C1),C2,DRAWNULL),CROSSDOT,LINETHICK 1,COLORYELLOW;F1_:IF(CROSS(C2,C1),C2,DRAWNULL),CIRCLEDOT,LINETHICK 1,COLORFFFF00;DRAWTEXT(CROSS(C1,C2),REF(C2,1),'B'),COLOR000000;DRAWTEXT(CROSS(C2,C1),REF(C1,1),'★'),COLORC6C600;H2:IF( CROSS(C1,C2),C1,DRAWNULL),CROSSDOT,LINETHICK 1,COLORMAGENTA;F2_:IF(CROSS(C1,C2),C1,DRAWNULL),CIRCLEDOT,LINETHICK 1,COLORYELLOW;DRAWICON(CROSS(C1,C2) AND C2>0,C2,1);DRAWICON(CROSS(C2,C1) AND C2<-100,C1,2);DRAWICON(CROSS(C1,C2) AND C2<0,C2,34);DRAWICON(CROSS(C2,C1) AND C2>-100,C1,2);条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(条件,15,'★'),COLOR00FFFF;DRAWTEXT(条件0,96,'卖'),COLORYELLOW;副图三:盘1:=COST(0.33);盘2:=COST(5);盘3:=COST(15);盘4:=COST(55);盘5:=COST(97);获利:=WINNER(CLOSE)*100;套牢:=100-WINNER(CLOSE)*100;DRAWTEXT_FIX(1,0.02,0,0,EXTERNSTR(0,1)),COLOR719FFF;DRAWTEXT_FIX (1,0.4,0,1,'升浪:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.41,0,0,CONST(COST(55))),COLOR007 DFB;DRAWTEXT_FIX (1,0.5,0,0,'预测:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.55,0,0,CONST(COST(97))),COLOR007 DFB;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,30);多头排列:= MA1>MA2 AND MA2>MA3 AND MA3>MA4 ;MA60:=MA(C,60),COLORFFCC66;MA13:=MA(C,13),COLORFFCC66;MA75:=MA(C,75),COLORFFCC66;空头排列:= MA1<MA2 AND MA2<MA3 AND MA3<MA4 ;下跌趋势:=MA4<REF(MA4,3)AND MA4<REF(MA4,1);上升趋势:=MA4>REF(MA4,3) AND MA4>REF(MA4,1) ;下降成:=CONST(IF(下跌趋势AND MA1<REF(MA1,1) AND REF(NOT(下跌趋势),1),1,0));上升成:=CONST(IF(上升趋势 AND REF(NOT(上升趋势),1),1,0));DRAWTEXT_FIX(ISLASTBAR AND 下降成=1,0.8,0.2,0,'下降趋势成'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND 上升成=1,0.8,0.2,0,'上升趋势成'),COLOR8080FF;一阴穿2线:=C/O<0.985 AND H>MA1 AND C<MA3;一阳穿2线:=C/O>1.016 AND L<MIN(MA1,MA3)AND C>MAX(MA1,MA3);发散度:=MA1/MA4;均线下发散:=下跌趋势AND 发散度<0.9 AND 发散度<0.99*REF(发散度,1);均线上发散:=MA1>REF(MA1,1) AND MA2>REF(MA2,1) AND MA3>REF(MA3,1) AND MA4>REF(MA4,1) AND MA1>MA2 AND MA2>MA3 AND MA3>MA4;AAAA1:=MAX(MAX(MA(V,5),MA(V,10)),MA(V,60))/MIN(MIN( MA(V,5),MA(V,10)),MA(V,60))<=1.4;AAAA2:=MAX(MA(C,5),MA(C,10))/MIN(MA(C,5),MA(C,10))< =1.4;DIFF:=EMA(C,12)-EMA(C,26);DEA:=EMA(DIFF,9);升:=CONST(IF( DIFF>0,1,0)),COLORRED;DRAWTEXT_FIX(ISLASTBAR AND 升=1,0.1,0.35,0,'处于上升趋势'),COLOR8080FF;降:=CONST(IF( DIFF<-0,1,0)),COLORRED;DRAWTEXT_FIX(ISLASTBAR AND 降=1,0.1,0.35,0,'处于下降趋势'),COLORFFFF00;VARF:=LOW*0.9;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;均线密集:=DIFF>DEA AND K >D AND(MA5-MA10)<0.05 AND (MA20-MA5)<0.05 AND (MA10-MA5)<0.05 AND (MA5-MA20)<0.05;A:=MA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),19);B:=-100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));DD:=EMA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),4);长线:=A+100;短线:=B+100;中线:=DD+100;见顶:=(REF(中线,1)>85 AND REF(短线,1)>85 AND REF(长线,1)>65 AND CROSS(长线,短线));顶区:=(中线>REF(中线,1) AND REF(中线,1)>80 AND REF(短线,1)>95 OR REF(短线,2)>95AND 长线>60 AND 短线<83.5 AND 短线<中线 AND 短线<长线+4);底区:=长线<20 AND 中线<18 AND 短线<40 AND REF(短线,1)<5 AND 中线 >REF(中线,1)AND 短线 >REF(短线,1);顶部:=FILTER(顶区,4);{}VAR2N:=LLV(LOW,3)<=LLV(LOW,60);VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));绝地反击:=IF(VAR2N AND VAR3N,90,0),COLORYELLOW,LINETHICK2;LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;A1:=SMA(MAX(C-LC,0),6,1);B1:=SMA(ABS(C-LC),6,1);界:=IF(C>LC,(REF(A1,1)*5-REF(B1,1)*5*0.5)/(0.5-1)+LC,LC+REF(B1,1)*5-REF(A1,1)*5/0.5),COLORWHITE;MACD:=4*(DIFF-DEA);{}缩头:=IF(MACD>0 AND REF(MACD,1)>REF(MACD,2) AND MACD< REF(MACD,1),1,0);缩脚:=IF(MACD<0 AND REF(MACD,1)< REF(MACD,2) AND MACD>REF(MACD,1),1,0);ZDIF:=EMA(INDEXC,12)-EMA(INDEXC,26);ZHIDEA:=EMA(ZDIF,9);ZEMACD:=(ZDIF-ZHIDEA)*2/100,COLORSTICK;DK:=ZEMACD;{}Z缩头:=IF(DK>0 AND REF(DK,1)>REF(DK,2) AND DK< REF(DK,1),1,0);Z缩脚:=IF(DK<0 AND REF(DK,1)< REF(DK,2) AND DK>REF(DK,1),1,0);{}TT:=240/FROMOPEN;比:=TT;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));AAA1:=CONST(HHV(H,90));BBB:=CONST(LLV(L,30))+2;T1:=CONST(IF(CLOSE>界,1,0));T2:=CONST(IF(CLOSE<界,1,0));T3:=CONST(IF(C<MA(C,75),1,0));T4:=CONST(IF(CROSS(CLOSE,界),1,0));T5:=CONST(IF(CROSS(MA(CLOSE,13),CLOSE),1,0));T6:=CONST(IF(C>=MA(C,5) AND C<MA(C,13),1,0));T7:=CONST(IF(C>=MA(C,75),1,0));VAR1Y:=VOL/CAPITAL*100;VAR2Y:=LLVBARS(LOW,10);VAR3Y:=(CLOSE-REF(OPEN,VAR2Y))/REF(OPEN,VAR2Y)*100;VAR4Y:=REF(CLOSE,2)*0.865;VAR5Y:=REF(CLOSE,13)*0.772;VAR6Y:=MAX(VAR4Y,VAR5Y);T9:=(CLOSE-VAR6Y)/CLOSE>0.2 AND VAR3Y<50 AND SUM(VAR1Y,5)/5>5;T10:=CONST(IF(VAR2N AND VAR3N,1,0));T11:=CONST(IF(缩脚,1,0));T12:=CONST(IF( ZDIF<0 ,1,0));T14:=CONST(IF(ZEMACD>=REF(ZEMACD,1) AND ZEMACD>0 AND ZDIF>=0 ,1,0));DRAWTEXT_FIX(ISLASTBAR ,0.01,0.2,0,'看均线'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR ,0.01,0.35,0,'看MACD'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR ,0.01,0.50,0,'看大盘'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR ,0.01,0.65,0,'看买卖'),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR AND T1=1,0.26,0.2,0,'短线上升持股'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T2=1,0.26,0.2,0,'短线下降持币'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T3=1,0.38,0.2,0,'长线下降持币'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T7=1,0.38,0.2,0,'长线上升持股'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T6=1,0.1,0.65,0,'低买点持股信号'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T4=1,0.65,0.65,0,'加买点信号'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T5=1,0.65,0.65,0,'短线卖出信号'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T14=1,0.1,0.5,0,'处于上升趋势'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND T12=1,0.1,0.5,0,'处于下降趋势'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND T9=1,0.2,0.65,0,'阳线卖点'),COLOR00FFFF;LC1:=REF(INDEXC,1);ZRSI:=SMA(MAX(INDEXC-LC1,0),6,1)/SMA(ABS(INDEXC-LC1),6,1)*100,COLORD9D900;X:=INDEXC;Y:=INDEXO;Z:=INDEXL;I:=INDEXH;急速超跌:=(X-MA(X,34))/MA(X,34)*100<-5;当日收阳:=(I-Z)/Z>0.01 AND (X-Y)/Y>0.01 AND X/REF(X,1)>1.01;超跌收阳:=CONST(IF(急速超跌 AND 当日收阳,1,0));DRAWTEXT_FIX(ISLASTBAR AND 超跌收阳=1 ,0.65,0.5,0,'大盘短底,少量买'),COLOR8080FF;A1W:=SMA(MAX(X-LC1,0),6,1);B1W:=SMA(ABS(X-LC1),6,1);界1:=IF(X>LC1,(REF(A1W,1)*5-REF(B1W,1)*5*0.5)/(0.5-1)+LC1,LC1+REF(B1W,1)*5-REF(A1W,1)*5/0.5),COLORWHITE;TYP := (Z +I + X)/3;YY:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;BB:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));超卖:=CONST(IF(CROSS(BB,-200),1,0));DRAWTEXT_FIX(ISLASTBAR AND 超卖=1 ,0.65,0.5,0,'大盘超卖,少量买'),COLOR8080FF;KS:=(C-MA(C,17))/MA(C,17)*(-100);RKS:=REF(KS,1);MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.01;大盘4:=CONST(IF(X>界1,1,0));大盘3:=CONST(IF(X<界1,1,0));大盘12{M13}:=CONST(IF(ZEMACD>REF(ZEMACD,1) AND ZEMACD>0 AND ZDIF<0 ,1,0));大盘13:=CONST(IF(ZEMACD<0 AND ZDIF>0 ,1,0));M整理:=CONST(IF( MACD<0 AND DIFF>0,1,0));M走缓:=CONST(IF(MACD<REF(MACD,1) AND MACD>0 AND DIFF>0 ,1,0));DRAWTEXT_FIX(ISLASTBAR AND M整理=1 ,0.26,0.35,0,'股价升途整理'),COLOR00FFFF;DRAWTEXT_FIX(ISLASTBAR AND M走缓=1 ,0.26,0.35,0,'股价上升走缓'),COLOR00FFFF;大盘16:=CONST(IF(ZEMACD<REF(ZEMACD,1) AND ZEMACD<0 AND ZDIF>0 ,1,0));大盘11:=CONST(IF(KS>=17 ,1,0));大盘2:=CONST(IF(MLS=1,1,0));DRAWTEXT_FIX(ISLASTBAR AND 大盘4=1 ,0.26,0.5,0,'短线持股'),COLOR8080FF;DRAWTEXT_FIX(大盘3=1 AND ISLASTBAR,0.26,0.5,0,'短线持币'),COLORFFFF00;DRAWTEXT_FIX(大盘13=1 AND ISLASTBAR,0.3,0.5,0,'上升趋势,升途整理,谨慎'),COLOR00FFFF;DRAWTEXT_FIX(大盘11=1 AND ISLASTBAR,0.2,0.65,0,'今日价超跌'),COLORFFFF00;DRAWTEXT_FIX(大盘2=1 AND ISLASTBAR,0.2,0.65,0,'今日价反弹'),COLOR8080FF;M弹:=CONST(IF(MACD>REF(MACD,1) AND MACD>0 AND DIFF<0,1,0));{DRAWTEXT_FIX(大盘12=1 AND ISLASTBAR,0.3,0.5,0,'大盘下降趋势,反弹,谨慎'),COLORWHITE ;}DRAWTEXT_FIX(大盘12 AND ISLASTBAR,0.5,0.5,0,'处于反弹区'),COLOR8080FF;DRAWTEXT_FIX(M弹=1 AND ISLASTBAR,0.26,0.35,0,'反弹阶段小心'),COLORYELLOW;MM3:=CONST(IF(RSI1<ZRSI,1,0));MM4:=CONST(IF((RSI1>=ZRSI),1,0));DRAWTEXT_FIX(ISLASTBAR AND MM3=1,0.1,0.2,0,'弱于大盘走势'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND MM4=1,0.1,0.2,0,'强于大盘走势'),COLOR8080FF;WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);M1:=CONST(IF(空头排列 AND 均线下发散,1,0));M2:=CONST(IF(多头排列 AND 均线上发散,1,0));M3:=CONST(IF(空头排列 AND NOT(均线下发散),1,0));M9:=CONST(IF(空头排列 ,1,0));M10:=CONST(IF(多头排列 ,1,0));MM1:=CONST(IF(均线密集,1,0));MM2:=CONST(IF(上升趋势 AND NOT(一阴穿2线) AND REF(上升趋势,1),1,0));M4:=CONST(IF(下跌趋势 AND NOT(一阳穿2线),1,0));MM5:=CONST(IF(DIFF<0 AND MACD<0 AND MACD>REF(MACD,1),1,0));MM7:=CONST(IF(ZEMACD>REF(ZEMACD,1) AND ZEMACD<0,1,0));MM8:=CONST(IF(下跌趋势 AND REF(下跌趋势,1) AND NOT(一阳穿2线),1,0));MM9:=CONST(IF(ZEMACD<REF(ZEMACD,1) AND ZEMACD>0,1,0));量大:=(卖盘+买盘)/REF(VOL,1)>2;M5:=CONST(量大);量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;M6:=CONST(量缩);卖量大:=(卖盘-买盘)/买盘>0.4;M7:=CONST(卖量大);买量大:=(买盘-卖盘)/卖盘>0.4;M8:=CONST(买量大);DRAWTEXT_FIX(ISLASTBAR AND M2=1,0.7,0.2,0,'多头发散,注意13日线得失'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND M7=1,0.7,0,0,'☆卖出量大于买入量40%以上'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND M8=1,0.7,0,0,'☆买入量大于卖出量40%以上'),COLOR8080FF;{{DRAWTEXT_FIX(ISLASTBAR AND MM1=1,0.2,0,7,'均线密集,注意方向变化'),COLORYELLOW;}DRAWTEXT_FIX(ISLASTBAR AND M1=1,0.4,0.2,0,'有加速下跌趋势'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND M2=1,0.4,0.2,0,'有加速上升趋势'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND M4=1,0.5,0.2,0,'下跌趋势未变,'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND MM2=1,0.5,0.2,0,'上升趋势未变'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND M9=1,0.8,0.2,0,'空头排列'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR AND M10=1,0.8,0.2,0,'多头排列'),COLOR8080FF;DRAWTEXT_FIX(ISLASTBAR AND MM5=1,0.25,0.35,0,'下跌趋势趋缓,可能转折'),COLOR00FFFF;{DRAWTEXT(VAR2N AND VAR3N,L*0.99,'反击'),COLOR00FF00;}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,3);乖:=CONST(IF(CROSS(BIAS,乖离) AND 乖离<-9,1,0)),COLOR00FFFF;DRAWTEXT_FIX(ISLASTBAR AND 乖=1,0.65,0.35,0,'乖离买点'),COLOR8080FF;坑:=CONST(IF( 乖离<-19,1,0)),COLORRED;DRAWTEXT_FIX(ISLASTBAR AND 坑=1,0.65,0.5,0,'深坑买点'),COLOR8080FF;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;支撑:=L1+P1*0.5/8;底: CROSS(支撑,C),COLOR8080FF,STICK,LINETHICK1;DRAWTEXT(底>0,19.26,'底'),COLOR4646FF;VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);VAR2:=8;RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE -LC)),3,1)) * 100);减:CROSS(88,RSI),STICK,LINETHICK1,COLORFFFF00;DRAWTEXT(减>0,13.1,'↓减'),COLORFFFF00;STICKLINE(减,0,1,0,0),COLORFFFF00;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,2,'低进'),COLORFFFFFF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,13,'▲'),COLORFF00FF;DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,10,'↑'),COLORFF00FF;小股民:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);庄家:= EMA(0.667*REF(小股民,1)+0.333*小股民,2);DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,1.9,'卖'),COLOR00FF00;DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,12,'↓'),COLOR00FF00;高出:100*(CROSS(庄家,小股民) AND 小股民>70),COLOR000000,LINETHICK1,STICK;RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH),COLORRED;买:IF(黄金AND RSVV<VARB2-2,18,0),COLOR2E2E2E,STICK,LINETHICK1;DRAWTEXT(买>0,13.6,'买'),COLOR8080FF;再送一个选股预警指标:洗盘后再买入:RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);洗盘再买:黄金 AND RSVV<VARB2-2;。

通达信指标公式源码主力动向

通达信指标公式源码主力动向

通达信指标公式源码主力动向以下是通达信指标公式源码中与主力动向相关的指标:一、主力资金流入流出指标(MF)1.MF公式:MF:=(2*CLOSE-LOW-HIGH)/(HIGH-LOW)*VOL;解释:主力资金流入流出指标(MF)通过计算当前K线的收盘价、最低价、最高价和成交量,来反映市场的主力资金动向。

公式中的CLOSE代表收盘价,LOW代表最低价,HIGH代表最高价,VOL代表成交量。

二、主力排名指标(MI)1.MI公式:MI:=IF(REF(VOL,1)>0,((VOL-REF(VOL,1))/REF(VOL,1))*100,0);解释:主力排名指标(MI)通过计算当前K线的成交量与前一天的成交量的差值,来反映市场主力资金的排名变化情况。

公式中的VOL代表成交量,REF(VOL,1)代表前一天的成交量。

三、主力资金流向指标(MFI)1.MFI公式:MFI:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),12)/SUM(IF(CLOSE<REF(C LOSE,1),VOL,0),12);解释:主力资金流向指标(MFI)通过计算当前K线的收盘价与前一天的收盘价的大小关系,来反映市场主力资金的流向情况。

公式中的CLOSE代表收盘价,REF(CLOSE,1)代表前一天的收盘价,VOL代表成交量。

SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),12)表示过去12天内,收盘价上涨的天数的成交量之和,SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),12)表示过去12天内,收盘价下跌的天数的成交量之和。

四、主力净流入指标(NI)1.NI公式:NI:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,-VOL),12);解释:主力净流入指标(NI)通过计算当前K线的收盘价与前一天的收盘价的大小关系,并乘以成交量的正负值,来反映市场主力资金的净流入情况。

主力散户筹码通达信指标公式源码

主力散户筹码通达信指标公式源码

主力散户筹码指标,主力散户动向一目了然弱势区:20,LINETHICK2,COLORGREEN;强弱分水岭:50,LINETHICK2,COLORWHITE;强势区:80,LINETHICK2,COLORRED;风险区:95,LINETHICK2,COLORLICYAN;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),COLORYELLOW,NODRAW;阻力:REFDATE(V3,DATE),COLORYELLOW,NODRAW;主力:EMA(100*(CLOSE-LLV (LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3), 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),COLORYELLOW;主力筹码集中度:WINNER(C)*100 ,COLORLIMAGENTA,LINETHICK1;M:=60;散户:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))COLORGREEN,LINETHICK1,DOTLINE;散户筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORLICYAN,LINETHICK1,DOTLINE;主力换手率:100*VOL/CAPITAL,NODRAW,COLORLIGREEN;主力筹码估算:EMA(WINNER(CLOSE)*70,3),NODRAW;散户筹码估算:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;散户套牢比率:散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;主力控盘比率:主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;市场总量:=MA(主力筹码估算+散户筹码估算,13),COLORGREEN,LINETHICK2;筹码总量:=IF(市场总量>REF(市场总量,1),市场总量,DRAWNULL),COLORWHITE,LINETHICK2;DRAWRECTREL(0,0,220,650,RGB(01,000,000));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.0,0, '主力:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.0,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.0,0,主力),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.08,0, '走势:'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.08,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.08,0,走势),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.24,0, '主力换手率:'),COLORLIGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.24,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.24,0,主力换手率),COLORLIGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.32,0,'散户:'),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.32,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.32,0,散户),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.40,0,'支撑:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.40,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.40,0,支撑),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.48,0,'阻力:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.48,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.48,0,阻力),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.0,0, '主力筹码集中度:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.0,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.0,0,主力筹码集中度),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.08,0, '主力控盘比率:'),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.08,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.08,0,主力控盘比率),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.16,0, '主力筹码估算:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.16,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.16,0,主力筹码估算),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.32,0, '散户套牢比率:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.32,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.32,0,散户套牢比率),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.40,0, '散户筹码集中度:'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.40,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.40,0,散户筹码集中度),COLORGREEN;。

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

【通达信】动力线(强弱分界、底部、预警、顶部、走势、主力线)-指标公式源码N:=30;M:=13;LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;RSIF:=90-RSI1,COLOR33DD33;A4:=((C-LLV(L,33))/(HHV(H,33)-LLV(L,33)))*67;VAR22:=LLV(LOW,10);VAR33:=HHV(HIGH,25);动力线:EMA((CLOSE-VAR22)/(VAR33-VAR22)*4,4);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;PP101:=SMA(RSV,3,1);PP102:=SMA(PP101,3,1);PP103:=3*PP101-2*PP102;STICKLINE(动力线>0 AND ISLASTBAR AND ((PP103>PP101 ANDPP103<REF(PP103,1)) OR PP103>PP101),20,80,0,1),COLORGRAY;STICKLINE(动力线>=0.2 AND 动力线<0.5 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),20,35,2,1),COLORGRAY;{底部保持关注,灰色}STICKLINE(动力线>=0.5 AND 动力线<1.75 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),35,50,2,0),COLORYELLOW;{底部酌情买入,黄色}STICKLINE(动力线>=1.75 AND 动力线<3.2 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),50,65,2,0),COLORRED;{强势持仓段,红色}STICKLINE(动力线>=3.2 AND 动力线<3.45 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),65,72,2,0),COLORLIRED;{阶段卖出,粉红}STICKLINE(动力线>=3.45 AND ISLASTBAR,72,80,2,0) ANDPP103<PP101,COLORCYAN;{清仓卖出,青色};STICKLINE(PP103<PP101 AND ISLASTBAR,30,70,1,1),COLORGREEN;{甭看了,快找高人指点或者骂街,好像要大跌,绿色};{以下显示在上方第二行}STICKLINE(动力线>0 AND ((PP103>PP101 AND PP103<REF(PP103,1)) ORPP103>PP101),95,94,1,0),COLORGRAY;STICKLINE(动力线>=0.2 AND 动力线<0.5 AND ((PP103>PP101 ANDPP103<REF(PP103,1)) OR PP103>PP101),95,92,3,0),COLORGRAY;{底部保持关注,灰色}STICKLINE(动力线>=0.5 AND 动力线<1.75 AND ((PP103>PP101 ANDPP103<REF(PP103,1)) OR PP103>PP101),95,94,1,0),COLORYELLOW;{底部酌情买入,黄色}STICKLINE(动力线>=1.75 AND 动力线<3.2 AND ((PP103>PP101 ANDPP103<REF(PP103,1)) OR PP103>PP101),95,94,1,0),COLORRED;{强势持仓段,红色}STICKLINE(动力线>=3.2 AND 动力线<3.45 AND ((PP103>PP101 ANDPP103<REF(PP103,1)) OR PP103>PP101),95,92,3,0),COLORLIRED;{阶段卖出,粉红}STICKLINE(动力线>=3.45,95,92,3,0) AND PP103<PP101,COLORCYAN;{清仓卖出,青色};STICKLINE(PP103<PP101,95,94,1,0),COLORGREEN;{甭看了,快找高人指点或者骂街,好像要大跌,绿色};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);STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2,0),COLORMAGENTA; STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2,0),COLORGREEN;强弱分界:=50,COLORFFFFCC;底部:=0,COLOR00FFFF;安全:=20,COLORFFAA66,LINETHICK1;预警:=80,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,价位线),110-4,'●卖'),COLORWHITE;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);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),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), LINETHICK2,COLORBLUE;超短线:=(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK2,COLORBLUE;VAR11:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR21:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),10,1);VAR31:=EMA(VAR21,10);VAR41:=LLV(LOW,33);VAR51:=EMA(IF(LOW<=VAR41,VAR31,0),3);主力进场:IF(VAR51>REF(VAR51,1),VAR51,0),COLORRED,NODRAW;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLOR000055;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.6,0 ),COLOR000077; STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.1,0 ),COLOR000099; STICKLINE(VAR51>REF(VAR51,1),0,VAR51,1.5,0 ),COLOR0000BB; STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.9,0 ),COLOR0000DD; STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.3,0 ),COLOR0000FF;洗盘:IF(VAR51<REF(VAR51,1),VAR51,0),COLORGREEN,NODRAW;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,3,0),COLOR005500;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.6,0),COLOR007700;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.1,0),COLOR009900;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,1.5,0),COLOR00BB00;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.9,0),COLOR00DD00;STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.3,0),COLOR00FF00;VAR12:=3;VAR28:=(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(VAR28,VAR11),100,0),COLORRED,LINETHICK2;} SS1:=(LOW+HIGH+CLOSE*2)/4;SS2:= MA(SS1,4);SS3:=HHV(SS2,10);SS4:=MA(SS3,3);SS5:=1.25*SS4-0.25*SS3;XKKJ:=IF(SS5>SS3,SS3,SS5);FF1:=LLV(SS2,10);FF2:=MA(FF1,3);FF3:=1.25*FF2-0.25*FF1;DKKJ:=IF(FF3<FF1,FF1,FF3);MA13:=MA(C,13);ZDHM:=CROSS(C,DKKJ) AND CROSS(C,MA13) AND CROSS(C,XKKJ);ZHM:=CROSS(C,MA13) AND CROSS(C,XKKJ);大黑马:IF(ZDHM OR ZHM,50,0),COLORYELLOW,LINETHICK3;动态底部:=EMA(IF(L<=LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5, 3);准备买入:=CROSS(C,TROUGH(CLOSE,N,1)*1.02);低点:IF(动态底部 AND 准备买入,50,0),COLORWHITE,LINETHICK3;RSV11:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;K:=SMA(RSV11,3,1);D:=SMA(K,3,1);J:=3*K-2*D;短线:=EMA(J,6),COLORRED;浮筹:=MA(短线,28)*1,LINETHICK2,COLORGREEN;空方:=MA(100*(HHV(HIGH,35)-CLOSE)/(HHV(HIGH,35)-LLV(LOW,35)),3),COLORYE LLOW;DRAWTEXT(CROSS(短线,浮筹) AND 短线<36,20+4,' 买'),COLORLIBLUE; DRAWICON(CROSS(短线,浮筹) AND 短线<36,20+4,17),COLORBLUE, LINETHICK1; DRAWTEXT(CROSS(浮筹,空方),浮筹,' 追'),COLORWHITE;DRAWICON(CROSS(浮筹,空方),浮筹,16);【通达信】动力线(强弱分界、底部、预警、顶部、走势、主力线)-指标公式效果图(文档来源:若水财经社区)。

相关文档
最新文档