小小七七M 发表于 2021-12-29 13:54:40

通达信指标公式源码精准副图指标





VOL1:=6;

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:=11;

LONG:=21;

MID:=7;

吸:=XLPL.NOTEXT吸;

拉:=XLPL.NOTEXT拉;

派:=XLPL.NOTEXT派;

落:=XLPL.NOTEXT落;

A1:=(CLOSE*2+HIGH+LOW)/4;

A2:=EMA(A1,13)-EMA(A1,34);

A3:=EMA(A2,5);

重心:2*(A2-A3)*3.8,NODRAW;

J:=重心;

DIF1:=EMA(CLOSE,11) - EMA(CLOSE,21);

DEA1:=EMA(DIF1,7);

MACD1:=2*(DIF1-DEA1);

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,NODRAW;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J1:=3*K-2*D;

TYP:=(HIGH + LOW + CLOSE)/3;

CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

买:=CROSS(CCI,-100),NODRAW;

LC:=REF(CLOSE,1);

RSI2:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW;

R6:=(SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100),NODRAW;

MR持股:=K > D AND K > REF(K,1) AND DIF1 > DEA1 AND DIF1 > REF(DIF1,1) AND R6 > 50 AND R6 > REF(R6,1) AND C > BBI AND BBI > REF(BBI,1),NODRAW;

M交叉临界:=351/28*(EMA(DIF1,9)-11/13*EMA(C,12)+25/27*EMA(C,26)),NODRAW;

K交叉点:=(3*REF(D,1)-2*REF(K,1))/100*(HHV(H,9)-LLV(L,9))+LLV(L,9),NODRAW;

长线持股:=K > D AND DIF1 > DEA1 AND R6 > 50 AND C > BBI,NODRAW;

DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORWHITE;

DEA:EMA(DIF,MID)COLORYELLOW;

MACD:(DIF-DEA)*2,NODRAW;

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

STICKLINE(吸,0,MACD,0.1,0),COLORRED;

STICKLINE(拉,0,MACD,0.1,0),COLORRED;

STICKLINE(派,0,MACD,0,0),COLORGREEN;

STICKLINE(落,0,MACD,0,0),COLORGREEN;

主力买1:IF(DIF > REF(DIF,1),DIF,DRAWNULL),COLORRED;

主力买2:IF(DIF < REF(DIF,1),DIF,DRAWNULL),COLOR00FF00;

风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。





了了和破 发表于 2021-12-31 20:10:55

厉害了!

孔雀猫叹 发表于 2022-1-9 06:53:27

无量天尊!

wzyu638116 发表于 2022-1-14 04:23:58

爱你,么么哒,哈哈……

AAAA310 发表于 2022-1-15 23:15:40

路过,支持一下啦

今夜很闲乩 发表于 2022-1-27 19:42:49

顶贴光荣!

zfbbedam659123 发表于 2022-1-27 21:20:27

爱你,么么哒,哈哈……

快乐的小散形 发表于 2022-2-5 21:47:23

帮你顶下哈!!

白跟另弄 发表于 2022-2-14 13:58:14

真是 收益 匪浅

秋叶728 发表于 2022-2-23 12:47:50

好东西,收了
页: [1] 2
查看完整版本: 通达信指标公式源码精准副图指标