趋势1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
趋势2:=MOD(FROMOPEN,趋势1);
趋势3:=IF(趋势2<0.5,趋势1,趋势2);
趋势5:IF(CURRBARSCOUNT=1,VOL*趋势1/趋势3,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),趋势5,0,-1,-1),COLOR00C0C0;
趋势6:VOL,VOLSTICK;
趋势8:MA(趋势6,5);
趋势9:MA(趋势6,10);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
趋势A1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
趋势A2:=EMA(趋势A1,3)-MA(趋势A1,9);
趋势A3:=EMA(IF(趋势A2>0,趋势A2,0),3);
趋势A6:=MA(C,3);
STICKLINE(趋势A3>REF(趋势A3,1) AND 趋势A6>REF(趋势A6,1),0,趋势A3,1,0),COLORYELLOW;