GetLotForOpeningPos – library MetaTrader 5

GetLotForOpeningPos - library for MetaTrader 5
This function returns the lot size depending on the amount of money in the deposit currency being used. Input parameters are represented by three variables: double GetLotForOpeningPos ( string symbol,                 // Symbol of the pair for the calculation of the lot size ENUM_POSITION_TYPE direction,  // Direction of the trade double lot_margin              // The amount of money in