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 Ltd.
Original code: /ru/code/795
X2MA_BBx3_Cloud
Bollinger Bands displayed as colored background.
UltraCCI
This indicator is based on CCI (Commodity Channel Index) and the analysis of a trend direction of its multiple signal lines.
MPC
The MPC indicator plots a simple channel using extermums of the specified period. It can be used for additional visual control of trading system (channel breakout), based on HighestLowestRange (HLR) indicator.
HLR
The HighestLowestRange (HLR) determines the relative price position in range of the several X bars ago. If price located at range bottom (new low), the indicator is equal to 0, if price position at the top of the range (new high), the indicator is equal to 1 (or 100%).