input:mm(50),nn(20);
DT:=IF(CLOSE>REF(CLOSE,1),0.65*VOL,0.45*VOL);
CW2:=SUM(DT,MM);
中期成本:=SUM(CLOSE*DT,MM)/CW2;
YC:=中期成本*1.55/(MA(DT,MM/3)/MA(VOL,MM*2/3));
{压力或支撑:(CLOSE+YC)/2.81*FILTER(IF(CLOSE=HHV(CLOSE,5) AND VOL=HHV(VOL,NN) AND (CLOSE>OPEN OR CLOSE>REF(CLOSE,1)),1,0),10),STICK,LINETHICK8;}
CY:=
(CLOSE+YC)/2.81*IF(CLOSE=HHV(CLOSE,5) AND VOL=HHV(VOL,NN) AND (CLOSE>OPEN OR CLOSE>REF(CLOSE,1)),1,0),STICK,LINETHICK8;
压力或支撑:IF(CY>0,SUM(CY,10)/COUNT(CY>0,10),0);
{撑压位:压力或支撑*0.89,STICK;}
目标1:压力或支撑*1.2,STICK,COLORGREEN,LINETHICK5;
目标2:压力或支撑*1.43,STICK,LINETHICK3;
目标3:压力或支撑*1.66,STICK,LINETHICK2;
目标4:压力或支撑*1.9,STICK;