以下是通达信超前MACD优化版副图源码、无未来

通达信超前MACD优化版副图源码、无未来

DIFF:EMA(CLOSE,7) – EMA(CLOSE,19);

DEA:EMA(DIFF,9);

MACD:6*(DIFF-DEA),COLORSTICK;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);

A2:=BARSLAST(REF(CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3)),1));

B2:=REF(C,A2+1)>C AND REF(“KDJ.K”(9,3,3),A2+1)<“KDJ.K”(9,3,3) AND CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3));

A3:=BARSLAST(REF(CROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24)),1));

B3:=REF(C,A3+1)>C AND REF(“RSI.RSI1″(6,12,24),A3+1)<“RSI.RSI1″(6,12,24) AND CROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24));

C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));

D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);

C2:=BARSLAST(REF(CROSS(“KDJ.D”(9,3,3),”KDJ.K”(9,3,3)),1));

D2:=REF(C,C2+1)<C AND REF(“KDJ.K”(9,3,3),C2+1)>”KDJ.K”(9,3,3) AND CROSS(“KDJ.D”(9,3,3),”KDJ.K”(9,3,3));

C3:=BARSLAST(REF(CROSS(“RSI.RSI2″(6,12,24),”RSI.RSI1″(6,12,24)),1));

D3:=REF(C,C3+1)<C AND REF(“RSI.RSI1″(6,12,24),C3+1)>”RSI.RSI1″(6,12,24) AND CROSS(“RSI.RSI2″(6,12,24),”RSI.RSI1″(6,12,24));

MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;

KDJ底背:IF(B2>0,-0.1,0),COLORCC0055,POINTDOT;

RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;

MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;

KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;

RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;

STICKLINE(B1>0,-0.2,0,2.5,1),COLORMAGENTA;

STICKLINE(B2>0,-0.16,0,3.5,1),COLORCC0066;

STICKLINE(B3>0,-0.18,0,5,1),COLORYELLOW;

STICKLINE(D1>0,0.2,0,2.5,0),COLOR00FF00;

STICKLINE(D2>0,0.18,0,3.5,0),COLORFFCC66;

STICKLINE(D3>0,0.16,0,6,0),COLORWHITE;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1,1),COLORRED;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0,1),COLORCYAN;

STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,1,1),COLORGREEN;

STICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,1,1),COLORMAGENTA;

STICKLINE(C>0,0,0,50,1),COLORBLUE;

DIFF,COLORGREEN;

DEA,COLORYELLOW;

:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED;

:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA;

{大盘神针}

UAR1:=INDEXA/100000000;

UAR2:=INDEXADV;

UAR3:=INDEXDEC;

UAR4:=UAR2/(UAR2+UAR3);

UAR5:=UAR3/(UAR2+UAR3);

UAR6:=EMA(UAR4,3);

UAR7:=EMA(UAR5,3);

UAR8:=EMA(UAR6,5);

UAR9:=EMA(UAR7,5);

进场资金: EMA(UAR8,10)/150 ;

资金: EMA(UAR9,10)/150;

大盘神针:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,3)),7,1)*100<20

AND SMA(MAX(CLOSE-REF(CLOSE,3),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,3)),13,1)*100<25

AND MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5)>-19

AND (LOW>LLV(LOW,5) AND (CLOSE-HHV(CLOSE,8))/HHV(CLOSE,8)<-0.05 AND

MA(AMOUNT,125)/MA(VOL,125)/(MA(AMOUNT,5)/MA(VOL,5))>1.12))*0.75;

买入:=BARSLAST(大盘神针)<15 AND CROSS(MACD.DIF,MACD.DEA);

:=BARSLAST(LLV(L,4)=LLV(L,120))<5 ;

均线:=CROSS(MA(C,5),MA(C,20));

:=( AND 均线买 AND (进场资金>资金) OR 买入);

STICKLINE(,资金-1.35,资金-1.5,2,0),COLORYELLOW;

DRAWTEXT(,资金-1.28,’‘),COLORYELLOW;

安全区:STICKLINE(,资金-0.01,资金,0.04,1),COLORRED;

{黄雀}

短线趋势:=(EMA(C,7) – EMA(C,13));

中线趋势:=EMA(短线趋势,13);

VAR4:=MA(C,7);

VAR5:=MA(C,13);

VAR6:=MA(C,34);

VAR7:=MA(C,55);

VAR10:=((0 – ((10 * (HHV(C,5) – C)) / (HHV(C,5) – LLV(L,5)))) + 10);

VAR11:=((0 – ((10 * (HHV(C,13) – C)) / (HHV(C,13) – LLV(L,13)))) + 10);

VAR12:=((0 – ((10 * (HHV(C,21) – C)) / (HHV(C,21) – LLV(L,21)))) + 10);

VAR13:=((0 – ((10 * (HHV(C,34) – C)) / (HHV(C,34) – LLV(L,34)))) + 10);

