资源描述
通达信】魔鬼操盘(主图) - 指标公式源码均 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:=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)+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=50;KX3:=(CLOSE=OPEN) AND ZD50;KX4:=(CLOSEOPEN) AND ZD50;IF(A5REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4REF(A4,1),A4,DRAWNULL),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(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(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);DRAWBAN上攻周期,RGB(255,120,120),3,RGB(0,0,0);DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0);STICKLINE(COUN上攻周期 3,5)=3 AND SG,0,上攻周期,1.5,0),C0L0RRED;XG: COUNT(COUN上攻周期 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)*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 ANDVAR8VAR4,VAR4,VAR6,0.5,1),COLORRED , ;STICKLINE(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 VAR6VAR4,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 , ;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(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,C0L0RWHIT中线:VAR6,C0L0RYELLC金叉:短线中线 AND REF短线,1)=REF(中线,1),N0DRAW下跌:IF(VAR 仁VAR6,VAR6,DRAWNULL),C0L0RGREEN;TJ1:=V0L=HHV(V0L,10)ANDV0L2*REF(V0L,1)AND CLOSEVA立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCL0SEREF(HIGH,1),1,IF(BARSLAST立 桩量)=2 ANDCL0SEREF(HIGH,2),1,IF(BARSLAST立 桩量)=3 ANDCLOSEREF(HIGH,3),1,0);突破:TJ2=1,N0DRAW;STICKLINE(CL0SE,REF(HIGH,BARSLAST(量),REF(HIGH,BARSLAST立桩量),1,0),C0L0RCYAN;STICKLINE(CL0SE,REF(L0W,BARSLA立桩量),REF(LOW,BARSLAST立 桩量),1,0),C0L0RYELL0W;STICKLINE(C=0,C,0,3,0),C0L0R000045;STICKLINE(C =0,C,0,2.5,0),C0L0R000065;STICKLINE(C=0,C,0,2,0),C0L0R000085;STICKL INE(C=0,C,0,1.5,0),C0L0R0000A5;STICKLINE(C=0,C,0,1,0),C0L0R0000C5;S TICKLINE(C=0,C,0,0.5,0),C0L0R0000E5;STICKLINE(C=0,H,L,0,0),C0L0R000 0F5;STICKLINE(C0,C,0,3,0),C0L0R353500;STICKLINE(C0,C,0,2.5,0),C0L0R 454500;STICKLINE(C0,C,0,2,0),C0L0R555500;STICKLINE(C0,C,0,1.5,0),C0 L0R656500;STICKLINE(C0,C,0,1,0),C0L0R757500;STICKLINE(C0,C,0,0.5,0) ,C0L0R858500;STICKLINE(C0,H,L,0,0),C0L0R959500;ZRR:=(YEAR-1992)*365+ INTPART(YEAR-1989)/4)+IF(M0NTHWEEKDAY-REF(WEEKDAY,1)+1,N0DRAW;T1:=REF(T,T)+ T,N0DRAW;T2:=REF(T,T1)+T1,N0DRAW;T3:=REF(T,T2)+T2,N0DRAW;T4:=REF(T,T3 )+T3,N0DRAW;T5:=REF(T,T4)+T4,N0DRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;10:(REF(CL0SE,T)+REF(CL0SE,T1)+REF(CL0SE,T2)+REF(CL0SE,T3)+REF(CL0SE, T4)+REF(CL0SE,T5)+REF(CL0SE,T6)+REF(CL0SE,T7)+REF(CL0SE,T8)+CL0SE)/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(CROS慢线,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,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)/2MA(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,8);编著:=SMA圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编著75,AABB,AABB*0.99,15,1),COLOR0000FF;VARZT:=BARSLAS平台启动);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* 分水岭丄INETHICK2,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;枯藤老树昏鸦,小桥流水人家,古道西风瘦马。夕阳西下,断肠人在天涯
展开阅读全文