Does anyone know whether a program exists to calculate FX profit and loss on foreign currency accounts based on the weighted average method? The foreign currency accounts are used for trading stocks denominated in foreign currencies. Interactive Brokers offers a default report of realized FX profit and loss on foreign currency accounts, but it is based on the FIFO method. Thank you.