XA1 := IF(DATE < 99999999, 1, DRAWNULL);

牛熊线 := DMA(MA((CLOSE + REF(CLOSE, 5) XA1 / CLOSE 0.098), 90), VOL), CIRCLEDOT, LINETHICK2, COLORRED;

CROSS_COND := CROSS(C, 牛熊线) AND (HOUR * 100 + MINUTE) <= 935 AND (O / REF(C, 1)) <= 1.03;

DRAWGBK(CROSS_COND, RGB(255,0,0), RGB(17,21,89), 0, '11', 0);

DRAWICON(CROSS_COND, HIGH + 0.02, 23);

{STICKLINE(C / REF(C, 1) >= 1.03 AND (HOUR * 100 + MINUTE) <= 935, O, C, 2, 0), COLORYELLOW;}

HSL := IF((SETCODE == 0 OR SETCODE == 1), 100 * VOL, VOL) / (FINANCE(7) / 100);

攻击量 := ((HSL 0.50 + REF(HSL, 1) 0.33) + (REF(HSL, 2) 0.17)) SUM(C, FROMOPEN) / FROMOPEN;

攻击量A := SUM(IF(C > REF(C, 1), 攻击量 * V, 0), FROMOPEN), COLOR0000FF, LINETHICK0;

攻击量B := -SUM(IF(C < REF(C, 1), 攻击量 * V, 0), FROMOPEN), COLOR00FF00, LINETHICK0;

攻击流量 := 攻击量A + 攻击量B, COLORSTICK;

攻击比 := 攻击流量 / SUM(V, FROMOPEN) * 100, COLORRED, LINETHICK1;

资金攻击度 := IF(攻击比 >= 0, (攻击比 + 50), 100 - ABS((攻击比 - 50))), COLORYELLOW;

资金流入 := SUM(IF(C > REF(C, 1), V, 0), FROMOPEN), STICK, COLORRED;

资金流出 := -SUM(IF(C < REF(C, 1), V, 0), FROMOPEN), STICK, COLOR00FF00;

资金出入 := 资金流入 + 资金流出, COLORSTICK;

资金比 := 资金出入 / SUM(V, FROMOPEN) * 100, COLOR00FFFF, LINETHICK1;

资金流量比 := IF(资金比 >= 0, (资金比 + 100) / 2, 100 - ABS((资金比 - 100) / 2));

DRAWTEXT_FIX(1, 0.48, 0.50, 0, STRCAT('', CON2STR(资金攻击度, 2))), COLORYELLOW;