北斗分时B1
分时公式,由两个公式组成,HHHH是引用公式,不需要显示。
{HHHH}
{公式描述: 【北斗】禁止删除!!! }
HHH:REF(HIGH,1),LINETHICK0;
LLL:REF(LOW,1),LINETHICK0;
CCC:REF(CLOSE,1),LINETHICK0;
LLL1:LOW,LINETHICK0;
HH:HIGH,LINETHICK0;
CC:CLOSE,LINETHICK0;
B1:SUM(CLOSE * VOL,240) / SUM(VOL,240),LINETHICK0;
B2:SUM(AMOUNT,0) / SUM(VOL * 100,0),LINETHICK0;
B3:CLOSE,LINETHICK0;
B4:B2 - B2 * 0.02,LINETHICK0;
{北斗分时B1}
{公式描述: 北斗B1分时主图 }
VAR0:=CLOSE;
VAR1:=881161030;
VAR2:=DATE < VAR1;
VAR3:=SUM(CLOSE * VOL,240) / SUM(VOL,240);
VAR4:=(VAR3 - VAR0) / VAR0 >= 0.02;
VAR5:=(VAR3 - VAR0) / VAR0 >= 0.03;
VAR6:=(VAR3 - VAR0) / VAR0 >= 0.04;
VAR7:=TIME < 133000 AND TIME > 93300;
VAR8:=("HHHH.HH#DAY" - "HHHH.CCC#DAY") / "HHHH.CCC#DAY" < 0.015;
VAR9:=VAR3 - VAR3 * 0.02;
VAR10:=VAR3 + VAR3 * 0.02;
VAR11:=VAR3 - VAR3 * 0.03;
VAR12:=VAR3 - VAR3 * 0.04;
DRAWICON(CROSS(VAR9,CLOSE) AND VAR2,CLOSE * 0.995,24);
DRAWICON(CROSS(VAR11,CLOSE) AND VAR2,CLOSE * 0.996,25);
DRAWICON(CROSS(VAR12,CLOSE) AND VAR2,CLOSE * 0.997,26);
DRAWICON(CROSS(CLOSE,VAR10) AND VAR2,CLOSE * 1.008,2);