技术指标简单才是真。 中点:(H+L)/2,LINETHICK0; STICKLINE(O>C,C,O,3,1),COLOR00CC00; STICKLINE((H+L)/2,(H+L)/2,(H+L)/2,0.5,1),COLORYELLOW; 顶1:=REFDATE(HHV(H,0),DATE); 底1:=REFDATE(LLV(L,0),DATE); 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; A顶:REFDATE(顶1,DATE),COLORLIGRAY; %19.1:REFDATE(H1,DATE),COLORCYAN,DOTLINE; %38.2:REFDATE(H2,DATE),COLORYELLOW,DOTLINE; %50:REFDATE(H3,DATE),COLORRED,DOTLINE; %61.8:REFDATE(H4,DATE),COLORYELLOW,DOTLINE; %80.9:REFDATE(H5,DATE),COLORCYAN,DOTLINE; V底:REFDATE(底1,DATE),COLORLIGRAY; DRAWTEXT(ISLASTBAR,A顶,' 顶'),COLORLIGRAY; DRAWTEXT(ISLASTBAR,%19.1,' 19.1%'),COLORCYAN; DRAWTEXT(ISLASTBAR,%38.2,' 38.2%'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%50,' 50%'),COLORRED; DRAWTEXT(ISLASTBAR,%61.8,' 61.8%'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%80.9,' 80.9%'),COLORCYAN; DRAWTEXT(ISLASTBAR,V底,' 底'),COLORLIGRAY; |
