以下是通达信一笑之MACD源码
最近天天研究指标, 把自己搞的很累,结果这2周自己失误导致满仓,然后刚好股灾,让我亏了10几万, 于是还是继续研究指标,
看到有一个“一笑之MACD”这个指标, 发出的买入信号神准
{公式名称: 一笑之MACD
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式源码:}
DRAWGBK(CLOSE>0,RGB(0,150,150),RGB(0,0,100),0,17,0),LINETHICK2;
做多动力:(CLOSE-LLV(CLOSE,250))/LLV(CLOSE,250)*100,COLORRED,LINETHICK2;
做空动力:(HHV(CLOSE,250)-CLOSE)/CLOSE*100,COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(做多动力,做空动力),做多动力,102),COLORMAGENTA,LINETHICK4;
DIFF:(EMA(做多动力,12)-EMA(做多动力,26))*5,COLORWHITE,LINETHICK2;
DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK2;
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
DRAWTEXT(CROSS(DIFF,DEA),DIFF,103),COLORRED,LINETHICK4;
零轴:0,COLORF57474,LINETHICK2;
DRAWTEXT(CROSS(DIFF,零轴),DIFF,104),COLORRED,LINETHICK4;
X_1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
X_2:=EMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,4)*2;
X_3:=EMA(0.618*REF(X_2,1)+0.382*X_2,2);
X_4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
X_5:=POW(MA(LOW,5),2)+MA(LOW,5);
X_6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
X_7:=(X_4-LLV(X_5,64))/(HHV(X_6,64)-LLV(X_5,64))*150+65-10;
X_8:=SMA(SMA(X_7,3,1)*1.5-100,3,1);
X_9:=3*(SMA(X_7,3,1)*1.5-100)-2*X_8;
X_10:=(HIGH+LOW+CLOSE*2)/4;
X_11:=(X_10-EMA(X_10,13))*100/STD(X_10,13);
X_12:=EMA(EMA(X_11,5),13)+200-100;
X_13:=SMA(X_1,3,1)+X_2+(SMA(X_7,3,1)*1.5-100)+X_12;
X_14:=SMA(SMA(X_1,3,1),3,1)+X_3+X_8+EMA(X_12,10);
X_15:=3*SMA(X_1,3,1)-2*SMA(SMA(X_1,3,1),3,1)+(3*X_12-2*EMA(X_12,10))+X_9+(3*X_12-2*EMA(X_12,10));
X_16:=(HIGH+LOW+CLOSE)/3;
X_17:=(X_16-MA(X_16,34))/(0.015*AVEDEV(X_16,34));
X_18:=(HIGH+LOW+CLOSE+X_16)/4;
X_19:=(X_18-EMA(X_18,24))/STD(X_18,24)*100;
X_20:=(X_16-MA(X_16,24))/(0.015*AVEDEV(X_16,24));
X_21:=((EMA(X_19,5)+X_20+X_17)/3+165)/4;
X_22:=(X_13+X_14+X_15*30)/32/5-15;
X_23:=EMA(EMA(CLOSE,13),13);
X_24:=(X_23-REF(X_23,1))/REF(X_23,1)*6400;
X_25:=100*WINNER(CLOSE*0.95);
X_26:=EMA((X_21+X_22)/2/1.1,1);
X_27:=MA(X_26,3);
X_28:=EMA(OPEN,7);
X_29:=EMA(X_28,21);
X_30:=CROSS(X_28,X_29);
X_31:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
DM:IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,20,0),COLOR0078FF,LINETHICK2;
DRAWICON(DM,70,1);
DP:IF(PEAKBARS(2,9,1)=1,80,100),COLORBLUE,LINETHICK2;
DRAWICON(DP,70,2);
ZM:IF(TROUGHBARS(3,18,1)=0 AND HIGH>LOW+0.1,20,0),COLORMAGENTA,LINETHICK3;
DRAWICON(ZM,70,1);
ZP:IF(PEAKBARS(2,15,1)=0,80,100),COLORGREEN,LINETHICK3;
DRAWICON(ZP,70,2);
QM:(ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)<REF(ZIG(3,35),2))*50,STICK,COLORRED,LINETHICK6;
DRAWICON(QM,70,1);
QP:(ZIG(3,35)<REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)>REF(ZIG(3,35),2))*50,STICK,COLORGREEN,LINETHICK4;
DRAWICON(QP,70,2);
多空MACDKD均线:100,COLORRED,LINETHICK0;
工作WLRSIVOL:100,COLORRED,LINETHICK0;
X_32:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
X_33:=SMA(SMA(X_32,3,1),3,1)/28.57;
X_34:=EMA(X_33,5);
X_35:=3*X_33-2*X_34;
X_36:=CROSS(X_35,X_33) AND X_33<2.1 AND CLOSE>OPEN;
STICKLINE(X_36,30,0,4,0),COLOR770077;
STICKLINE(X_36,30,0,3,0),COLOR990099;
STICKLINE(X_36,30,0,2,0),COLORBB00BB;
STICKLINE(X_36,30,0,1,0),COLORDD00DD;
STICKLINE(X_36,30,0,0.3,0),COLORMAGENTA;
X_37:=282797888;
X_38:=66;
评论(0)