通达信垂直线指标的写法(实线,虚线)
2015-12-21 11:38:34点击:
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;
- 上一篇:没有啦
- 下一篇:多空成交量源码 2015/12/21