C0:=(HIGH+LOW+CLOSE)/3;
A1:=HHV(C0,N);
A2:=LLV(C0,N);
A3:=A1-A2;
A4:=SMA((C0-A2)/A3,3,1)*100;
B1:=HHV(C0,4*N);
B2:=LLV(C0,4*N);
B3:=B1-B2;
B4:=SMA((C0-B2)/B3,3,1)*100;
C1:=HHV(C0,13*N);
C2:=LLV(C0,13*N);
C3:=C1-C2;
C4:=SMA((C0-C2)/C3,3,1)*100;
短期相对价位:A4,LINETHICK2,color66FFFF;
中期相对价位:B4,LINETHICK2,color6688FF;
长期相对价位:C4,LINETHICK2,color6600FF;
天线:90,POINTDOT,LINETHICK1,colorEEEE33;
地线:10,POINTDOT,LINETHICK1,color33EE33;
中线:50,POINTDOT,LINETHICK1,colorEEEEEE;
EXPLAIN(A4=HHV(A4,8) AND A4>10,'短期趋势向上'),colorFFBB;
EXPLAIN(A4=LLV(A4,8) AND A4<90,'短期趋势向下'),colorFFFF;
EXPLAIN(A4>LLV(A4,8) AND A4
EXPLAIN(B410 AND B4<=LLV(B4,10),'中期趋势向下'),colorFFFF;
EXPLAIN(A4>REF(A4,3) AND A4>20 AND LLV(A4,10)<10 AND A4<70,'形成短期底部'),colorFFFF00;
EXPLAIN(B4>REF(B4,3) AND B4<20 AND C4<10,'有望形成中期底部');
EXPLAIN(B4>REF(B4,3) AND B4<60 AND LLV(B4,10)<10 AND B4>C4 AND C4>REF(C4,2) AND C4>10 AND C4<30,'中期底部确认'),colorFF00;
EXPLAIN(A490 AND A4>30,'形成短期顶部'),color88FF;
EXPLAIN(B480 AND C4>90,'有望形成中期顶部');
EXPLAIN(B440 AND HHV(B4,10)>90 AND B4