CTA1:=(EMA(CLOSE,1));
CTA2:=(EMA(CLOSE,5));
CTA3:=(EMA(CLOSE,10));
CTA4:=(EMA(CLOSE,20));
CTA5:=(EMA(CLOSE,30));
CTA6:=(EMA(CLOSE,60));
CTA7:=(IF(CTA1-CTA2>=0,1,0));
CTA8:=(IF(CTA1-CTA3>=0,1,0));
CTA9:=(IF(CTA1-CTA4>=0,1,0));
CTA10:=(IF(CTA1-CTA5>=0,1,0));
CTA11:=(IF(CTA1-CTA6>=0,1,0));
CTA13:=(CTA7+CTA8+CTA9+CTA10+CTA11);
CTA12:=(CTA1-CTA6);
短趋势:(CTA1);
中趋势:(CTA6);
热度:(CTA13),NODRAW;
IF(CTA13=0,短趋势,DRAWNULL),COLOR006600;
IF(CTA13=1,短趋势,DRAWNULL),COLOR00C800;
IF(CTA13=2,短趋势,DRAWNULL),COLOR00F400;
IF(CTA13=3,短趋势,DRAWNULL),COLORBLUE;
IF(CTA13=4,短趋势,DRAWNULL),COLORRED;
IF(CTA13=5,短趋势,DRAWNULL),COLORMAGENTA;
IF(CTA13=0,中趋势,DRAWNULL),COLOR006600;
IF(CTA13=1,中趋势,DRAWNULL),COLOR00C800;
IF(CTA13=2,中趋势,DRAWNULL),COLOR00F400;
IF(CTA13=3,中趋势,DRAWNULL),COLORBLUE;
IF(CTA13=4,中趋势,DRAWNULL),COLORRED;
IF(CTA13=5,中趋势,DRAWNULL),COLORMAGENTA;
STICKLINE(CTA13=0 AND 短趋势>=中趋势,中趋势*1.01,短趋势*0.99,2,0),COLOR006600;
STICKLINE(CTA13=0 AND 短趋势< 中趋势,短趋势*1.01,中趋势*0.99,2,0),COLOR006600;
TY:=H;
STICKLINE(CTA13=1 AND 短趋势>=中趋势,中趋势*1.01,短趋势-CTA12*0.47,2,0),COLOR00C800;
STICKLINE(CTA13=1 AND 短趋势>=中趋势,短趋势-CTA12*0.53,短趋势*0.99,2,0),COLOR006600;
STICKLINE(CTA13=1 AND 短趋势< 中趋势,短趋势*1.01,短趋势-CTA12*0.47,2,0),COLOR00C800;
STICKLINE(CTA13=1 AND 短趋势< 中趋势,短趋势-CTA12*0.53,中趋势*0.99,2,0),COLOR006600;
STICKLINE(CTA13=2 AND 短趋势>=中趋势,中趋势*1.01,短趋势-CTA12*0.47,2,0),COLOR00F400;
STICKLINE(CTA13=2 AND 短趋势>=中趋势,短趋势-CTA12*0.53,短趋势*0.99,2,0),COLOR00C800;
STICKLINE(CTA13=2 AND 短趋势< 中趋势,短趋势*1.01,短趋势-CTA12*0.47,2,0),COLOR00F400;
STICKLINE(CTA13=2 AND 短趋势< 中趋势,短趋势-CTA12*0.53,中趋势*0.99,2,0),COLOR00C800;
STICKLINE(CTA13=3 AND 短趋势>=中趋势,中趋势*1.01,短趋势-CTA12*0.47,2,0),COLORBLUE;
STICKLINE(CTA13=3 AND 短趋势>=中趋势,短趋势-CTA12*0.53,短趋势*0.99,2,0),COLOR00F400;
STICKLINE(CTA13=3 AND 短趋势< 中趋势,短趋势*1.01,短趋势-CTA12*0.47,2,0),COLORBLUE;
STICKLINE(CTA13=3 AND 短趋势< 中趋势,短趋势-CTA12*0.53,中趋势*0.99,2,0),COLOR00F400;
STICKLINE(CTA13=4 AND 短趋势>=中趋势,中趋势*1.01,短趋势-CTA12*0.47,2,0),COLORRED;
STICKLINE(CTA13=4 AND 短趋势>=中趋势,短趋势-CTA12*0.53,短趋势*0.99,2,0),COLORBLUE;
STICKLINE(CTA13=4 AND 短趋势< 中趋势,短趋势*1.01,短趋势-CTA12*0.47,2,0),COLORRED;
STICKLINE(CTA13=4 AND 短趋势< 中趋势,短趋势-CTA12*0.53,中趋势*0.99,2,0),COLORBLUE;
STICKLINE(CTA13=5 AND 短趋势>=中趋势,中趋势*1.01,短趋势*0.99,2,0),COLORMAGENTA;
STICKLINE(CTA13=5 AND 短趋势< 中趋势,短趋势*1.01,中趋势*0.99,2,0),COLORMAGENTA;
STICKLINE(CTA13=5 AND 短趋势< 中趋势,短趋势*1.01,中趋势*0.99,7.5,0),COLORMAGENTA;
DRAWICON(CROSS(CTA1,CTA6) AND NOT(REF(CTA13=5,1)) AND CTA13=5,中趋势,9);