I must say that your question requires a little more detail. We would like to know if you want to implement your conversion (or calculation) in an Expert Advisor or you just want to do the calculation yourself and know the value you will get. The first case is a little bit challenging especially if you are new to programing with MQL4 (for MT4 platform). Now the second case - by order commission I believe you mean the spread value for an open position. It is listed on the market watch of your metatrader. As for swap, right click an instrument on the market watch and click 'specification'. You need to convert SWAP and SPREAD (the commision) to POINTS by multiplying each by the POINT value of the instrument you have selected, then add the results you get to your Open order value. Hope this helps.