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

【通达信源码分享】精品指标公式-60操盘线源码

2023-01-05未知 编 辑:掌上指标


公式源码:
 
N:=26;
 
A:=(HIGH+LOW+CLOSE+OPEN)/4;
 
BBI:=ABS(MA(A,3)+MA(A,6)+MA(A,12)+MA(A,24))/4,COLORWHITE;
 
MID:MA(A,N),COLORRED;
 
TOP0:MID+STD(A,N),COLORBLUE;
 
BOTTOM0:MID-STD(A,N),COLORBLUE;
 
TOP:MID+1.96*STD(A,N),COLOR5566AA,DOTLINE;
 
BOTTOM:MID-1.96*STD(A,N),COLOR5566AA,DOTLINE;
 
TOP1:MID+2.58*STD(A,N),COLOR556688,DOTLINE;
 
BOTTOM1:MID-2.58*STD(A,N),COLOR556688,DOTLINE;
 
 
 
DRAWKLINE(H,O,L,C);
 
 
 
LOWV:=EMA(LLV(LOW,34),3);
 
HIGHV:=EMA(HHV(HIGH,34),3);
 
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
 
K:=SMA(RSV,8,1);
 
D:=SMA(K,6,1);
 
J:=3*K-2*D,COLORFF00FF;
 
J1:=EMA(J,5),COLOR00FF00;
 
STICKLINE(J>=J1,LOW,HIGH,0.1,0),COLOR0000FF;
 
STICKLINE(J>=J1,CLOSE,OPEN,3,0),COLOR0000AA;
 
STICKLINE(J>=J1,CLOSE,OPEN,2,0),COLOR0000CC;
 
STICKLINE(J<J1,CLOSE,OPEN,2,0),COLORCCCC00;
 
STICKLINE(J<J1,CLOSE,OPEN,3,0),COLORAAAA00;
 
STICKLINE(J<J1,LOW,HIGH,0.1,0),COLORFFFF00;
 
STICKLINE((CROSS(J,J1) OR CROSS(J1,J)),LOW,HIGH,0.1,0),COLOR00FFFF;
 
STICKLINE((CROSS(J,J1) OR CROSS(J1,J)),OPEN,CLOSE,3,0),COLOR00AAAA;
 
STICKLINE((CROSS(J,J1) OR CROSS(J1,J)),OPEN,CLOSE,2,0),COLOR00CCCC;
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标