板块RPS首日二线红公式

{齐大总管-板块RPS首日二线红}

K10:=EXTDATA_USER(6,0);{10天的RPS}

RPSK10:=K10/10;

K01:=IF(RPSK10<=90,0,1);{RPS10大于90};

K20:=EXTDATA_USER(7,0);{20天的RPS}

RPSK20:=K20/10;

K02:=IF(RPSK20<=90,0,1);{RPS20大于90};

K60:=EXTDATA_USER(8,0);{60天的RPS}

RPSK60:=K60/10;

K03:=IF(RPSK60<=90,0,1);{RPS60大于90};

RPS1020 := K01 AND K02 AND K03 = 0;

RPS1060 := K01 AND K03 AND K02 = 0;

RPS2060 := K02 AND K03 AND K01 = 0;

RPS二线红 := RPS1020 OR RPS1060 OR RPS2060;

RPS三线红 := K01 AND K02 AND K03;

RPS首日二线红 : RPS二线红 AND REF(RPS二线红, 1) = 0 AND REF(RPS三线红, 1) = 0;

{齐大总管-板块RPS首日二线红-公式结束}

你可能感兴趣的:(板块RPS首日二线红公式)