实体中位:=(o+c)/2;
STICKLINE(CLOSE<OPEN and ref(c,1)>c,实体中位,实体中位,9,0),linethick2,COLORFF66FF;
中位:if(实体中位>0,实体中位,实体中位),POINTDOT,colorred,linethick1;
STICKLINE(C>O and ref(c,1)<c,实体中位,实体中位,9,0),linethick2,COLOR00FF00;
强位:if((c-ref(c,1))/c>0.05 or (ref(c,1)-c)/ref(c,1)>0.05,(实体中位+c)/2,(实体中位+c)/2),POINTDOT,coloryellow,linethick2;
弱位:if((c-ref(c,1))/c>0.04 or (ref(c,1)-c)/ref(c,1)>0.04,(实体中位+o)/2,(实体中位+o)/2),POINTDOT,coloryellow,linethick2;