CHECK:=STRCMP(USERNAME,'del')>1;
KEY:=NOT(CHECK);
MID : MA(CLOSE,N),COLORYELLOW,LINEDOT;
UPPER: MID + P*STD(CLOSE,N),pointdot,COLORRED;
LOWER: MID - P*STD(CLOSE,N),pointdot,COLORGREEN;
趋势线:IF(KEY,EMA(EMA(EMA(EMA(CLOSE,2),2),5),5),0),LINETHICK2,colorFFFF00;
生命线:IF(KEY,EMA(CLOSE,60),0),LINETHICK2,colorFF;
TT0:=(REF(趋势线,1) < 趋势线);
TT1:=(REF(趋势线,1) > 趋势线);
TA:=TT0;
TB:=TT1;
STICKLINE((((KEY AND (CLOSE > 趋势线)) AND (OPEN > 趋势线)) AND TA),HIGH,LOW,0.5,0),colorFFFF;
STICKLINE(((((KEY AND (CLOSE > 趋势线)) AND (OPEN > 趋势线)) AND TA) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),colorFFFF;
STICKLINE(((((KEY AND (CLOSE > 趋势线)) AND (OPEN > 趋势线)) AND TA) AND (CLOSE >= OPEN)),OPEN,CLOSE,8,1),colorFFFF;
STICKLINE(((KEY AND ((OPEN < 趋势线) OR (OPEN < 生命线))) AND TB),HIGH,LOW,0.5,0),colorCCCCCC;
STICKLINE((((KEY AND ((OPEN < 趋势线) OR (OPEN < 生命线))) AND TB) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),colorCCCCCC;
STICKLINE((((KEY AND ((OPEN < 趋势线) OR (OPEN < 生命线))) AND TB) AND (CLOSE >= OPEN)),OPEN,CLOSE,8,1),colorCCCCCC;
STICKLINE((NOT(((((CLOSE > 趋势线) AND (OPEN > 趋势线)) AND TA) OR (((OPEN < 趋势线) OR (OPEN < 生命线)) AND TB))) AND (CLOSE < OPEN)),HIGH,LOW,0.5,0),colorFFFF00;
STICKLINE((NOT(((((CLOSE > 趋势线) AND (OPEN > 趋势线)) AND TA) OR (((OPEN < 趋势线) OR (OPEN < 生命线)) AND TB))) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),colorFFFF00;
STICKLINE((NOT(((((CLOSE > 趋势线) AND (OPEN > 趋势线)) AND TA) OR (((OPEN < 趋势线) OR (OPEN < 生命线)) AND TB))) AND (CLOSE >= OPEN)),HIGH,LOW,0.5,0),colorFF;
STICKLINE((NOT(((((CLOSE > 趋势线) AND (OPEN > 趋势线)) AND TA) OR (((OPEN < 趋势线) OR (OPEN < 生命线)) AND TB))) AND (CLOSE >= OPEN)),OPEN,CLOSE,8,1),colorFF;
STICKLINE(((BARSCOUNT(CLOSE) <= 5) AND (CLOSE < OPEN)),HIGH,LOW,0.5,0),colorFFFF00;
STICKLINE(((BARSCOUNT(CLOSE) <= 5) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),colorFFFF00;
STICKLINE(((BARSCOUNT(CLOSE) <= 5) AND (CLOSE >= OPEN)),HIGH,LOW,0.5,0),colorFF;
STICKLINE(((BARSCOUNT(CLOSE) <= 5) AND (CLOSE >= OPEN)),OPEN,CLOSE,8,1),colorFF;