1、通达信指标公式源码大全 TPMK standardization office【 TPMK5AB- TPMK08- TPMK2C- TPMK18】通达信指标公式源码大全【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(C
2、LOSE,60) COLORYELLOW POINTDOT LINETHICK2 ;魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2;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,
3、5,1);VAR8:=VOLREF(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
4、)+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),
5、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) AND ZD=50;KX2:=(CLOSE=50;KX3:=(CLOSE=OPEN) AND ZD50;KX4:=(CLOSEOPEN) AND ZD50;IF(A5REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4REF(A4,1),A4,DRAWN
6、ULL),COLOR000055,LINETHICK1;IF(A3REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1REF(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(
7、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.
8、5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/(HIGH-LOW)*2-ABS(CLOSE-OPEN);ZM:=IF(CLOSEOPEN,VAR1*(HIGH-LOW),IF(CLOSEOPEN,0-VAR1*(HIGH-CLOSE)+(OPEN-LOW),IF(CLOSE0 AND REF(MMB,1)MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,R
9、GB(0,0,0);DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0);STICKLINE(COUNT(上攻周期3,5)=3 AND SG,0,上攻周期,1.5,0),COLORRED;XG: COUNT(COUNT(上攻周期3,5)=3 AND SG,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
10、(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(VAR4VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4VAR2 AND VAR6VAR8 AND VAR8VAR4,VAR4,VAR6,0.5,1),COLORRED , ;S
11、TICKLINE(VAR4VAR2 AND VAR6VAR8 AND VAR8VAR2 AND VAR6VAR4,VAR4,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4VAR2 AND VAR6VAR8 AND VAR6VAR2 AND VAR6VAR8 AND VAR6VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4VAR2 AND VAR6VAR8 AND VAR8VAR2 AND VAR6VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4VAR8 AND VAR6
12、VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4VAR2 AND VAR6VAR8 AND VAR8VAR4,VAR4,VAR6,0.5,1),COLORGREEN , ;STICKLINE(VAR4VAR2 AND VAR6VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4VAR8 AND VAR6VAR4,VAR2,VAR8,0.5,1),COLORGREEN ,;STICKLINE(VAR4VAR8 AND VAR6VAR4,VAR2,VAR8,0.5,1),COLORGREEN , ;
13、STICKLINE(VAR4VAR2 AND VAR6VAR8 AND VAR8VAR2,VAR2,VAR6,0.5,1), COLORGREEN , ;STICKLINE(VAR4VAR2 AND VAR6VAR2,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(V
14、AR1,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,COL
15、ORYELLOW;金叉:短线中线 AND REF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL2*REF(VOL,1)AND CLOSEVAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSEREF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSEREF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSEREF(HIGH,3),1,0);突破:T
16、J2=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),CO
17、LOR0000A5;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(CO,C,O,3,0),COLOR353500;STICKLINE(CO,C,O,2.5,0),COLOR454500;STICKLINE(CO,C,O,2,0),COLOR555500;STICKLINE(CO,C,O,1.5,0),COLOR656500;STICKLINE(CO,C,O,1,0),COLOR757500;STICKLINE
18、(CO,C,O,0.5,0),COLOR858500;STICKLINE(CO,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+INTPART(YEAR-1989)/4)+IF(MONTHWEEKDAY-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)+
19、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
20、空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空)P AND CROSS(慢线,ELI空) AND 慢线20,90,0);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:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA(C+L)/2,2),5)/10.158,COLORRED;平衡线:LLV(SUM( EMA(C+L)/2,2),5)/
21、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,POW(EMA(C+L)/2,3)-VAR1)*5,2)/10,-1*POW(EMA(C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR20,VAR2-0,0);STICKLINE(VAR30 AND REF(VAR3,1)=0 AND (C+L)/2
22、MA(C+L)/2,8),强弱线,强弱线+0.2,4,0),COLORFFAACC;DRAWTEXT(VAR30 AND REF(VAR3,1)=0 AND (C+L)/2MA(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
23、,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);分水岭:S
24、MA(M2,2.5,1.5),LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN; 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;
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1