Converting risk to points and setting stop loss as percentage of equity.
Pips are displayed in some places in Metatrader like trade lines on screen but there they seem to be equal to points. As Points have defined code functions I refer to points in the video.
The code is available on GitHub: https://github.com/OrchardForexTutorials/220320_risk_based_size_and_stop_loss