当前位置:首页 > 通达信 > 正文

【通达信源码分享】趋势有度源码副图贴图无未来

2022-09-16未知 编 辑:掌上指标


公式源码:
 
JC:0,NODRAW;
 
ST:50,POINTDOT,COLORRED;
 
SW:-50,POINTDOT,COLORLIGRAY;
 
VAR10:=MA(CLOSE,10);
 
BB10:=50*(CLOSE-VAR10)/STD(CLOSE,10);
 
VAR20:=MA(CLOSE,20);
 
BB20:=50*(CLOSE-VAR20)/STD(CLOSE,20);
 
VAR60:=MA(CLOSE,60);
 
BB60:=60*(CLOSE-VAR60)/STD(CLOSE,60);
 
VAR120:=MA(CLOSE,120);
 
BB120:=50*(CLOSE-VAR120)/STD(CLOSE,120);
 
BBJX:=(BB10+BB20+BB60+BB120)/4,COLORWHITE;
 
BBK1:EMA(BBJX,5),DOTLINE,COLORWHITE;
 
BBK2:=EMA(BBK1,5),COLORRED,LINETHICK2;
 
BBK3:=EMA(BBK2,5),COLORRED,LINETHICK3;
 
IF(BBK1>REF(BBK1,1),BBK1,DRAWNULL),COLORRED,LINETHICK2;
 
IF(BBK1<REF(BBK1,1),BBK1,DRAWNULL),COLORFF0000,LINETHICK2;
 
LC:=REF(C,1);
 
RSI1:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
 
RSI2:=HHV(FORCAST(RSI1,7),14),COLORLIBLUE;
 
HJ_1:=HHV(FORCAST(RSI1,7),28);
 
STICKLINE(RSI1>RSI2,RSI2,RSI1,3,0),COLORYELLOW;
 
BOLL:MA(CCI,24),DOTLINE,COLORYELLOW;
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标