AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:=EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
VAR5:=IF(DATE>=330725,9,1);
主趋势线:EMA(EMA(C,10),10)*VAR5,COLORGREEN,LINETHICK2;
趋势线:=EMA(EMA(C,25),25),LINETHICK2;
PARTLINE(主趋势线>REF(主趋势线,1),主趋势线,COLORRED),LINETHICK2;
DRAWTEXT(ISLASTBAR=1 AND AA AND ISUP AND CC ,趋势线,’ 上涨’),LINETHICK1,COLORRED;
DRAWTEXT(ISLASTBAR=1 AND AA AND NOT(ISUP) AND CC,趋势线,’ 上涨’),LINETHICK1,COLORRED;
DRAWTEXT(ISLASTBAR=1 AND BB AND ISUP AND CC1,趋势线,’ 下跌’),LINETHICK1,COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND BB AND NOT(ISUP) AND CC1,趋势线,’ 下跌’),LINETHICK1,COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND BB AND CC AND ISUP,趋势线,’ 观望’),LINETHICK1,COLORWHITE;
DRAWTEXT(ISLASTBAR=1 AND BB AND CC AND NOT(ISUP),趋势线,’ 观望’),LINETHICK1,COLORWHITE;
DRAWTEXT(ISLASTBAR=1 AND AA AND CC1 AND ISUP,趋势线,’ 观望’),LINETHICK1,COLORWHITE;
DRAWTEXT(ISLASTBAR=1 AND AA AND CC1 AND NOT(ISUP),趋势线,’ 观望’),LINETHICK1,COLORWHITE;