0,pointdot,colorred;
TYP := (HIGH + LOW + CLOSE)/3;
月:(TYP-MA(TYP,280))/(0.015*AVEDEV(TYP,280)),color000099;
周:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),color0066CC;
日:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),colormagenta;
bb日:=日-ref(日,1);
bb周:=周-ref(周,1);
bb月:=月-ref(月,1);
PARTLINE(bb月>0,月),color000099,LINETHICK2;
PARTLINE(bb周>0,周),color0066CC,LINETHICK2;
PARTLINE(bb日>0,日),colormagenta,LINETHICK2;