中长线买卖点主图之买多选股指标公式

SJ:=IF(DATE+19000000<20191128,1,0);

HX:=HHV(HIGH,3);

LX:=LLV(LOW,3);

H1:=IF(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);

L1:=IF(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);

H2:=VALUEWHEN(H1>0,H1);

L2:=VALUEWHEN(L1>0,L1);

K111:=IF(CLOSE>H2,-3,IF(CLOSE<L2,1,0));

K222:=VALUEWHEN(K111<>0,K111);

TMP:=K222;

买多:crOSS(0,TMP*SJ);