MQL5 position commission retrieving

 
Hey guys, looked at the documentation about the CPositionInfo class which seems to have a Commission() function to retrieve commission but maybe I use it wrongly is there someone who can show me the proper way of using it? A sample code would be appreciated. Thanks
 
Bryan Djoufack Nguessong: but maybe I use it wrongly

Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
     How To Ask Questions The Smart Way. (2004)
          Be precise and informative about your problem

We can't see your broken code.

 
William Roeder #:

Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
     How To Ask Questions The Smart Way. (2004)
          Be precise and informative about your problem

We can't see your broken code.

Sorry it’s okey anyway. Figured it. It was my bad
 
William Roeder #:

Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
     How To Ask Questions The Smart Way. (2004)
          Be precise and informative about your problem

We can't see your broken code.

There is no. Roken code, a position does not have any commission, a deal have commissions 

Reason: