波段指标源码及副图
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 ZYD60 ,ZYD ,'←减'),COLOR888888,linethick1;DRAWTEXT(CROSS(ZD1,ZD2) AND ZYD60 ,ZD1 ,'←△'),COLOR666666,linethick1;
DRAWTEXTABS(10,0,' '+MONTH+'月'+DAY+'日'+'.星期'+WEEKDAY),LINETHICK2,COLOR00b5ff;
危险: 80, COLOR666666;
安全: 20, COLOR666666;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式');