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);