How could I calculate my position size

 

Wondering if anyone has a code or link to a code to help me calculate my position size through MT4, as well a pip value converter

THanks

Reason: