
80,COLOR996699;
20,COLORGREEN;
10,COLORCC6633,LINETHICK2;
90,COLOR9966FF,LINETHICK2;
A:=MA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(LOW,34)),19),COLORRED;
B:=-100*(HHV(H,14)-C)/(HHV(H,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(LOW,34)),4),LINETHICK2;
长期CQX:A+100,COLOR9900FF;
短期DQX:B+100,COLOR888888;
中期ZQX:D+100,COLOR4080FF,LINETHICK2;
见顶:(REF(中期ZQX,1)>85 AND REF(短期DQX,1)>85 AND REF(长期CQX,1)>65) AND CROSS(长期CQX,短期DQX);
顶部区域:(中期ZQX<REF(中期ZQX,1) AND REF(中期ZQX,1)>80) AND (REF(短期DQX,1)>95 OR REF(短期DQX,2)>95 ) AND 长期CQX>60 AND 短期DQX<83.5
AND 短期DQX<中期ZQX AND 短期DQX<长期CQX+4;
顶部:=FILTER(顶部区域,4);
底部区域:(长期CQX<12 AND 中期ZQX<8 AND (短期DQX<7.2 OR REF(短期DQX,1)<5) AND (中期ZQX>REF(中期ZQX,1) OR 短期DQX>REF(短期DQX,1)))
OR (长期CQX<8 AND 中期ZQX<7 AND 短期DQX<15 AND 短期DQX>REF(短期DQX,1)) OR (长期CQX<10 AND 中期ZQX<7 AND 短期DQX<1);
STICKLINE( 顶部,99,103,20,1 ),COLORRED,LINETHICK2;
STICKLINE( 底部区域,-4,0,22,0 ),COLORMAGENTA;
低位金叉:长期CQX<15 AND REF(长期CQX,1)<15 AND 中期ZQX<18 AND 短期DQX>REF(短期DQX,1) AND CROSS(短期DQX,长期CQX) AND 短期DQX>中期ZQX
AND (REF(短期DQX,1)<5 OR REF(短期DQX,2)<5 ) AND (中期ZQX>=长期CQX OR REF( 短期DQX,1)<1 );
STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;
STICKLINE( 见顶,99.5,102.5,3,0 ),COLORGREEN;