H1:=IF(RANGE(DATE,1150501,1150701),H,DRAWNULL);
第一次:REF(H1,BARSLAST(FILTERX(H1=HHV(H1,0),BARSCOUNT(C)))),COLORRED;
H2:=IF(RANGE(DATE,1150701,1150901),H,DRAWNULL);
第二次:REF(H2,BARSLAST(FILTERX(H2=HHV(H2,0),BARSCOUNT(C)))),COLORYELLOW;
H3:=IF(RANGE(DATE,1150901,1160201),H,DRAWNULL);
第三次:REF(H3,BARSLAST(FILTERX(H3=HHV(H3,0),BARSCOUNT(C)))),COLORGREEN;
{
选股公式:
H1:=IF(RANGE(DATE,1150501,1150701),H,DRAWNULL);
G1:=REF(H1,BARSLAST(FILTERX(H1=HHV(H1,0),BARSCOUNT(C))));
H2:=IF(RANGE(DATE,1150701,1150901),H,DRAWNULL);
G2:=REF(H2,BARSLAST(FILTERX(H2=HHV(H2,0),BARSCOUNT(C))));
H3:=IF(RANGE(DATE,1150901,1160201),H,DRAWNULL);
G3:=REF(H3,BARSLAST(FILTERX(H3=HHV(H3,0),BARSCOUNT(C))));
xg:CROSS(C,G1) OR CROSS(C,G2) OR CROSS(C,G3);
}