Trading between generations is only possible with Gen1 and 2, can't backwards convert for the other games.
When trading, the data is swapped. PKHeX doesn't swap data as it allows you to clone data. Just open two windows of PKHeX and drag drop between to facilitate a trade. You already have the save file data, just transfer a pkm and delete on the other save if you want to emulate a swap.