MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

ReverseSymbol Indicator
ReverseSymbol
Author: GODZILLA
Creating Active Control Panels in MQL5 for Trading Creating Active Control Panels in MQL5 for Trading Alert LinesAlert Lines Try product
Alert Lines
Author: ForexChen
Subscribe to signal
AAA1361440
48.74%, 14 971.33 USD
Screenshot
سكه‌امامي, D1
Demo
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.02.03 13:08
StopOutPrice

StopOutPrice [ru]

IvanBG

Downloads:
845
Views:
703
Rating:
votes: 8
Files:
\MQL5\Scripts\

Description:

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.

Image:

StopOut price calculation

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