Script AutoSL_TP
The description of actions:
The script automatically to set levels stop loss and take profit with the specified distance for orders that are open without levels.
Assignment:
The script allow quickly to open a position (for example, scalping) by manual.
Parameters:
TakeProfit = the distance (in points) of level takeprofit; value 0 - level takeprofit is not watching.
StopLoss = the distance (in points) of level stoploss; value 0 - level stoploss is not watching.
MagicNumber = "magic" number of orders that manage by script; value "-1" - manage all orders, 0 - manage only manual orders. If this script manage orders of other EA, problems are possible at work.
AllSymbols = the option "manage orders at all currency pairs"; true - manage orders at all currency pairs, false - manage orders, that have same currency pair as chart where script is run.
HiddenLevels = the option "hide a levels s/l and t/p from the broker"; true - levels is hide, false - levels is not hide.
ShowComment = the option "show settings at chart comment"; true - show comment at chart, false - not show comment at chart.
delay = frequency of a check up status of orders. It is set in milliseconds, for example value 5000 means periodicity of 5 seconds. It is necessary to remember, that too often periodicity can brake the terminal.
The status: Free-of-charge, it is possible to download the full version.
Platform: MetaTrader 4.
See also these scripts:
- the system of two orders: "one opens other".
- open order at the specified time.
- open a long position.
Frequently asked questions:
How I can run a script ?
How I can determine that the script works ?
How I can assign "hot key" for start of a script ?
|