当前位置:首页 > 掌上指标 > 正文

【通达信免费源码】精品指标公式-金牛加仓指标源码

2021-02-02原创 编 辑:掌上指标



公式源码:

{金牛加仓副图}

ZDF:=(C-REF(C,1))/REF(C,1)*100; 

V1:=MA(C,3)=HHV(MA(C,3),7); 

V2:=MA(C,3)>MA(C,5); 

V3:=MA(V,5)>MA(V,10)*1.01; 

V4:=COUNT(MA(C,1)>REF(C,1),2)=2; 

LC20:=REF(CLOSE,1); 

RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;  

STICKLINE(CROSS(RSI20,11)*1,-10,50,5,0),COLORRED;

VAR3A:=3; 

VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 

MTM:=C-REF(C,1); 

DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); 

YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); 

加仓:IF(FILTER(YXF=1,5),40,-5),STICK,COLORLICYAN,LINETHICK3; 

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

AAA1:=MACD>0 AND REF(MACD,1)>0;

AAA2:=FILTER(YXF=1,5);

XG:IF(AAA2 AND AAA1,60,DRAWNULL),STICK,COLORYELLOW,LINETHICK3;

A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV (L,55))*100,5,1); 

FY:=EMA(A51,5); 

A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; 

QS:(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2)),LINETHICK2,COLORBLUE;

底部:IF(QS>REF(QS,1),QS,DRAWNULL),LINETHICK4,COLORRED;

公众号:掌上指标工作室

掌上指标官方客服QQ/微信号:408866864

大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标