N:=120; DH:=(MIN(C,O)+2*H)/3;XL:=(MAX(C,O)+2*L)/3; 重心:=(DH+XL)/2; 均价:=AMOUNT/(VOL*100); 折价:=IF(INDEXC=C,重心,(重心+均价)/2); LB:=(SUM(V,25)/REF(SUM(V,125),1)+SUM(V,5)/REF(SUM(V,25),1)+V/REF(MA(V,5),1))/3; XP:=BARSLAST(CROSS(SUM(LB,N),N/2)); 乖线:((折价/REF(折价,XP)-1)*100),COLORWHITE; 离线:MA(乖线,25),COLORMAGENTA; 基线:MA(乖线,XP+1),COLORGREEN; 离乖:=((乖线+70)/(离线+70)-1)*100; 基乖:=((乖线+70)/(基线+70)-1)*100; 零乖:=((乖线+70)/70-1)*100; 眼:(3*离乖+2*基乖+零乖)/6,COLORSTICK; 零界线:0,COLORGRAY;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
N:=120;
DH:=(MIN(C,O)+2*H)/3;XL:=(MAX(C,O)+2*L)/3;
重心:=(DH+XL)/2;
均价:=AMOUNT/(VOL*100);
折价:=IF(INDEXC=C,重心,(重心+均价)/2);
LB:=(SUM(V,25)/REF(SUM(V,125),1)+SUM(V,5)/REF(SUM(V,25),1)+V/REF(MA(V,5),1))/3;
XP:=BARSLAST(CROSS(SUM(LB,N),N/2));
乖线:((折价/REF(折价,XP)-1)*100),COLORWHITE;
离线:MA(乖线,25),COLORMAGENTA;
基线:MA(乖线,XP+1),COLORGREEN;
离乖:=((乖线+70)/(离线+70)-1)*100;
基乖:=((乖线+70)/(基线+70)-1)*100;
零乖:=((乖线+70)/70-1)*100;
眼:(3*离乖+2*基乖+零乖)/6,COLORSTICK;
零界线:0,COLORGRAY;