A1:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; ZYD: SMA(A1,6,1),ColorRED; ZZD: SMA(ZYD,2,1),colorwhite; ZBD: SMA(ZYD,4,1),colorBLUE; ZAD: SMA(A1,20,1),color444444; ZD: SMA(A1,1,1),colorBlack; ZD1:SUM(ZD,2)/2,colorBlack; ZD2:SUM(ZD,6)/6,COLOR444444; DRAWTEXT(CROSS(ZYD,ZZD)AND REF(ZBD,10)*1>ZYD AND REF(ZAD,10)>ZAD AND ZYD<40 ,ZYD ,'←加'),COLOR888888,linethick1; DRAWTEXT(CROSS(ZZD,ZYD)AND REF(ZBD,10)*160 ,ZYD ,'←减'),COLOR888888,linethick1; DRAWTEXT(CROSS(ZD1,ZD2) AND ZYD<40 ,ZD1,'←▲'),COLOR666666,linethick1; DRAWTEXT(CROSS(ZD2,ZD1) AND ZYD>60 ,ZD1 ,'←△'),COLOR666666,linethick1; DRAWTEXTABS(10,0,' '+MONTH+'月'+DAY+'日'+'.星期'+WEEKDAY),LINETHICK2,COLOR00b5ff; 危险: 80, COLOR666666; 安全: 20, COLOR666666;
|