N:=5;
C0:=(h+l+c)/3;
a1:=HHV(C0,n);a2:=LLV(C0,n);a3:=a1-a2;
a4:=ema((C0-a2)/a3,2)*100;
b1:=HHV(C0,4*n);b2:=LLV(C0,4*n);b3:=b1-b2;
b4:=ema((C0-b2)/b3,2)*100;
C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;
C4:=ema((C0-C2)/C3,2)*100;
{- }
短期相对价位:a4,color66dddd,linethick1,COLORRED;
中期相对价位:b4,color6699ff,linethick1,COLORGREEN;
长期相对价位:C4,color6600ff,linethick1,COLORWHITE;
天线:95,coloreeee33,LINEDOT;
短卖线:90,COLORRED,LINEDOT;
地线:5,color33ee33,LINEDOT;
中线:50,coloreeeeee,LINEDOT;