How do you calculate swaps in currency pairs (in forex) and for gold/silver?

Justin Iheakanwa  

hi guys....How do you calculate swaps in currency pairs (in forex) and for gold/silver?


Kindly help to answer the a I've question.
William Roeder  
You don't calculate them — you can get them from the broker via code. Why do you care?
Justin Iheakanwa  
nail sertoglu:

Download the attached files for SWAP & MARGIN calculations

Thanks
Reason: