MT4 software itself does not have this function, unless you install a plug-in (there is a method online), but it can only be used to simulate an account. Some foreign exchange dealers' non-MT4 platforms have this function. For example, TS2 software of FXCM can trade the US dollar index.