博易技術人員: 博易大師公式:
NS:=IF(TIME>=180000,1,REF(NS,1));博易云公式:
TOTALVOL:=IF((TIME>=180000 AND REF(TIME,1)<180000) OR (NS=0 AND DATE<>REF(DATE,1)),V,REF(TOTALVOL,1)+V);
TOTALAMOUNT:=IF((TIME>=180000 AND REF(TIME,1)<180000) OR (NS=0 AND DATE<>REF(DATE,1)),(O+H+L+C)/4*V,REF(TOTALAMOUNT,1)+(O+H+L+C)/4*V);
AVERAGE:TOTALAMOUNT/TOTALVOL,PRECIS0,COLOR00EAEA;
NS:=VALUEWHEN(TIME>=180000,1);
TOTALVOL:=SUM(V,BARSLAST((TIME>=180000AND(REF(TIME,1)<180000ORREF(TIME,1)=DRAWNULL))OR(NS<>1ANDDATE<>REF(DATE,1)))+1);
TOTALAMOUNT:=SUM((C+O+H+L)/4*V,BARSLAST((TIME>=180000AND(REF(TIME,1)<180000ORREF(TIME,1)=DRAWNULL))OR(NS<>1ANDDATE<>REF(DATE,1)))+1);
AVERAGE:TOTALAMOUNT/TOTALVOL,PRECIS0,COLOR00EAEA;