程序化指标公式
问答中心

通达信牛熊线主图指标公式

通达信指标 2019-07-02阅读量:10936

安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。

不会安装点击 安装指南 步骤操作

牛线:FORCAST(REF(LLV(OPEN*1.05,15),1),2),COLORRED;
熊线:FORCAST(REF(LLV(CLOSE,10),1),2),COLORGREEN;
VAR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),24,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),24,1)*100;
VAR3:=VAR1<VAR2;
STICKLINE(VAR3,OPEN,HIGH,0,0),COLORGREEN;
STICKLINE(VAR3,CLOSE,LOW,0,0),COLORGREEN;
STICKLINE(VAR3,OPEN,CLOSE,3,1),COLORGREEN;
VAR4:=CLOSE>0;STICKLINE(VAR4,OPEN,HIGH,0,0),COLORGREEN;
STICKLINE(VAR4,CLOSE,LOW,0,0),COLORGREEN;
STICKLINE(VAR4,OPEN,CLOSE,3,1),COLORGREEN;
VAR5:=IF(EXIST(VAR3,4),DRAWNULL,VAR1>VAR2);
STICKLINE(VAR5,OPEN,HIGH,0,0),COLORRED;
STICKLINE(VAR5,CLOSE,LOW,0,0),COLORRED;
STICKLINE(VAR5,OPEN,CLOSE,3,0),COLORRED;
VAR6:=VAR1>85 AND NOT(CLOSE>REF(CLOSE,1)*1.09 AND OPEN=CLOSE);
STICKLINE(VAR6,OPEN,HIGH,0,0),COLORYELLOW;
STICKLINE(VAR6,CLOSE,LOW,0,0),COLORYELLOW;
STICKLINE(VAR6,OPEN,CLOSE,3,0),COLORYELLOW;
VAR7:=VAR1<30 AND NOT(CLOSE<REF(CLOSE,1)*0.91);
STICKLINE(VAR7,OPEN,HIGH,0,0),COLORBLUE;
STICKLINE(VAR7,CLOSE,LOW,0,0),COLORBLUE;
STICKLINE(VAR7,OPEN,CLOSE,3,1),COLORBLUE;
VAR8:=RANGE(BARSLASTCOUNT(VAR1>VAR2),0,6);
VAR9:=VAR8 AND REF(VAR7,1);
VAR10:=VAR9 OR (VAR8 AND REF(VAR9,1)) OR (VAR8 AND REF(VAR9,2));
STICKLINE(VAR10,OPEN,HIGH,0,0),COLORLIGRAY;
STICKLINE(VAR10,CLOSE,LOW,0,0),COLORLIGRAY;
STICKLINE(VAR10,OPEN,CLOSE,3,1),COLORLIGRAY;
DRAWICON(CROSS(VAR5,0.5),LOW*0.98,1);
DRAWICON(CROSS(VAR5,0.5),LOW*0.96,7);
DRAWICON(CROSS(VAR3,0.5) AND REF(VAR5,1),HIGH*1.02,2);
DRAWICON(CROSS(VAR3,0.5) AND REF(VAR5,1),HIGH*1.04,8);

版权声明

所有指标均为免费分享。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。

分享:

扫一扫在手机阅读、分享本文

程序化指标公众号

左边广告一

关闭

右边广告二

关闭