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

2015-12-21 15:06:00来源:本站整理浏览:289

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

源码

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;
 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式