最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

通达信公式指标源码四色k线主图指标公式x

IT圈 admin 88浏览 0评论

2024年6月2日发(作者:厉姣姣)

通达信四色k线主图指标公式

DD:=(H+L+2*C)/4;

M3:EMA(DD,3)

M&EMA(DD,8)

M21:EMA(DD,21);

M55:EMA(DD,55)

Z

LINETHICK2,COLOROOFFOO

TT:=BARSCOUNT(C);

PT:=IF(TT<55,TT,55);

上:M55+2

1*STD(C,PT),COLORRED;

下:M55-2.1*STD(C

Z

PT),COLOROOFFOO;

月涨幅:=(C-LLV(C,20))/LLV(C,20)*100

月跌幅:=(HHV(H

z

20)-

C)/HHV(H,20)*100

DRAWTEXT(CROSS(±,M3),上,抛COLORYELLOW;

DRAWTEXT(CROSS(M3,下)/下,抄 *),COLORYELLOW;

HH:=MAX(MAX(MAX(M3

/

M8),M21),M55)

LL:=MIN(MIN(MIN(M3,M8),M21),M55)

SXZH:=HH/LL< = 1.03 AND M3>REF(M3,1)

AND M8>REF(M8,1) AND M21>REF(M21,1) AND M55>REF(M55,1)

SXZL: = HH/LL< = 1.03 AND M3

AND M8

Z

1) AND M21

上:SXZH AND LHH AND 月涨幅>月跌幅,NODRAW; 向

下:SXZLAND H>LL AND C

DRAWICON(向上,MIN(L

z

LL)*0.97,l)

DRAWICON(向下,MAX(H,HH)*1.03,2)

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH

Z

9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1)

D:=SMA(K,3,1)

DIFF:= EMA(CLOSE,12)

EMA(CLOSE,26);

DEA :=EMA(DIFF,9);

MACD:=2*(DIFF-DEA)

做多

=IF(K>D AND MACD>0 AND

V>1

Z

2

Z

O),COLORRED;

做空

=IF(K

V

D

AND MACD<0 AND

V>1,-2

Z

O)

Z

COLOROOFFOO

强洗

=IF(MACD>0 AND K1,1,0)

Z

COLOR0099FF; 弱升

=IF(MACDv0 AND K>D AND V>1,-1,0),COLORFFFFOO;

DRAWICON(CCI>185 AND H>±,H*1.02,6)

DRAWICON(CCI<-185,L*0.98,5);

STICKLINE(做多,L,H

z

0.5

z

O),COLORRED;

STICKLINE(做多 AND C>=O,C,O

/

3,1),COLORRED;

STICKLINE(做多 AND C

z

3

z

0),COLORRED;

STICKLINE(做空

z

L,H,0.5

z

O),COLOROOFFOO

STICKLINE(做空 AND C>=0,C,0,3,1),COLOROOFFOO

STICKLINE(做空 AND C<0,C,O

z

3,0),COLOROOFFOO;

STICKLINE(强洗,L,H,0.5,0),COLOR0099FF;

STICKLINE(强洗 AND C>=O

z

C

z

O,3,l),COLOR0099FF;

STICKLINE(强洗 AND C

z

O

z

3

z

0),COLOR0099FF;

STICKLINE(弱升,L,H

z

0.5,0),COLORFFFF00;

STICKLINE(弱升 AND C>=O,C,O

/

3,l),COLORFFFF00;

