Swap in Account currency

 

Hi people,

I'm using a function to caluclate the swap automatically in the base currency

in this case for S&P 500 MarketInfo(Symbol(),MODE_SWAPLONG)     (cause MarketInfo(Symbol(),MODE_SWAPTYPE)=1)

I would like to know how to calculate in the accoount currency. Example, in the case of the S&P500 the function return me 0.46 ;I presume dollars

I would like to know how to calculate it dinamically in deposit currency

Thanks

Reason: