Function for calculating lot size from risk per deposit

Experts MetaTrader 5 Free

The function calculates the lot size of an open position. The opening price of a deal, the price of stop loss level and the risk per deal in per cent of the deposit are passed as parameters