以下是大智慧平步青云优化版 知顶知底心中有数通达信无未来源码
大智慧用:
Var1:=LLV(LOW,10);
Var2:=HHV(HIGH,25);
操盘线: EMA((CLOSE-Var1)/(Var2-Var1)*4,4);
绝底:0.3,LINETHICK2,COLOR0000FF;
短底:1,LINETHICK2,COLORBLUE;
短顶:3,COLORGREEN;
绝顶:3.5,LINETHICK2,COLORFF00FF;
分界:2,COLOR00FFFF;
FILLRGN(操盘线,短顶,操盘线>=短顶),COLORBLUE;
FILLRGN(操盘线,绝顶,操盘线>=绝顶,RGB(255,0,0));
FILLRGN(操盘线,短底,操盘线<=短底,RGB(255,255,0));
FILLRGN(操盘线,绝底,操盘线<=绝底,RGB(255,0,0));
DRAWICON(CROSS(绝底,操盘线),0.3,1);
DRAWTEXT(CROSS(操盘线,短底),1,’注意’);
DRAWTEXT(CROSS(短顶,操盘线),3.1,’注意’);
DRAWICON(CROSS(绝顶,操盘线),3.8,2);
这是通达信版见第二张图:
VAR1:=LLV(LOW,10);
VAR2:=HHV(HIGH,25);
操盘线: EMA((CLOSE-VAR1)/(VAR2-VAR1)*4,4),COLORRED;
绝底:0.3,LINETHICK2,COLOR0000FF;
短底:1,LINETHICK2,COLORBLUE;
短顶:3,COLORGREEN;
绝顶:3.5,LINETHICK2,COLORFF00FF;
分界:2,COLOR00FFFF;
DRAWICON(CROSS(绝底,操盘线),0.3,5);
DRAWTEXT(CROSS(操盘线,短底),1,’注意’);
DRAWTEXT(CROSS(短顶,操盘线),3.1,’注意’);
DRAWICON(CROSS(绝顶,操盘线),3.8,6);
评论(0)