等级: 专业版
- 注册:
- 2021-7-6
- 曾用名:
|
公式1:
TYP:=(CLOSE+HIGH+LOW)/3;
DX:(TYP-MA(TYP,34))/(0.015*AVEDEV(TYP,34)),LINETHICK2;
CX:(TYP-MA(TYP,144))/(0.015*AVEDEV(TYP,144)),LINETHICK2;
JXPC:ABS(DX-CX),NODRAW;
BACKGROUNDSTYLE(2);
REFLINE:-240,-80,0,80,240;
STICKLINE1( DX<=-80 AND CX>-80, DX, -80,3, 0),COLORGRAY;
STICKLINE1( DX>=80 AND CX<=80, DX, 80,3, 0),COLORGRAY;
STICKLINE1( DX>=80 AND CX>=80 AND DX>CX, DX, CX,3, 0),RGB(255,128,0);
STICKLINE1( CX<=-80, CX, -80,3, 0),COLORGREEN;
STICKLINE1( CX>=80, CX, 80,3, 0),COLORRED;
STICKLINE1( CX<=-80 AND DX<=-80 AND DX<CX, CX, DX,3, 0),COLORLIGHTGREEN;
DRAWICON( CROSSUP(DX,CX), DX, 'ICO4');
DRAWICON( CROSSDOWN(DX,CX), DX,'ICO5');
公式二:
DXCL := EMA(CLOSE,13) - EMA(CLOSE,34) ;
DXMA: EMA(DXCL,1),LINETHICK2;
CXCL : =EMA(CLOSE,55) - EMA(CLOSE,144);
CXMA: EMA(CXCL,1);
LEND:=SUMBARS(CROSSUP(DXMA,0),1)-1;
LENF:=SUMBARS(CROSSDOWN(DXMA,0),1)-1;
Z1:=DXMA>REF(DXMA,1) AND DXMA<0;
Z21:=DXMA>REF(DXMA,1) AND DXMA>=0 AND LEND<=4;
Z22:=DXMA>REF(DXMA,1) AND DXMA>=0 AND LEND>4;
Z3:=DXMA=REF(DXMA,1) AND DXMA>0 AND LEND>=4;
F1:=DXMA<REF(DXMA,1) AND DXMA>0;
F21:=DXMA<REF(DXMA,1) AND DXMA<=0 AND LENF<=4;
F22:=DXMA<REF(DXMA,1) AND DXMA<=0 AND LENF>=4;
F3:=DXMA=REF(DXMA,1) AND DXMA<0 AND LENF>=4;
STICKLINE1( Z1, DXMA, 0,3, 0),COLORRED;
STICKLINE1( Z21, DXMA, 0, 3, 0),COLORMAGENTA;
STICKLINE1( Z22, DXMA, 0, 3, 0),RGB(255,128,0);
STICKLINE1( Z3, DXMA, 0, 3, 0),COLORLIGHTGREY;
STICKLINE1( F1, DXMA, 0, 3, 0),COLORLIGHTGREEN;
STICKLINE1( F21, DXMA, 0, 3, 0),COLORCYAN;
STICKLINE1( F22, DXMA, 0, 3, 0),COLORBLUE;
STICKLINE1( F3, DXMA, 0, 3, 0),COLORGRAY;
|
|