{N:2,250,12;N1:24}
AS5:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,COLORYELLOW;
BIAS1:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100,COLORGREEN;
BIAS2:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100,COLORGREEN,STICK,LINETHICK3;
分界線:=BIAS1>=0;
BIAS:=(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100,COLORRED;
上軌:MA(BIAS1,20)+1.618*STD(BIAS2,20),COLORLIGRAY,DOTLINE;
中軌:MA(BIAS1,20),COLORWHITE,DOTLINE,LINETHICK1;
下軌:MA(BIAS1,20)-1.618*STD(BIAS2,20),COLORLIGRAY,DOTLINE;
最高:=BIAS1*1.1,COLORGREEN;
最低:=BIAS1*0.90,NODRAW;
收盤:=BIAS1,NODRAW;
開盤:=REF(收盤,1),NODRAW;
STICKLINE(收盤>=開盤,最高,最低,0,0),COLORRED;
STICKLINE(收盤>=開盤,收盤,開盤,1.5,1),COLORRED;
STICKLINE(收盤<開盤,最高,最低,0,0),COLORGREEN;
STICKLINE(收盤<開盤,收盤,開盤,1.5,1),COLORGREEN;
UP1:=HHV(BIAS,55);
UP2:=LLV(BIAS,55);
UP3:=BIAS-(BIAS1-BIAS);
UP:IF(BIAS1>UP1 AND BIAS=UP1,MAX(LLV(UP1,10),UP3),UP1),COLORLIBLUE;
DN:IF(BIAS1<UP2 AND BIAS=UP2,MIN(HHV(UP2,10),UP3),UP2),COLORLIBLUE;
{疊加百分線}
JB:=BIAS1;
EE:=CURRBARSCOUNT<=200;
HH:=CONST(HHV(JB,200));
LL:=CONST(LLV(JB,200));
天:HH,COLORMAGENTA;
地:LL,COLORMAGENTA;
強(qiáng):CONST(HH-(HH-LL)*1/5),COLORRED;
中:CONST(HH-(HH-LL)*1/2),COLORYELLOW;
弱:CONST(HH-(HH-LL)*4/5),COLORRED;
聯(lián)系客服