{YS线}
ys1:ma(c,30);ys2:ma(c,60);ys3:ma(c,90);ys4:ma(c,120);ys5:ma(c,150),COLORRED,LINETHICK2,;
ys6:ma(c,180);ys7:ma(c,210);ys8:ma(c,240);ys9:ma(c,270);sy10:ma(c,300);ys11:ma(c,330);
ys12:ma(c,360);
dk:=ma(c,30);
STICKLINE(CLOSE>dk,OPEN,CLOSE,8,1),COLORRED;
STICKLINE(CLOSE>dk AND C<O,OPEN,CLOSE,8,0),COLORRED;
STICKLINE(CLOSE=dk,OPEN,CLOSE,8,1),COLORRED;
STICKLINE(CLOSE>dk,LOW,OPEN,0.8,1),COLORRED;
STICKLINE(CLOSE=dk,LOW,OPEN,0.8,1),COLORRED;
STICKLINE(CLOSE>dk,CLOSE,HIGH,0.8,1),COLORRED;
STICKLINE(CLOSE=dk,CLOSE,HIGH,0.8,1),COLORRED;
STICKLINE(CLOSE<dk AND C>O, CLOSE,OPEN,8,1),COLORGREEN;
STICKLINE(CLOSE<dk AND C<=O, CLOSE,OPEN,8,0),COLORGREEN;
STICKLINE(CLOSE<dk ,OPEN,LOW,0.8,0),COLORGREEN;
STICKLINE(CLOSE<dk ,CLOSE ,HIGH,0.8,0),COLORGREEN;