N:=5;
均价:=(C+(H+l)/2*0.382+(c+O)/2*0.618)/2;
R:=vol*0.809/(((H+均价)/2-(l+均价)/2)*2-Abs((c+均价)/2-(o+均价)/2));
买:=IF(OPEN=CLOSE AND ((c+均价)/2-REF((c+均价)/2,1))/REF((c+均价)/2,1)*100>9.8,VOL,R*((c+均价)/2-(L+均价)/2));
量价比:SUM(买,N)/SUM(V,N)*100;
天:REF(HHV(量价比,15),1),COLOR7F00FF;
地:REF(LLV(量价比,15),1),COLOR00AA99;
dmi:(天+地)/2;