So, I have been using the formula below to calculate swap rate:
Swap = Lots*Open Price*Symbol swap rate (long or short)*1/(360*100)*contract size*quote currency to usd rate
Below are my calculations for several symbols:
From the calculation shown above, we can see that the formula works for fr40 and us30, however it does not work on eu50 and uk100.
Any suggestions on how to calculate the swap rate?