市场心理:COUNT(CLOSE>REF(CLOSE,1),13)/13*100,COLORRED,LINETHICK6;
威廉波段:(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100,COLOR00FF00,LINETHICK6;
DRAWBAND(市场心理,RGB(218,112,210),威廉波段,RGB(135,206,235));
{心理}
风险1:=IF(市场心理>75,市场心理+5,120);
DRAWBAND(120,RGB(180,0,0),风险1,RGB(0,180,180));
DRAWTEXT(市场心理>75,80,'心顶'),COLOR00FFFF;
底部1:=IF(市场心理<25,市场心理-5,0);
DRAWBAND(底部1,RGB(250,0,00),0,RGB(250,0,00));
DRAWTEXT(市场心理<25,市场心理-5,'心底'),COLOR00FFFF;
STICKLINE(C>0,75,75,2,0),COLORRED;
STICKLINE(C>0,25,25,2,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=7,27,'心理底部线'),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=7,77,'心理风险线'),COLORFF00FF;
{威廉}
风险2:IF(威廉波段<5,100,120),COLOR00FFFF,LINETHICK2;
DRAWTEXT(威廉波段<5,7,'威顶'),COLORFFFFFF;
DRAWTEXT(威廉波段<5,98,'威顶'),COLORFFFFFF;
底部2:IF(威廉波段>95,20,0),COLOR00FF00,LINETHICK2;
DRAWTEXT(威廉波段>95,97,'威底'),COLORFFFFFF;
DRAWTEXT(威廉波段>95,22,'威底'),COLORFFFFFF;
STICKLINE(C>0,95,95,2,0),COLORFF00FF;
STICKLINE(C>0,5,5,2,0),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=7,97,'威廉底部线'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=7,7,'威廉风险线'),COLOR00FFFF;