龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-12-11 10:32

多头空头指标源码 通达信 同花顺 大智慧通用[大智慧公式]

{通达信版}

[code]
A:=EMA(CLOSE,13);
多头力道:H-A,NODRAW;
STICKLINE(多头力道>0,0,多头力道,0.1,0),COLORRED;
STICKLINE(多头力道<0,多头力道,0,0.1,0),COLORGREEN;
空头力道:L-A,NODRAW;
H1:=MAX(HHV(空头力道,0),HHV(多头力道,0));
STICKLINE(空头力道>0,-2*H1,-2*H1+空头力道,0.1,0),COLORRED;
STICKLINE(空头力道<0,-2*H1+空头力道,-2*H1,0.1,0),COLORGREEN;
[/code]


{//大智慧,同花顺版:}

[code]
A:=EMA(CLOSE,13);
多头力道:H-A,LINETHICK0;
STICKLINE(多头力道>0,0,多头力道,1,0),COLORRED;
STICKLINE(多头力道<0,多头力道,0,1,0),COLORGREEN;
空头力道:L-A,LINETHICK0;
H1:=MAX(HHV(空头力道,0),HHV(多头力道,0));
STICKLINE(空头力道>0,-2*H1,-2*H1+空头力道,1,0),COLORRED;
STICKLINE(空头力道<0,-2*H1+空头力道,-2*H1,1,0),COLORGREEN;
[/code]

[attach]5817[/attach]

页: [1]