STICKLINE(弱升 AND C

ZDF:=(C-REF(C,1))/REF(C,1)*100;

STICKU NE(ZDF>9

8QC2,0),COLORRED;

STICKLINE(ZDF<-9.8,O

z

C

z

2

z

O)

z

COLORBLUE;

IF(M3>M8,M3,DRAWNULL),COLORFFFFOO;

IF(M8>M21,M8,DRAWNULL),COLORFFFFOO;

IF(M21>M55,M21,DRAWNULL),COLORFFFFOO

IF(M55>REF(M55

Z

1),M55,DRAWNULL)

Z

COLORRED

Z

LINETHICK2;

2024年6月2日发(作者:厉姣姣)

通达信四色k线主图指标公式

DD:=(H+L+2*C)/4;

M3:EMA(DD,3)

M&EMA(DD,8)

M21:EMA(DD,21);

M55:EMA(DD,55)

Z

LINETHICK2,COLOROOFFOO

TT:=BARSCOUNT(C);

PT:=IF(TT<55,TT,55);

上:M55+2

1*STD(C,PT),COLORRED;

下:M55-2.1*STD(C

Z

PT),COLOROOFFOO;

月涨幅:=(C-LLV(C,20))/LLV(C,20)*100

月跌幅:=(HHV(H

z

20)-

C)/HHV(H,20)*100

DRAWTEXT(CROSS(±,M3),上,抛COLORYELLOW;

DRAWTEXT(CROSS(M3,下)/下,抄 *),COLORYELLOW;

HH:=MAX(MAX(MAX(M3

/

M8),M21),M55)

LL:=MIN(MIN(MIN(M3,M8),M21),M55)

SXZH:=HH/LL< = 1.03 AND M3>REF(M3,1)

AND M8>REF(M8,1) AND M21>REF(M21,1) AND M55>REF(M55,1)

SXZL: = HH/LL< = 1.03 AND M3

AND M8

Z

1) AND M21

上:SXZH AND LHH AND 月涨幅>月跌幅,NODRAW; 向

下:SXZLAND H>LL AND C

DRAWICON(向上,MIN(L

z

LL)*0.97,l)

DRAWICON(向下,MAX(H,HH)*1.03,2)

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH

Z

9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1)

D:=SMA(K,3,1)

DIFF:= EMA(CLOSE,12)

EMA(CLOSE,26);

DEA :=EMA(DIFF,9);

MACD:=2*(DIFF-DEA)

做多

=IF(K>D AND MACD>0 AND

V>1

Z

2

Z

O),COLORRED;

做空

=IF(K

V

D

AND MACD<0 AND

V>1,-2

Z

O)

Z

COLOROOFFOO

强洗

=IF(MACD>0 AND K1,1,0)

Z

COLOR0099FF; 弱升

=IF(MACDv0 AND K>D AND V>1,-1,0),COLORFFFFOO;

DRAWICON(CCI>185 AND H>±,H*1.02,6)

DRAWICON(CCI<-185,L*0.98,5);

STICKLINE(做多,L,H

z

0.5

z

O),COLORRED;

STICKLINE(做多 AND C>=O,C,O

/

3,1),COLORRED;

STICKLINE(做多 AND C

z

3

z

0),COLORRED;

STICKLINE(做空

z

L,H,0.5

z

O),COLOROOFFOO

STICKLINE(做空 AND C>=0,C,0,3,1),COLOROOFFOO

STICKLINE(做空 AND C<0,C,O

z

3,0),COLOROOFFOO;

STICKLINE(强洗,L,H,0.5,0),COLOR0099FF;

STICKLINE(强洗 AND C>=O

z

C

z

O,3,l),COLOR0099FF;

STICKLINE(强洗 AND C

z

O

z

3

z

0),COLOR0099FF;

STICKLINE(弱升,L,H

z

0.5,0),COLORFFFF00;

STICKLINE(弱升 AND C>=O,C,O

/

3,l),COLORFFFF00;

STICKLINE(弱升 AND C

ZDF:=(C-REF(C,1))/REF(C,1)*100;

STICKU NE(ZDF>9

8QC2,0),COLORRED;

STICKLINE(ZDF<-9.8,O

z

C

z

2

z

O)

z

COLORBLUE;

IF(M3>M8,M3,DRAWNULL),COLORFFFFOO;

IF(M8>M21,M8,DRAWNULL),COLORFFFFOO;

IF(M21>M55,M21,DRAWNULL),COLORFFFFOO

IF(M55>REF(M55

Z

1),M55,DRAWNULL)

Z

COLORRED

Z

LINETHICK2;

发布评论

评论列表 (0)

  1. 暂无评论