Dual currency bond

Hi guys,

how can i replicate operations with dual currency bond where you purchase in currency A and you sell it in currency B afterwards? I tried creating 2 Securities accounts and 2 Reference.
Thank you!