Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Script | StopOutPrice

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:

  • EnterVolume=0 (by default) - use volume and direction of current position;
  • EnterVolume>0 - perform calculation for long position with EnterVolume volume;
  • EnterVolume<0 - perform calculation for short position with EnterVolume volume.

MetaTrader Experts, Indicators, Scripts and Libraries

795

Best MetaTrader Indicators + Profitable Expert Advisors