Dividends are the only cash element that affects the Gain/Loss calculation as they are an income. Dividends will have a positive impact on your Gain position. 

Did this answer your question?