通达信指标公式源码大全
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 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 LlNETHlCK3;
均 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
KX3:=(CLoSE>=0PEN) AND ZD<50;
KX4:=(CLoSEVoPEN) AND ZD<50;
IF(A5REF(A5,1),A5,DRAWNULL),C0L0R00005B,LINETHICK2; IF(A4V REF(A4,1),A4,DRAWNULL),COLOR8C0000, LINETHICK1; IF(A4>REF(A4,1),A4,DRAWNULL),C0L0R000055, LINETHICK1; IF(A3REF(A3,1),A3,DRAWNULL),C0L0R00006C,LINETHICK1; IF(A2REF(A2,1),A2,DRAWNULL),C0L0R00007D,LINETHICK1; IF(AIVREF(A1,1),A1,DRAWNULL),C0L0RCC0000, LINETHICK1; IF(A1>REF(A1,1),A1,DRAWNULL),C0L0R00009B,LINETHICK1; STICKLINE(KX1,C,0,4,1),C0L0R4440FF;
STICKLINE(KX1,C,H,0.5,1),C0L0R4440FF;
STICKLINE(KX1, O, L,0.5,1),C0L0R4440FF;
STICKLINE(KX2,C,0,4,0),C0L0R4440FF;
STICKLINE(KX2,0,H,0.5,0),C0L0R4440FF;
STICKLINE(KX2,C,L,0.5,0),C0L0R4440FF;
STICKLINE(KX3,C,0,4,1),C0L0RFFFF33;
STICKLINE(KX3,C,H,0.5,1),C0L0RFFFF33;
STICKLINE(KX3,C,H,0.5,1),C0L0RFFFF33;
STlCKLlNE(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 GH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT; ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLO SEVOPEN,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) 上攻周期: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, 上攻周