Download MetaTrader 5

Scripts: StopOutPrice

To add comments, please log in or register
They are making profit already using Freelance service. You can join them!
Automated-Trading
Admin
99860
Automated-Trading 2012.02.03 13:08 

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.

Author: Ivan Ivanov

StopOut price calculation

To add comments, please log in or register