|
博易大师的K线图上可以加分时均价线,不知道有没有用?
源码
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; |
|