慢线1:=EMA(快线1,9),LINETHICK,LINETHICK2;
寻找顶底:(快线1-慢线1)*2,COLORSTICK;
STICKLINE(寻找顶底0,0,寻找顶底,2,0),COLORMAGENTA;
STICKLINE(寻找顶底>=REF(寻找顶底,1)AND 寻找顶底>0,0,寻找顶底,2,0),COLORRED;
STICKLINE(寻找顶底>REF(寻找顶底,1)AND 寻找顶底<0,0,寻找顶底,2,0),COLORLIBLUE;
STICKLINE(寻找顶底<=REF(寻找顶底,1)AND 寻找顶底<0,0,寻找顶底,2,0),COLORBLUE;
快线:EMA(CLOSE,12)-EMA(CLOSE,26)COLORWHITE,LINETHICK1;
慢线:EMA(快线,9),COLORYELLOW,LINETHICK1;
波段1:EMA(CLOSE,24)-EMA(CLOSE,35),COLORGREEN,LINETHICK2;
波段2:EMA(波段1,18),COLORRED,LINETHICK2;
寻找顶底2:=(波段1-波段2)*2,COLORSTICK;
海平面:0,COLORBLUE,LINETHICK2;
Q1:=IF(BARSLAST(CURRBARSCOUNT=2),10,0);
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),海平面,''),COLORYELLOW;
DRAWICON(LONGCROSS(波段1,海平面,0.1),海平面,15),COLORGREEN;{红十字}
DRAWICON(LONGCROSS(波段2,海平面,0.1),海平面,15),COLORGREEN;{红十字};
DRAWTEXT((Q1>=10 AND REF(Q1,1)<=0),海平面,'--海平面'),COLORLIGREEN;
DRAWICON(LONGCROSS(慢线1,快线1,0.1),快线1,2),COLORRED;
DRAWICON(LONGCROSS(快线1,慢线1,0.1),快线1,1),COLORGREEN;
JH1:DRAWICON(LONGCROSS(波段2,波段1,0.1),波段1,39);
JH2:DRAWICON(LONGCROSS(波段1,波段2,0.1),波段2,9);
JH3:DRAWICON(LONGCROSS(快线1,波段2,0.1),快线1,38);
JH4:DRAWICON(LONGCROSS(慢线1,波段2,0.1),慢线1,38);
JH5:DRAWICON(LONGCROSS(快线1,海平面,0.1),寻找顶底,25);