Skip to content

About

通达信macd面积公式

Resources

Stars

15 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

通达信macd面积公式

使用效果:

导入DLL后,搭配通达信内公式源码:

DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;

AREA:=TDXDLL1(1, MACD, 0, 0);

红面积:IF(AREA > 0, AREA, 0), NODRAW;
绿面积:IF(AREA < 0, AREA, 0), NODRAW;

STICKLINE(红面积, 0, 红面积, 3, 0),COLORRED;
STICKLINE(绿面积, 0, 绿面积, 3, 0),COLORGREEN;

其中 TDXDLL1 的第一个参数 1 对应源码中的 MacdArea 函数。

About

通达信macd面积公式

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages