通达信市场心理威廉波段副图源码
市场心理:COUNT(CLOSE>REF(CLOSE,1),13)/13*100,COLORMAGENTA,POINTDOT,LINETHICK4;
风险:=IF(市场心理>75,市场心理+5,120);
DRAWBAND(120,RGB(0,180,180),风险,RGB(0,180,180));
底部:=IF(市场心理<25,市场心理-5,0);
DRAWBAND(底部,RGB(250,0,00),0,RGB(250,0,00));
--------------------------------------
物极必反:(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100,COLORMAGENTA,POINTDOT,LINETHICK4;
风险:=IF(物极必反<5,物极必反+90,120);
DRAWBAND(120,RGB(0,180,180),风险,RGB(0,180,180));
底部:=IF(物极必反>95,物极必反-10,0);
DRAWBAND(底部,RGB(250,0,00),0,RGB(250,0,00));