MACD整合吸拉派落指标不含未来函数
指标由通达信MACD和吸拉派落指标相结合,不含未来函数。首先要知道(淡红色柱为吸筹,红柱为拉升,绿柱为派发筹码,白柱为回落)在配合MACD指标的DIF线
也就是短期与长期移动平均线间的离差值,变红色为买入,黄色为关注。
**** Hidden Message *****
值得拥有的 美不自知 发表于 2020-12-2 05:49
大神求码啊,加Q16955154发我好不好
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=MA(C,3);
SHORT:=12;
LONG:=26;
MID:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORYELLOW ;
DEA:EMA(DIF,MID)COLORFF9900 ;
MACD:=(DIF-DEA)*2;
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,MACD,2,0),COLORYELLOW;
{持币:STICKLINE((SAR(10,2,20)>=H),MACD,0,1.5,0),COLORGREEN;
持股:STICKLINE((SAR(10,2,20)<=L),0,MACD,1.5,0),COLORYELLOW;}
M1:=EMA( CLOSE, 9);
M2:=EMA( CLOSE,21 );
MD:=M1-M2, COLORRED, LINETHICK3;
MM :=EMA( MD, 3 );
吸筹:=IF( MD>=MM AND MD<0, MD,DRAWNULL);
拉升:=IF( MD>=MM AND MD>=0, MD,DRAWNULL);
派发:=IF( MD<MM AND MD>=0, MD,DRAWNULL);
回落:=IF( MD<MM AND MD<0, MD,DRAWNULL);
吸:=吸筹,COLORLIRED,CIRCLEDOT,LINETHICK3;
拉:=拉升,COLORRED,CIRCLEDOT,LINETHICK3;
派:=派发,COLORGREEN,CIRCLEDOT,LINETHICK3;
落:=回落,COLORWHITE,CIRCLEDOT,LINETHICK3;
STICKLINE(吸,0,MACD,1,0),COLORLIRED;
STICKLINE(拉,0,MACD,1,0),COLORRED;
STICKLINE(派,0,MACD,1,0),COLORGREEN;
STICKLINE(落,0,MACD,1,0),COLORWHITE;
入1:IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK1;
入2:IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLOR00FF00,LINETHICK1;
额额额额额额额额额额额额额额额额额额额 大神求码啊,加Q16955154发我好不好 谢谢楼主的分享 谢谢楼主的分享 可惜下载不了啊 RE: MACD整合吸拉派落指标不含未来函数 [修改] 1111111111111111111111111111111