日:=120; 昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
HIGH1:=REFDATE(高1,DATE),COLORRED,LINETHICK3;
HIGH2:=REFDATE(H1,DATE),COLORYELLOW,LINETHICK3;
LOW2:=REFDATE(H5,DATE),COLORYELLOW,LINETHICK3;
LOW1:=REFDATE(低1,DATE),COLORGREEN,LINETHICK3;
O<H1 AND O/REF(C,1)<1.03;