Rollovers are only applied to positions that are open at market close in New York. You can either earn or pay when a rollover is applied to your position.
When trading a currency you are borrowing one currency to purchase another. The rollover rate is typically the interest charged or earned for holding positions overnight. A rollover interest fee is calculated based on the difference between the two interest rates of the traded currencies.
If the currency you are buying has a higher interest rate than that which you are selling, you will typically earn rollover fees. If the currency you are selling has a higher interest rate than that which you are buying, you will typically pay rollover fees.
Example:
You’re trading EUR/NZD (Euro/New Zealand Dollar). The EUR has a low interest rate whereas the NZD has a relatively high interest rate. You are borrowing the high-rate currency to buy the low-rate one, so you are trading at a premium: you will pay rollover fees on this trade if held overnight. If you sell EUR (i.e. go short) to buy NZD, you will be trading at a discount and earn rollover rates on this trade.