编写要求:
周线收十字星的指标,十字星前的一周收阳线。
公式在线网解答:
MON:=WEEKOFYEAR!=REF(WEEKOFYEAR,1);
A1:=IF(MON,O#WEEK,DRAWNULL);
A2:=IF(MON,C#WEEK,DRAWNULL);
A3:=IF(MON,H#WEEK,DRAWNULL);
A4:=IF(MON,L#WEEK,DRAWNULL);
XG:((ABS(ALIGNRIGHT(A2)-ALIGNRIGHT(ALIGNRIGHT(A1)))/ALIGNRIGHT(A1)<0.001)
OR (ALIGNRIGHT(A1)=ALIGNRIGHT(A2) AND ALIGNRIGHT(A3)>ALIGNRIGHT(A4)))
AND REF(ALIGNRIGHT(A2),1)>REF(ALIGNRIGHT(A1),1);