以下是通达信垂直线指标的写法(实线,虚线)

通达信垂直线指标的写法(实线,虚线)

源码

STICKLINE(DAY=1,  CONST(HHV(H,0)),CONST(LLV(L,0)),0,1),COLORYELLOW;

STICKLINE(MONTH=1,CONST(HHV(H,0)),CONST(LLV(L,0)),0,-1),COLORGREEN;

 

================================还有一种是如下下的,觉得不推荐:

VAR0:=(EMA(CLOSE,12) – EMA(CLOSE,26));

VAR1:=EMA(VAR0,9);

VAR2:=((VAR0 – VAR1) * 2);

VAR3:=(WINNER(CLOSE) * 100);

VAR4:=(VAR3 > 82);

VAR5:CONST(IF((CURRBARSCOUNT <= 81),HHV(MAX(VAR2,MAX(VAR0,VAR1)),BARSLAST(CURRBARSCOUNT = 81)),0));

VAR6:CONST(IF((CURRBARSCOUNT <= 81),LLV(MIN(VAR2,MIN(VAR0,VAR1)),BARSLAST(CURRBARSCOUNT = 81)),0));

VAR7:=FILTERX(CROSS(VAR0,VAR1),BARSSINCE(CLOSE));

VAR8:=SUM(CROSS(VAR0,VAR1),BARSSINCE(CLOSE));

VAR99:=CROSS((REFX(VAR8,MA(VAR7,0)) = (VAR8 + 1)),0.5);

VAR9:=VAR8 >REFX(VAR8, CURRBARSCOUNT-1)-2;

STICKLINE(CROSS(VAR0,VAR1),-5,5,0,0),COLORGREEN;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。