Jump to content

(SHARE) ArgoAverager EA


Recommended Posts

Expert Advisor ArgoAverager 1.4 — automatic averager of your trades.

 

ArgoAverager can be used for averaging out an open position (consisting of one or several trading orders), by opening new order(s) in the same direction at a better price(s), typically with a larger volume. If price continues moving against the position, EA will open a grid of additional orders with specified parameters (grid step distance, lot multiplication factor, etc). EA assigns a common take-profit level to all trading orders, which is adjusted automatically when new trading orders are opened.

 

When the price pulls back, ArgoAverager closes the basket of trading orders by the common take-profit. If the price continues moving against the basket and the maximal number of grid levels are opened, EA “locks” the position, by opening a hedging order of such volume that the total position becomes neutral, thus preventing escalation of drawdown further.

 

ArgoAverager has an option of closing all trading orders at a prescribed drawdown.

 

ArgoAverager can be used for averaging only some of the orders on the given currency pair. For example, it can average only Buy or only Sell orders. It can average only one trading order (with the specified ticket number). It can average a group of orders with a specified magic number (e.g., orders opened by another EA).

 

ArgoAverager assigns the take-profit level to all orders and modifies it accordingly to the number of market trading orders. There are two different logics for calculating the take-profit: (i) take-profit (in pips) is calculated from the price of the last order in the basket and (ii) take-profit (in pips) is calculated from the break-even level of the basket.

 

Possible variants of use:

 

You are opening a trading order. Instead of setting a stop-loss, you let ArgoAverager to average your order if the price moves against it.

Your EA has opened several trading orders that are in drawdown now. You can remove this EA from the chart and let ArgoAverager to average out the leftover trading orders.

You need to leave your terminal and cannot supervise your trade for a while. You may let ArgoAverager to take care of your position while you are away.

 

Settings:

Order Selector Section:

These settings select the orders that will be averaged by EA. With the default settings, EA will average all orders for this currency pair.

BuySell (Buy/Sell/All): Buy – select only Buy orders; Sell – select only Sell orders; All – select Buy and Sell orders.

Ticket: Select only order with this ticket. If 0, not active.

Magic: Select only orders with this magic number. If 0, not active.

 

Grid parameters:

GridStepPips: grid step (in 4-digit pips).

TakeProfitType (FixedTakeProfit/DistanceFromBE): select how the take-profit is calculated. FixedTakeProfit – take-profit is calculated from the last order (order with the best price); DistanceFromBE – take-profit is calculated from the breakeven level.

TakeProfitPips: take-profit value (in 4-digit pips).

LotMult: lot multiplication factor.

MaxGridLevel: maximal number of grid orders.

SetTPAtOnce (TRUE/FALSE): If TRUE, EA will set the common take-profit to all orders at once; if FALSE, EA will set the common take-profit when the first pending order is triggered.

 

Lock parameters:

These settings activate the Lock feature of the EA: if the maximal number of grid levels is opened and the price moves another LockDistPips pt against the basket, EA opens the locking order that makes the whole position neutral and removes all take-profits. After that, EA does nothing.

UseLock (TRUE/FALSE): Enable the lock feature.

LockDistPips: locking distance (in 4-digit pips).

 

MaxDD parameters:

This feature closes all open orders if the maximal drawdown is reached.

MaxDD: Maximal open drawdown allowed, in units of the base currency. If the open drawdown of the open orders exceeds MaxDD, all market orders are closed immediately, all pending orders are deleted, and trading is stopped. If MaxDD is set to 0, this option is disabled.

MaxDDPerCent: The same as MaxDD, but in percents of the account balance. E.g., if MaxDDPerCent =30, the trading will be stopped when the drawdown exceeds 30% of your account balance. If MaxDDPerCent is set to 0, this option is disabled.

 

Misc parameters:

MagicEA: magic number of averaging orders.

MagicLock: magic number of the locking order.

comment_color: color of the text in the information box.

box_color: background color of the information box.

colBE: color of the breakeven line.

 

=======================

New in version2.3:

 

1. A bug in filter BuySell is corrected. A bug in filter Ticket is corrected. Note: if you are using several copies of AA on the same currency pair, they SHOULD HAVE DIFFERENT MAGIC NUMBERS.

2. A bug of display of negative target profit in info panel is corrected.

3. Added a flag for immediate closure of all orders CloseAllNow. Note: this flag closes all orders that are allowed by filters + orders opened by EA. E.g., if BuySell = Buy, EA will close only Buy orders.

4. Added a feature CheckMargin, which calculates how many grid levels can be opened with available margin. If MaxDD, MaxDDPercent are set, the calculation will be done for the margin allowed for trading by these variables.

5. Information panel now displays BuySell (when Buy or Sell), MaxDD, MaxDDPercent (when > 0), GridStepPips, LotMult, MaxGridLevels.

 

=======================

 

New in version 2.4:

1. A bug of non-deleting the pending lock order is corrected.

2. In the case when there are both long and short orders, EA request to set up the direction of the averaging (BuySell = Buy or Sell).

 

Download ArgoAverager ver. 2.4 , 2.3 : _https://yadi.sk/d/3O9tSWcSe2MK9

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...