M5:MA(C,5);
M10:MA(C,10);
M60:MA(C,60),COLORRED;
VAR1:=FILTER(BacKSET(REF(H,2)=HHV(H,5),3),2);
VAR2:=FILTER(BACKSET(REF(L,2)=LLV(L,5),3),2);
STICKLINE(VAR1,H,H,12,0),COLORRED;
DRAWNUMBER(VAR1,H*1.02,H),COLORRED;
STICKLINE(VAR2,L,L,12,0),COLORYELLOW;
DRAWNUMBER(VAR2,L,L),COLORYELLOW;
{ _通达信股票指标公式}
半分位:=(O+C)/2;
昨半分位:=REF(半分位,1);
STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0),COLORMAGENTA;
DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,昨半分位,' 昨半分位'),COLORMAGENTA;
HH:=REF(H,BArslAST(VAR1));
LL:=REF(L,BARSLAST(VAR2));
分形半分位:=(HH+LL)/2;
STICKLINE(ISLASTBAR,分形半分位,分形半分位,10,0),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,分形半分位,分形半分位),COLORYELLOW;
DRAWTEXT(ISLASTBAR,分形半分位,' 最近分形半分位'),COLORYELLOW;