The script calculates Stop Out price (at this price position will be closed by broker) of the opened position and the price, at which Free Margin became negative (LockOut price).
Generallty, position volume can be specified in the EnterVolume input parameter:

Translated from Russian by MetaQuotes Software Corp.
Original code: http://www.mql5.com/ru/code/795