How to calculate the position market value?

 

Maybe someone have an easy and ready code for this...

How to calculate the position market value, in your broker currency (my USD), as the MT5 application does in toolbox?