趋势线:EMA(C,18),COLOREEEEEE,LINETHICK2;
红18:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLOR0000FF,LINETHICK2;
绿18:IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLOR00FF00,LINETHICK2;
STICKLINE(趋势线>REF(趋势线,1),LOW,HIGH,0,0),COLOR0000DD;
STICKLINE(趋势线>REF(趋势线,1),CLOSE,OPEN,3,0),COLORRED;
STICKLINE(趋势线<REF(趋势线,1),LOW,HIGH,0.0,0),COLORFFDD00;
STICKLINE(趋势线<REF(趋势线,1),CLOSE,OPEN,3,0),COLORFFFF00;