JD:=MONTH=1 OR MONTH=4 OR MONTH=7 OR MONTH=10;
JA:=JD AND DAY<REF(DAY,1);
JT:=BArslAST(JA)+1;
季MA:MA(C,JT),COLORFF0000;
季MA1:季MA*1.1,COLORFF0000;
{季L:TMA(季MA,0.9,0.1);
季H:TMA(季MA,0.9,0.11);}
NOTEXT1:IF(季MA>REF(季MA,1),季MA,DRAWNULL),COLORWHITE;
NOTEXT2:IF(季MA1>REF(季MA1,1),季MA1,DRAWNULL),COLORWHITE;
ema(C,5);
DRAWKLINE(H,O,L,C);
上涨:=(C/REF(C,1)-1)*100;
红柱:=IF(PERIOD>=6,9.9,IF(PERIOD=5,4.9,IF(PERIOD=4,3.9,IF(PERIOD>=3,2.9,IF(PERIOD=2,1.9,IF(PERIOD<=1,0.8,0))))));
STICKLINE(上涨>=红柱,OPEN,CLOSE,3,0),COLORWHITE;
绿柱:=IF(PERIOD>=6,-9.9,IF(PERIOD=5,-4.9,IF(PERIOD<=4,-2,0)));
STICKLINE(上涨<绿柱,OPEN,CLOSE,3,1),COLORLIGREEN;