1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| SG1:=(C-LLV(L,36))/(HHV(H,36)-LLV(L,36))*100; SG2:=SMA(SG1,3,1); SG3:=SMA(SG2,3,1); SG4:=SMA(SG3,3,1); X:SG3; Y:SG4; SG5:=CROSS(SG3,SG4) AND SG3<20; DRAWTEXT(FILTER(SG5,10)=1,40,'低吸'),COLORYELLOW; STICKLINE(FILTER(SG5,10)=1,0,30,5,0),COLORRED; SG6:=CROSS(SG4,SG3) AND SG3>80; STICKLINE(FILTER(SG6,5)=1,80,100,5,0),COLORGREEN; DRAWTEXT(FILTER(SG6,5)=1,70,'风险'),COLOR00FF00; SG7:=CROSS(SG2,SG3) AND SG3>80 AND SG3>SG4; STICKLINE(SG7,85,100,5,0),COLOR0099FF; DRAWTEXT(FILTER(SG7,5)=1,70,'减仓'),COLOR0099FF; DRAWTEXT_FIX(C>O,0.01,0.9,0,'SGZBK.TOP'),COLORWHITE; A1:=LLV(L,36); B1:=HHV(H,30); C1:=(EMA(((C-A1)/(B1-A1))*(4),4))*(25); 下网:IF((COUNT((C1>REF(C1,1)),1)=1) AND (REF(C1,1)<REF(REF(C1,1),1)) AND (C1<10),50,0),COLORF00FF0; DRAWTEXT((COUNT((C1>REF(C1,1)),1)=1) AND (REF(C1,1)<REF(REF(C1,1),1)) AND (C1<10),60,'下网'),COLORF00FF0;
|