Trading to a person from 2 save files

For example, If I am trading a charizard for a venusaur, can I trade him the charizard for a random pokemon from my second save file, then trading a random pokemon for his venusaur from my first save file. Is that allowed, or will that get me banned?

Should be allowed

thanks for verifying