OrderProfit Calculation for CFDs and Futures?

 

Hi,

I understand how to calculate the OrderProfit in Forex markets.

Could anybody explain how I could do the calculation in MQL in CFDs and Future markets? [ I want to simulate the OrderProfit() Method with different ClosePrices to estimate the win/loss...]

Thanks in advance.