In this article I discribed how to calculate the forex position size and margin requirements for different currency pairs. I wrote an macOS application to calculate everything on demand. Check the article with the download instructions at the end.
Open Source Projects
FX Calc github
This application is a tool to calculate forex position sizes as lots and units. It also shows how much margin is needed to open the position.
This project sets up Sublime Text 3 as C++ IDE with CMake Build System. It is possible to build right from ST3 with shortcut CMD+B.
C++/Qt5 starter project with cmake build system, QtQuick, QtWidgets, AppIcon, macOS bundle and macdeployqt support.
The xtbclient lib is a C++14 class library that enables communication via sockets between your trading application and the XTB trading server.
You can find more projects in my Github Account.