通达信指标公式源码大全.docx
《通达信指标公式源码大全.docx》由会员分享,可在线阅读,更多相关《通达信指标公式源码大全.docx(9页珍藏版)》请在冰豆网上搜索。
![通达信指标公式源码大全.docx](https://file1.bdocx.com/fileroot1/2023-2/26/cab3087f-66e5-42d7-aca4-db8e331b8594/cab3087f-66e5-42d7-aca4-db8e331b85941.gif)
通达信指标公式源码大全
集团文件发布号:
(9816-UATWW-MWUB-WUNN-INNUL-DQQTY-19882)
通达信指标公式源码大全
【通达信】魔鬼操盘(主图)-指标公式源码
均5:
MA(CLOSE,5)COLORYELLOW;
均10:
MA(CLOSE,10)COLORGREEN;
均30:
MA(CLOSE,30)COLORMAGENTA;
均60:
MA(CLOSE,60)COLORREDPOINTDOTLINETHICK3;
均250:
MA(CLOSE,250)COLORBLUELINETHICK2;
魔鬼通道上:
均30+2*STD(CLOSE,60)COLORYELLOWPOINTDOTLINETHICK2;
魔鬼通道下:
均30-2*STD(CLOSE,60)COLORYELLOWPOINTDOTLINETHICK2;
VAR1:
=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:
=SMA(VAR1,3,1);
VAR3:
=SMA(VAR2,3,1);
VAR4:
=VAR1*1.05;
VAR5:
=MA(CLOSE,5);
VAR6:
=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR7:
=SMA(VAR6,5,1);
VAR8:
=VOL>REF(VOL,1);
VAR9:
=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);
【通达信】平均价格(主图)-指标公式源码
A:
=(3*C+H+L+O)/6;
XJ:
=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
YCZXH:
=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4;
YCZXL:
=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32))/4;
SMH:
EMA(YCZXH,21),COLOR004000;
SML:
EMA(YCZXL,21),COLOR004000;
SMJ:
(SML+SMH)/2,COLOR004000;
PJ:
=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;
A1:
=EMA(PJ,3),COLOR004000;A2:
=EMA(PJ,5),COLOR004000;
A3:
=EMA(PJ,7),COLOR004000;A4:
=EMA(PJ,9),COLOR004000;
A5:
=EMA(PJ,11),COLOR004000;
LX:
=REF(XJ,1);
ZD:
=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;
KX1:
=(CLOSE>=OPEN)ANDZD>=50;
KX2:
=(CLOSE=50;
KX3:
=(CLOSE>=OPEN)ANDZD<50;
KX4:
=(CLOSEIF(A5IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;
IF(A4IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;
IF(A3IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;
IF(A2IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;
IF(A1IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;
STICKLINE(KX1,C,O,4,1),COLOR4440FF;
STICKLINE(KX1,C,H,0.5,1),COLOR4440FF;
STICKLINE(KX1,O,L,0.5,1),COLOR4440FF;
STICKLINE(KX2,C,O,4,0),COLOR4440FF;
STICKLINE(KX2,O,H,0.5,0),COLOR4440FF;
STICKLINE(KX2,C,L,0.5,0),COLOR4440FF;
STICKLINE(KX3,C,O,4,1),COLORFFFF33;
STICKLINE(KX3,C,H,0.5,1),COLORFFFF33;
STICKLINE(KX3,O,L,0.5,1),COLORFFFF33;
STICKLINE(KX4,C,O,4,0),COLORFFFF33;
STICKLINE(KX4,O,H,0.5,0),COLORFFFF33;
STICKLINE(KX4,C,L,0.5,0),COLORFFFF33;
【通达信】牛劲十足(副图)-指标公式源码
VAR1:
=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
ZM:
=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSEZM1:
=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEMMB:
=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;
SG:
=MMB>0ANDREF(MMB,1)上攻周期:
COUNT(SG,5),LINESTICK,COLORWHITE;
JSC:
=上攻周期<1;
DBQD:
=FILTER(COUNT(JSC,5)>3ANDNOT(JSC),10);
DRAWICON(DBQD,2,1);
DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));
DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));
STICKLINE(COUNT(上攻周期>3,5)>=3ANDSG,0,上攻周期,1.5,0),COLORRED;
XG:
COUNT(COUNT(上攻周期>3,5)>=3ANDSG,20)>4;
【通达信】魔鬼K线(副图)-指标公式源码
VAR1:
=REF(OPEN,1);
VAR2:
=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;
VAR3:
=REF(CLOSE,1);
VAR4:
=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
VAR5:
=REF(HIGH,1);
VAR6:
=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;
VAR7:
=REF(LOW,1);
VAR8:
=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;
STICKLINE(VAR4STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED,;
STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED,;
STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR8STICKLINE(VAR4>VAR2ANDVAR6VAR4,VAR4,VAR8,0.5,1),COLORRED,;
STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR6STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED,;
STICKLINE(VAR4>VAR2ANDVAR6STICKLINE(VAR4>VAR2ANDVAR6VAR2,VAR2,VAR6,0.5,1),COLORRED,;
STICKLINE(VAR4VAR8ANDVAR6STICKLINE(VAR4STICKLINE(VAR4VAR4,VAR4,VAR8,0.5,1),COLORGREEN,;
STICKLINE(VAR4VAR8ANDVAR6STICKLINE(VAR4VAR8ANDVAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN,;
STICKLINE(VAR4STICKLINE(VAR4VAR2,VAR2,VAR6,0.5,1),COLORGREEN,;
【通达信】牛熊分界(立桩量、中线)-指标公式源码
AAA:
=(3*C+H+L+O)/6;VAR1:
=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:
=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:
=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:
=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:
=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:
=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:
VAR1,COLORWHITE;中线:
VAR6,COLORYELLOW;金叉:
短线>中线ANDREF(短线,1)=REF(中线,1),NODRAW;下跌:
IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:
=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR1;立桩量:
=FILTER(TJ1,5);TJ2:
=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE>REF(HIGH,3),1,0)));突破:
TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:
=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:
=REF(T,T)+T,NODRAW;T2:
=REF(T,T1)+T1,NODRAW;T3:
=REF(T,T2)+T2,NODRAW;T4:
=REF(T,T3)+T3,NODRAW;T5:
=REF(T,T4)+T4,NODRAW;T6:
=REF(T,T5)
+T5,NODRAW;T7:
=REF(T,T6)+T6,NODRAW;T8:
=REF(T,T7)+T7,NODRAW;周10:
(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10,LINETHICK2;
【通达信】牛准反弹(快线、慢线)-指标公式源码
N:
=9;
M1:
=3;
M2:
=3;
P:
=9;
快线:
=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
慢线:
=SMA(快线,M1,1);
ELI空:
=SMA(慢线,M2,1);
ELI牛股:
=IF(BARSLAST(CROSS(慢线,ELI空))LC:
=REF(CLOSE,1);
RSI:
=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
牛准反弹:
=CROSS(RSI,11)*80;
XG:
牛准反弹ORELI牛股;
【通达信】启动提示(平台线、启动线)-指标公式源码
启动线:
SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;
平衡线:
LLV(SUM(EMA((C+L)/2,2),5)/10.158,4),COLORFF00FF;
平台线:
LLV(SUM(EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;
强弱线:
EMA(启动线,21),COLORYELLOW;
STICKLINE(平台线<启动线,启动线,平台线,0.1,0),COLORFFCCAA;
STICKLINE(平衡线<启动线,启动线,平衡线,0.1,0),COLORRED;
VAR1:
=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
VAR2:
=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);
VAR3:
=IF(VAR2>0,VAR2-0,0);
STICKLINE(VAR3>0ANDREF(VAR3,1)=0AND(C+L)/2>MA((C+L)/2,8),
强弱线,强弱线+0.2,4,0),COLORFFAACC;
DRAWTEXT(VAR3>0ANDREF(VAR3,1)=0AND(C+L)/2>MA((C+L)/2,8),
强弱线+0.35,'注意控制'),LINETHICK3,COLORFFAACC;
【通达信】平台启动(主图)-指标公式源码
圣:
=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
灵:
=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
石:
=SMA(灵,13,8);
仙:
=CEILING(SMA(石,13,8));
编着:
=SMA(圣,21,8);
AABB:
=IF(L,CONST(L),DRAWNULL);
平台启动:
STICKLINE(仙-编着>75,AABB,AABB*0.99,15,1),COLOR0000FF;
VARZT:
=BARSLAST(平台启动);
DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;
【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码
JJ:
=(CLOSE+HIGH+LOW)/3;
A:
=EMA(JJ,10);
B:
=REF(A,1);
M1:
=EMA(CLOSE,3);
M2:
EMA(CLOSE,8);
分水岭:
SMA(M2,2.5,1.5),LINETHICK2,COLORRED;
牛线:
3*M2-2*分水岭,LINETHICK2,COLORFF00FF;
熊线:
4*分水岭-3*M2,LINETHICK2,COLORGREEN;
IF(牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;
IF(分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;
IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;
M3:
EMA(M2,13);
M4:
EMA(M2,55);
VAR1:
=EMA(M3,55);
M5:
EMA(M4,81),COLORRED,LINETHICK1;
股道:
=(1-C/SMA(C,13,1))*100;
基础:
=EMA(C,43);
中线强弱拐点:
EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;