Topic: Risk balance

hi, will someone have the code for the expert to calculate the balance percentage and apply the risk to mt5?  A few months ago I found in this forum one that works very well for mt4, I would also like to have something similar for mt5.  Thank you