Hey everyone, I am trying to calculate the US session vwap. I want the calculation to start when the US session starts, i.e. 16:30 in Greece. I am using this code but I am not geting the right result: if OpenTime=163000 then OpenBarIndex=intradaybarindex SumVol=0 SumVol2=0 for i=OpenBarIndex to intradaybarindex do SumVol=volume+SumVol SumVol2=volume*typicalprice+SumVol2 next VWAP2 = SumVol2/SumVol endif return vwap2 Can you help me fix this code please? John