VAR14:=REF(中线趋势,1);

VAR15:=中线趋势;

VAR16:=(VAR15 – VAR14);

VAR17:=REF(短线趋势,1);

VAR18:=短线趋势;

VAR19:=(VAR18 – VAR17);

VARE:=(SUM(((C * VOL) * 10),34) / SUM((VOL * 200),34));

VARF:=(INTPART((VARE * 10)) / 10);

吃货:(((((((O<= VAR4) AND (O<= VAR5)) AND (O<= VAR6)) AND (C>= VAR4)) AND (C>= VARF)) AND (VAR16 > 0)) AND (VAR19 > 0)),LINETHICK0;

DRAWBAND (0>吃货,RGB(0,0,0),0<吃货,RGB(200,0,10)),NODRAW;

STICKLINE (吃货,-1.75,-1.60,5,1),COLORCC0099;

{}

STICKLINE((DMI.PDI(14,6)<5 AND DMI.ADX(14,6)>70),1.5,-1.5,0,-1),COLORRED;

DRAWTEXT (,-1.58,’‘),COLORRED;

{一阳二阴}

VAR1:=3;

VAR2:=((3 * SMA((((CLOSE – LLV(LOW,89)) / (HHV(HIGH,89) – LLV(LOW,89))) * 100),5,1)) – (2 * SMA(SMA((((CLOSE – LLV(LOW,89)) / (HHV(HIGH,89) – LLV(LOW,89))) * 100),5,1),3,1)));

大赚小赔:1.5*IF(CROSS(VAR2,VAR1),-0.89,-1),COLORRED,LINETHICK1;

{黄金坑}

RR8:=MA(CLOSE,27);

RR9:=(CLOSE-RR8)/RR8*100;

RRA:=MA(RR9,2);

RRB:=BARSLAST(CROSS(-10,RRA)=1);

RRD:=RRA<-10 AND RRB>3;

黄金坑:0.01*IF(RRD,-300,1),COLORYELLOW,LINETHICK2;

{神秘买点}

SM01:=MA((2*C+H+L)/4,5);

SM02:=SM01*(200-102)/100;

SM03:=(1-7/100)*DMA(C,ABS((2*C+H+L)/4-MA(C,20))/MA(C,20));

SM04:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

SM05:=3*SMA(SM04,3,1)-2*SMA(SMA(SM04,3,1),3,1);

SM06:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));

SM07:=SM02<SM03&&SM05>REF(SM05,1)&&REF(SM05,1)<REF(SM05,2)&&SM06<-100&&SM06>REF(SM06,1);

神秘买点:IF(SM07*0.35,-1.3,-1.5),COLORCC0099,LINETHICK1;

{止盈}

转折周期:=7;转折灵敏:=50;

TTR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),转折周期,1);

HD:=HIGH-REF(HIGH,1);

LD:=REF(LOW,1)-LOW;

DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),转折周期,1);

DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),转折周期,1);

DI:=DMP*100/TTR,COLORRED;

DI:=DMM*100/TTR,COLORGREEN;

转折点:SMA(ABS(DI-DI)/(DI+DI)*100,转折周期,1),NODRAW;

转折点A:=FILTER(转折点<REF(转折点,1)-1.3 AND EVERY(REF(转折点,1)>=REF(转折点,2)-1.3,5) AND REF(转折点,1)>转折灵敏,5);

STICKLINE(转折点A AND REF(DI>DI,1),1.5,-1.5,0,-1),COLORGREEN;

DRAWTEXT (转折点A AND REF(DI>DI,1),1.45,’‘),COLORGREEN;

:1.5*IF(LAST(MA(C,5)>MA(C,10),5,0) AND “CCI.CCI”<REF(“CCI.CCI”,1) AND CROSS(100,”CCI.CCI”),0.9,1),COLORWHITE;

N:=38;N1:=5;N2:=13;

WAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;

X: SMA(WAR1,7,1),LINETHICK1,NODRAW;

WAR2:=SMA(X,5,1);

Y: IF(CROSS(X,WAR2) AND CROSS(MA(C,N1),MA(C,N2) AND X>50) ,WAR2*2,WAR2),COLORYELLOW,NODRAW;

WAR4:= EMA(CLOSE,8);

WAR5:= EMA(CLOSE,20);

黑马上山:IF(CROSS(MA(CLOSE,1),MA(CLOSE,N)) AND X-Y>2 AND WAR4>WAR5 ,WAR2*2,WAR2),COLOR00FF00,NODRAW;

:=(CROSS(MA(CLOSE,1),MA(CLOSE,N)) AND X-Y>2 AND WAR4>WAR5 );

排序:IF(>0,2,0), STICK,COLORCC0099;

DRAWICON(排序>0,2,1);

STICKLINE(X>WAR2,X,Y,0,0), , COLORF00FF0,NODRAW;

STICKLINE(X<WAR2,X,WAR2,0,0), ,COLOR00FF00,NODRAW ;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。