短上轨:EMA(HIGH,24),colorred;
短下轨:EMA(LOW,24),colorgreen;
NOTEXT短下轨0:IF(CLOSE>短下轨,短下轨,DRAWNULL),colorred;
NOTEXT短下轨1:IF(CLOSE<短下轨,短下轨,DRAWNULL),colorgreen;
NOTEXT短上轨0:IF(CLOSE>短上轨,短上轨,DRAWNULL),colorred;
NOTEXT短上轨1:IF(CLOSE<短上轨,短上轨,DRAWNULL),colorgreen;
STICKLINE(CLOSE>短上轨,短上轨,短下轨,0,0),colorred;
STICKLINE(CLOSE<短下轨,短上轨,短下轨,0,0),colorgreen;
短轨差:短上轨-短下轨,NODRAW,coloryellow;
长上轨:EMA(HIGH,90),colormagenta;
长下轨:EMA(LOW,90),colorblue;
NOTEXT长下轨0:IF(CLOSE>长下轨,长下轨,DRAWNULL),colormagenta;
NOTEXT长下轨1:IF(CLOSE<长下轨,长下轨,DRAWNULL),colorblue;
NOTEXT长上轨0:IF(CLOSE>长上轨,长上轨,DRAWNULL),colormagenta;
NOTEXT长上轨1:IF(CLOSE<长上轨,长上轨,DRAWNULL),colorblue;
STICKLINE(CLOSE>长上轨,长上轨,长下轨,0,0),colormagenta;
STICKLINE(CLOSE<长下轨,长上轨,长下轨,0,0),colorblue;
长轨差:长上轨-长下轨,NODRAW,coloryellow;
DRAWNUMBER(REF(CLOSE,3)短上轨 AND 短上轨<长下轨 AND COUNT(CLOSE<短下轨,6)>0,LOW*0.96,4),colormagenta;
DRAWNUMBER(REF(CLOSE,3)短上轨 AND CLOSE>长上轨 AND COUNT(CLOSE<短下轨,6)>0,LOW*0.96,10),colormagenta;
DRAWNUMBER(REF(CLOSE,3)长上轨 AND CLOSE>短上轨 AND COUNT(CLOSE<长下轨,6)>0,LOW*0.96,10),colormagenta;
DRAWNUMBER(REF(CLOSE,3)>REF(短上轨,3) OR REF(CLOSE,3)>REF(短下轨,3) AND (REF(CLOSE,2)>REF(短上轨,2) OR REF(CLOSE,2)>REF(短下轨,2)) AND (REF(CLOSE,1)>REF(短上轨,1) OR REF(CLOSE,1)>REF(短下轨,1)) AND CLOSE<短下轨 AND 短上轨>长上轨 AND CLOSE>长下轨 AND COUNT(CLOSE>短上轨,6)>0,HIGH*1.04,6),colormagenta;
DRAWNUMBER(REF(CLOSE,3)>REF(短上轨,3) OR REF(CLOSE,3)>REF(短下轨,3) AND (REF(CLOSE,2)>REF(短上轨,2) OR REF(CLOSE,2)>REF(短下轨,2)) AND (REF(CLOSE,1)>REF(短上轨,1) OR REF(CLOSE,1)>REF(短下轨,1)) AND CLOSE<短下轨 AND 短下轨<长下轨 AND COUNT(CLOSE>短上轨,6)>0,HIGH*1.04,0),colormagenta;
DRAWNUMBER(REF(CLOSE,3)>REF(长上轨,3) OR REF(CLOSE,3)>REF(长下轨,3) AND (REF(CLOSE,2)>REF(长上轨,2) OR REF(CLOSE,2)>REF(长下轨,2)) AND (REF(CLOSE,1)>REF(长上轨,1) OR REF(CLOSE,1)>REF(长下轨,1)) AND CLOSE<长下轨 AND CLOSE<短下轨 AND COUNT(CLOSE>长上轨,6)>0,HIGH*1.04,0),colormagenta;