|
N:=120;
TA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=EMA(TA,181);
VAR81:=REF(CLOSE,N)-REF(ATR,1);
红牛:=HHV(VAR81,181),COLORYELLOW;
上:=(1+7/100)*红牛;
下:=(1-7/100)*红牛;
中:=(上+下)/2;
A1:上,DOTLINE,COLORGREEN;
B1:下,DOTLINE,COLORGREEN;
C1:中,LINETHICK2,COLORYELLOW;
黑马:=CROSS(C,上);
N1:=321;
TA1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR1:=EMA(TA1,181);
VAR811:=REF(CLOSE,N1)-REF(ATR1,1);
红牛1:=HHV(VAR811,240),COLORYELLOW;
上1:=(1+7/100)*红牛1;
下1:=(1-7/100)*红牛1;
中1:=(上1+下1)/2;
A11:上1,DOTLINE,COLORGREEN;
B11:下1,DOTLINE,COLORGREEN;
C11:中1,LINETHICK2,COLORYELLOW;
DRAWKLINE(H,O,L,C);
黑马1:=CROSS(C,上1);
DRAWBAND(上,RGB(136,5,0),下,RGB(0,0,0));
DRAWBAND(上1,RGB(136,5,0),下1,RGB(0,0,0)); |
|