通达信指标公式源码大全

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

【通达信】魔鬼操盘(主图)-指标公式源码
均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(CLOSE,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,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(HH
V(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) AND ZD>=50;
KX2:=(CLOSE<OPEN) AND ZD>=50;
KX3:=(CLOSE>=OPEN) AND ZD<50;
KX4:=(CLOSE<OPEN) AND ZD<50;
IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;
IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;
IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;
IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;
IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;
IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;
IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;
IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;
IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;
IF(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(CLOSE<OPEN,VAR1*((HI
GH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLO
SE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;
SG:=MMB>0 AND REF(MMB,1)<MMB;
上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;
JSC:= 上攻周期<1;
DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(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)>=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(ABS(CLOSE-VAR3),6,1)*1
00;
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(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ; STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;
STICKLINE(VAR4>VAR2 AND VAR6>VAR8 AND
VAR8>VAR4,VAR4,VAR6,0 、5,1),COLORRED , ;
STICKLINE(VAR4>VAR2 AND VAR6>VAR8 AND
VAR8<VAR4,VAR4,VAR6,0 、5,1),COLORRED ,;
STICKLINE(VAR4>VAR2 AND VAR6<VAR8 AND
VAR6>VAR4,VAR4,VAR8,0 、5,1),COLORRED , ;
STICKLINE(VAR4>VAR2 AND VAR6>VAR8 AND
VAR6<VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;
STICKLINE(VAR4>VAR2 AND VAR6>VAR8 AND
VAR6>VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;
STICKLINE(VAR4>VAR2 AND VAR6<VAR8 AND
VAR8<VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;
STICKLINE(VAR4>VAR2 AND VAR6<VAR8 AND
VAR8>VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;
STICKLINE(VAR4<VAR2 AND VAR6>VAR8 AND
VAR6<VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ;
STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND
VAR8<VAR4,VAR4,VAR6,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR6>VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 AND
VAR6<VAR4,VAR2,VAR8,0 、5,1),COLORGREEN ,; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 AND VAR6>VAR4,VAR2,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0 、5,1), COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND
VAR8>VAR2,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:=(L
LV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+H
HV(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; 金叉:短线>中线AND REF( 短线,1)=REF( 中线,1),NODRAW; 下
跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(
VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1; 立桩
量 )),REF(LOW,BARSLAST( 立桩
量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;ST
ICKLINE(C>=O,C,O,2 、
5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKL
INE(C>=O,C,O,1 、
5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICK
LINE(C>=O,C,O,0 、
5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKL
INE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2 、
5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLI
NE(C<O,C,O,1 、
5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLI
NE(C<O,C,O,0
5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(Y 量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST (
CLOSE>REF(HIGH,1),1,IF(BARSLAST(
CLOSE>REF(HIGH,2),1,IF(BARSLAST(
CLOSE>REF(HIGH,3),1,0))); 突
立桩量)=1 AND
立桩量)=2 AND
立桩量)=3 AND
立桩 立桩
破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(
量 )),REF(HIGH,BARSLAST( 立桩
量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(
EAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONT
H-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPA
RT(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,T
3)+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,NODRA
W;周
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 空))<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)/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>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8), 强弱线,强弱线+0、2,4,0),COLORFFAACC;
DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (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;。

相关文档
最新文档