User manual to UTrailing EA



UTrailing – universal trailing stop, made in the form of an expert adviser, but without its own mechanism for opening orders. It has 7 main modes of operation: by points, by bar extremes, by fractals, by volumes and by indicators (ATR, Parabolic SAR and Moving Average). EA Utrailing is useful to any trader, but most of all like traders who trade hands, for them it will be a great assistant.


Version 6


0:10 Adding Stop Loss to open order; 1:05 Adding Stop Loss to all open orders; 1:52 Closing all unprofitable orders; 2:09 Breakeven on another currency pair; 2:40 Trailing pending orders; 3:57 Traling pending only Buy orders; 4:47 Deleting all pending orders; 5:15 Disabling the EA; 5:36 Trailing stop on extremes bar; 6:13 Trailing stop on fractals; 6:42 Trailing stop on ATR; 7:16 Trailing stop on EMA 34; 7:59 Trailing stop on Parabolic SAR; 8:35 Trailing stop on the indicator Volumes; 9:51 Trailing stop on percentage; 12:12 Mobile stop loss; 13:25 Bitcoin.


Important: in the strategy tester, only demo trading is possible, by default with market orders, and if trailing pending orders is enabled, you can see how the EA works with pending orders.


FEATURES UTRAILING EA

  • 4 types: regular trailing stop, percentage trailing stop, mobile stop loss, total trailing stop;
  • 7 main modes: by points, by bar extremes, by fractals, by volumes and by ATR, Parabolic SAR and Moving Average indicators;
  • trailing stop for all orders opened in the terminal;
  • trailing stop is selective for only one symbol, magic number, or direction;
  • trailing of pending orders is adjusted by order type, direction, points, fractals, bar extremes and does not depend on the choice of in " Positions";
  • the possibility of choosing the direction of the trailing stop (only for orders to Buy or only to Sell);
  • possibility of one-time stop loss setting for all open orders;
  • closing orders at a specified percentage of profit/loss;
  • the virtual (invisible) trailing stop;
  • closure locking orders for a given profit;
  • "hot buttons" for quick commands ("Close All", "Close Loss", "Close Profit", "Delete PO", "Delete SL");
  • simultaneous closure of all orders in the terminal using "hot keys";
  • working with crypto currencies (#Bitcoin, etc.);
  • operates on 4- and 5-digit accounts.


HOT KEYS

F7 – opens properties window of the Expert Advisor.

Shift + 0 – closes absolutely all trades opened in the terminal.
To do it, you need to place the cursor over the price chart, where the Expert Advisor is running, click on the chart with the left mouse button (select the chart) and then press "Shift" and "0" buttons in sequence. To unlock, again press "Shift" and "0".


HOT BUTTONS

Hot buttons are designed for quick execution of one command. After pressing the button, its color changes, and the button is blocking, when pressed again, removed the blocking and leads to the original state of the button. Any press of the button EA fixes in its log, you can see the current position of the button on the tab "Experts". You can also unblock the button using the new initialization of the EA (for example, switching to another timeframe). In this case, you do not need to press anything, the blocking is removed automatically.

hot buttons

Close All – closes all orders, absolutely all orders in the terminal and removes all pending orders.

Close Loss – closes only orders that have a loss.

Close Profit – closes only orders with profit.

Delete PO – removes only pending orders.

Delete SL – removes stop loss from open orders.


Enter the key


Enter the key = 0 – it is enough to enter the numerical key in the field once so that the Expert Advisor can operate on a real account. After the key is checked, the EA will create a special file which will be stored in the created folder "General_key" (MQL4 -> Files -> General_key). With each new launch, the Expert Advisor finds the key file itself and checks it for compliance with this account. You do not need to re-enter the key. The key is common to all of our free advisors and indicators that are installed on this account.



Block 1. GENERAL SETTINGS

general setting

Allow the EA to work = true - if you select false, the EA will suspend its work, stop monitoring orders and will not move the stop loss.

Magic Number = -1 - allows you to specify the EA, which orders (with which magic number) it needs to track. The magic number will be displayed on the chart for your convenience and appear in the right corner of the terminal’s screen to the left of the Expert Advisor.

If you set the magic number 0, the chart will display the message "0" and the EA will monitor and work only with orders that were opened manually on this currency pair.

If you allow working with all symbols and leave the magic number 0 on the chart, the message "0. All symbol " and the EA will monitor and work with all orders in the terminal that were opened manually.


Magic number 0

If you set the magic number -1 (minus one), the chart will display the message "-1" and the EA will work with all open orders on this currency pair (including orders opened manually).

All Symbol = false, if true, the EA will control all trades for all symbols.

Positions:

  • Long only - to trail the stop loss only for buy orders;
  • Short only - to trail the stop loss only for sell orders;
  • Long & Short - trailing stop in both directions.

Positions

Add Stop Loss for all open orders = true, the EA will set a stop loss for all open orders.

Stop Loss in points = 30 - the stop loss in the points

Breakeven – when there is a small profit, and trailing stop is still not included, the EA moves the stop loss set at breakeven level.

Profit to enable a breakeven = 12 – level of take-profit in points, at which a breakeven is enabled

Level breakeven = 2 – sets the level, at which a stop-loss must be moved: if set to 1, then the position will be closed, when the profit is 1 point; if set to 0, then the position will be closed with the profit of 0 points.


Profit/Loss percent = false, if true, the EA will close orders when reaching a certain percentage of the profit or loss.

Profit % for close orders = 20, if the Equity become more than the Balance by the set percentage, all orders will be closed.

Loss % for close orders = 70, if Equity becomes less than the Balance by the set percentage, all orders will be closed.

Close at profit – if true, the EA will close all open orders and delete all pending orders if there is a profit from 0 and above (set to "Profit in the deposit currency") on the account.

Profit in the deposit currency = 100.0 – profit at which the command "Close with profit"will start working.

Important: if two commands "Close at profit" and "Close off lock, if the profit" are enabled at the same time, the priority for the first command and the command "Close off lock, if the profit" will not work.

Slippage = 3 - the level of slippage in points on the volatile market it is better to increase.



Block 2. TRAILING PENDING ORDERS

pending orders

Pending orders trailing = false, if true, the EA will trail pending orders.

Trailing orders by:

  • Points - the pending order will move by the points.
  • Fractals - the pending order will move by the fractals.
  • High/Low - the pending order will moved by High/Low.

selection of trailing of pending orders

Timeframe for trailing orders: = «30 Minutes» - choice of the timeframe by which you want to work with trailing stop for pending orders.


timeframe for trailing pending orders

Pending orders type:

  • Stop Orders - trailing stop orders only (Buy Stop и Sell Stop).
  • Limit Orders - trailing limit orders only (Buy Limit и Sell Limit).
  • Stop & Limit - trailing stop and limit orders together.

pending orders type:

Direction trailing:

  • Buy orders only - trailing pending orders, only on buy.
  • Sell orders only - trailing pending orders only on sell.
  • All orders - trailing all pending orders.
direction trailing stop

Important: the trading direction for pending orders does not depend on the choice of the "Positions:" (Long only or Short only).


Indent from High/Low and fractals = 5 in points.

_ _ _ STOP Orders_ _ _
Trailing level for stop orders = 15 - in points, the distance of pending orders from the current price, if it becomes larger the EA pulls pending orders closer to the price.
Step trailing = 3 in points.

_ _ _ LIMIT Orders _ _ _
Trailing level for limit orders = 20 - in points, the distance of pending orders from the current price, if it becomes larger the EA pulls pending orders closer to the price.
Step trailing = 3 in points.



Block 3. TRAILING OPEN POSITION

trailing stop

Mode selection: – the choice of strategy is the trailing stop, maybe 4 positions:

  • Normal - standard trailing stop, starts trail only when there is profit;
  • Percentage - when a new level of profit (3 levels in total) is reached, the trade volume will be partially reduced by a fixed percentage;
  • Mobile stop loss - stop loss follows the price like a trailing stop immediately after the order is opened;
  • Total trailing stop - by one (average) stop loss closes all open orders in one direction, including lossing orders.
  • Disabled - trailing stop is disabled and does not work.

choice trailing stop

Virtual trailing stop - virtual (not visible for broker) a trailing stop, for a trader in the lower right corner of the graph displays information about the position of the virtual stop loss.


Timeframe for trailing stop: = «1 Hour» - choice of the timeframe by which you want to work with trailing stop (except for Points).

timeframe for trailing stop

Trailing stop by: - selecting the type of trailing stop on the instrument can be 6 positions:

  • Points - standard trailing stop by points;
  • High/Low - the High/Low of the previous bar;
  • Fractals - by fractals;
  • Volumes - by volumes, by indicator "Volumes";
  • Moving Average - by moving average;
  • Parabolic SAR - by Parabolic SAR;
  • ATR - by ATR.

type of trailing stop

Trailing stop level = 30 - trailing stop level in points.

Trailing step = 3 - step of trailing, if the profit is 30 points, trailing will move a stop-loss to 2 points.

Indent from High/Low and fractals = - the distance in points from the stop loss to the maximum or the minimum of the bar or the fractal.

ATR period = 14 - ATR (Average True Range) indicator period, you can adjust the trailing stop distance from the price using "Indent from High/Low, fractals, ATR" by increasing or decreasing its value. If Buy order, then the amount "Indent ..." + the ATR level is deducted from the Bid price. If Sell order, then the amount "Indent ..." + the ATR level is added to the Ask price.

Level of Volumes = 100 - sets the level volumes. Trailing stop is work if columns of a volume histogram are lower than a pre-set level – 100, if the columns are higher than the level, then trailing will be temporarily disabled, until the columns are lower than the pre-set level, for 5-digit brokers automatically increases to 10.

_ _Moving Average_ _

MA period = 34 - period moving average.

MA shift = 0 - shift moving average.

MA method: = Exponential - the choice method of calculation of the moving average.


Method of averaging MA

Applied price: = Close price - choosing price to calculate the moving average.


Type price MA

_ _Parabolic SAR_ _

Step = 0.02 - step Parabolic SAR.

Maximum = 0.2 - maximum Parabolic SAR.

Trailing stop by percent

_ _Trailing by percents:_ _

1_Reduction in the lot on: = 10 % - the choice of the first percentage for a first reduction of lot size.


choice of the first percentage

1_Take Profit, points = 20 - the first Take Profit after which there will be the first partial closure of the position, reducing the volume of the lot by a fixed percentage.

1_Level breakeven, points = 5 - the first level of breakeven before the first partial closing of the position.


2_Reduction in the lot on: = 30 % - the choice of the second percentage for a second reduction of lot size.

2_Take Profit, points = 30 - the second Take Profit after which there will be a second partial closure of the position, reducing the volume of the lot by a fixed percentage.

2_Level breakeven, points = 10 - the second level of breakeven before the second partial closing of the position.


3_Reduction in the lot on: = 80 % - the choice of the third percent for a third reduction of lot size.

3_Take Profit, points = 50 - the third Take Profit after which there will be a third partial closure of the position, reducing the volume of the lot by a fixed percentage.

3_Level breakeven, points = 20 - the third level of breakeven before the third partial closing of the position.


on interest


trading result


Block 4. CLOSE OFF LOCK


close off lock

Close the "lock", if the profit = false - allows to close the "lock", if set to true.

Profit in the deposit currency= 100 - the size of the profit in the Deposit currency which must be closed lock order, can be set 0.



Block 5. OTHER SETTINGS

other settings

Sound alerts modified orders = true - sound signals are allowed when modifying stop loss orders if false, the sound is muted.

Language: – switch the language on the info messages can be Russian or English.


>background graphics

Background: – Dark1 - selects the color background of the chart Dark1 or Dark2 and Light.


color background

Show info messages = true - displays textual information about the financial status of the account and currently active commands on the chart, if false, it does not show messages.

Show hot buttons = true - yes, show, false - no, do not show, "hot buttons" in the strategy tester do not work!

Multiplier for cryptocurrency = Disabled - disabled, select and set the desired multiplier.


cripto

The multiplier for cryptocurrencies or how much you need to increase all the parameters in the EA to make it work on this instrument correctly, you can find out from the specification of the instrument.
For example: in InstaForex for an account with a 4-digit quote, the spread and stop level for #Bitcoin is 12000 points. Therefore, you need to choose the multiplier "x1000", then the stop loss of 30 points will be set at a distance of 300000 points from the price (30 x 1000). For #Ethereum spread of 200 points means you need to choose the multiplier "x100" and then stop loss will be 3000 points (30x100). For #Ripple spread 50 points - you need to select "x10" and stop loss will be 300 points (30x10).

Delete objects, in minutes = 480 - clears the chart from unnecessary graphical objects (arrows, modified stop-loss and take-profit levels, etc.) in a certain period of time set in minutes (480) passed from the moment, when an object is created.




Дата публикации: 7-11-2017, 18:26, Проссмотров: 2031

Облако тегов

Архив новостей

^