Download EA Averager

Download Assistant
Download EA TickSniper Scalper
Download Assistant
Download EA TickSniper Scalper
Download EA Averager
Download EA Averager
11819 Transferências

 

 

 

Averaging positions. Opening of additional positions on the trend and against the trend with the function of the general trailing stop of the profit!

The advisor can open both trend-following and counter-trend positions, with the option to use an average trailing stop for a series of trades.

Additionally, the lot size can be increased or decreased.

This approach is commonly used to bring unprofitable positions to the average price.

The proposed strategy involves the opening of additional positions in the direction of the trend and against the trend using a general trailing stop of the profit. This means that once the initial position is taken, subsequent positions will be opened in the same direction as the trend, as well as in the opposite direction, depending on the market conditions.

The strategy also includes the use of a trailing stop, which is a dynamic stop-loss order that moves in line with the market price. The general trailing stop of the profit is used to lock in profits as the market moves in the desired direction.

Overall, this approach allows traders to capitalize on both the upward and downward movements of the market while minimizing risk through the use of a trailing stop.

Main Documentation Settings FAQ 

Changelog Reviews Comments Extra

 

Changelog:

ersion 24.404 2024.04.04

Global Update EAPADPRO v55

Added: information about profit from closed positions to the chart.

The information is displayed for each bar of the current timeframe.

You can change the timeframe to see the result of trading on a certain bar of the current timeframe.

If several positions/deals are closed on one bar of the current timeframe, the trading result is summarized, and the total information for a certain bar is displayed.

The information is updated when the next position/deal is closed.

You can turn off showing history in the panel settings.

Exp - Averager. Averaging trading positions. Opening deals against the trend and on the trend! - Image 76

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

Added: The status of the Expert Advisor operation if it was launched on the server from “VPS MQL MetaQuotes”.

When Expert Advisor is running on the server from MetaQuotes, a message will be created on the home computer that Expert Advisors are running on the server “VPS MQL MetaQuotes”. The smiley face is blue.

Attention: If an Expert Advisor is launched on both the server and the home computer, it can trade in parallel on 2 terminals (server “VPS MQL MetaQuotes” + home computer); there may be conflicts.

Attention: If the Expert Advisor is launched on the server “VPS MQL MetaQuotes”, do not Turn it on work on the home computer to avoid conflicts.

Frequency of polling the status of work on the server = 1 day.

After deinitialization of the Expert Advisor on the server – It will get the status – stopped.

To test the work on the server from “VPS MQL MetaQuotes”, pending orders are created!

Exp - Averager. Averaging trading positions. Opening deals against the trend and on the trend! - Image 77

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

Added: The error status of the Expert Advisor operation can now be read on the EAPADPRO panel.

You can click on the Smile or the Expert Advisor operation status bar and you will be shown a message about current errors of Expert Advisor operation.

If you click on the Smile button on the panel, you will be shown the causes and errors and their solutions with pictures.

Exp - Averager. Averaging trading positions. Opening deals against the trend and on the trend! - Image 78

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

Added: Notification of errors and opening/closing of trades to the chart in the form of InfoBox.

Notification is shown for 4 types:

—Opening a new trade;

—Closing a deal;

—Modification of a trade;

—Error received by Expert Advisor from the server;

In the EAPADPRO panel settings, you can turn on or off the notification type you need.

Notifications can be viewed as they arrive in the notification queue.

Notifications are accumulated in a data array each time you install/reinstall/change Expert Advisor settings.

In the EAPADPRO header you can also enable disable INFOBOX.

Exp - Averager. Averaging trading positions. Opening deals against the trend and on the trend! - Image 79

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

Added: Working with Telegram (Beta version)

For Expert Advisor to work with the Telegram bot, you need to set up the bot on your phone and create a “public” or “private” channel.

To receive notifications from your account, you need to assign your bot as an administrator of your “public” or “private” channel.

Attention! Sending notifications and working with commands takes computer resources! Use the Telegram bot only for your own needs.

How To set Telegram bot:

New settings for working with Telegram:

EAPadPRO2=” =============== Telegram bot “;

==input ENUM_UPDATE_MODE TG_UpdateMode=UPDATE_SLOW –> Update Mode. Timer speed, to receive commands from Telegram bot. The faster the timer runs, the more computer resources will be used! Please do not change it unnecessarily. 2sec,3sec,10sec

==TG_PRIORITY=TG_HOME_VPS –> Priority of work. This is the priority mode when the Telegram bot works on the MetaQuotes VPS server and your home computer.

TG_HOME_ONLY=1, // Only the HOME bot. The Telegram bot works only on the home computer.

TG_VPS_ONLY=2, // Only the VPS bot. The Telegram bot works only on the MetaQuotes VPS server.

TG_VPS_HOME=3, // First VPS bot, second HOME bot. The Telegram bot works on the MetaQuotes VPS server if you upload it to the server. If not, it will work on your home terminal. Check the work on the VPS server every 10 minutes.

TG_HOME_VPS=4, // First HOME bot, second VPS bot. The Telegram bot works on a home computer, but if the home computer/terminal is turned off, it will work on the VPS server from MetaQuotes. Check the VPS server’s work every 10 minutes.

Attention! Screenshots are not available on the VPS server from MetaQuotes!

==TG_Token=”” –> Token bot. Token (unique code) of the bot that will send notifications and receive commands

==TG_ChannelName=”” –> –> Public Channel Name @. Or “private” ID starts -100 of the private channel. That will send notifications about opening/closing/modification/errors and screenshots from the terminal.

==TG_UserNameFilter=”” –> Whitelist Usernames. List of users, starting with @, who can use the bot.

Attention! Sending notifications and working with commands takes computer resources! Use the Telegram bot only for your own needs.

==TG_UseBotTimer=false;//TG_UseBotTimer –> Working with the bot from the phone

New notification type added to EAPADPRO panel settings:

==Notice Open TG – Send a notification to the Telegram channel if a trade is open;

==Notice Close TG – Send a notification to the Telegram channel if a trade is closed;

==Notice Modify TG – Send a notification to the Telegram channel if a trade is modified;

==Notice Error TG – Send a notification to the Telegram channel if an error is received;

==ScreenShot TG – Send a screenshot to the Telegram channel if a trade is opened or closed;

Attention! This is a beta version of working with the Telegram bot. We are working on improving and adding new features.

If you have any suggestions, please write in the “Comments” section.

Exp - Averager. Averaging trading positions. Opening deals against the trend and on the trend! - Image 80

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

Improvement: Code optimization to increase speed.

Improvement: The speed of the panel update in the strategy tester is now calculated automatically depending on the speed of quotes arrival.

This is done to increase the speed of the program in the strategy tester.

Information update is now equal to 1 real second.

Improvement: The speed of the program running EAPADPRO in the strategy tester.

Attention! Events in the strategy tester are processed only when a new tick is created.

If a new tick (minimum price movement) is not created, then the panel waits for the next tick.

With Visualization:

Version 48: 390sec (TickSniper 2024-2024)

Version 55: 244sec >>159% (TickSniper 2024-2024)

w/o Visualization:

Version 48: 363sec (TickSniper 2020-2024)

Version 55: 220sec >>165% (TickSniper 2020-2024)

with Visualization:

Version 48: 15750sec (TickSniper 2020-2024)

Version 55: 6220sec >>253% (TickSniper 2020-2024)

Improvement: The color of the button to close a position on the chart changes depending on the current profit of this position.

Improvement: Graphic improvements to optimize the Expert Advisor’s performance

Improvement: The account deposit Symbol is cent ¢, USD $, or eur €. All others are the first letter of the deposit currency name.

Improvement: When visual testing is completed, objects are not removed from the graph.

Improvement: When creating screenshots after opening/closing positions, the EAPAPDPRO Control Panel will be expanded to show full information.

This is done in order to study the trading history of Expert Advisor on the visualization graph after testing is completed.

Fixed: Managing positions and orders from the chart when the panel is minimized.

Fixed: Corrected the error of clearing the chart from unused order labels.

Fixed: AutoSize when switching charts.

Fixed: Drawing errors to Print when the Expert Advisor runs on “VPS MQL MetaQuotes”

Exp - Averager. Averaging trading positions. Opening deals against the trend and on the trend! - Image 81

 

Version 24.125 2024.01.25

MT5 – Fixed a bug when using Averaging and Additional Opening together.
Eapadpro v47

Version 23.913 2023.09.18

-EAPADPRO v44
-Last Build Compilation
-Frequent modification bug has been fixed.

Version 23.101 2023.01.08

-EAPADPRO v43 (Added new languages)
-Last Build Compilation

Version 22.201 2022.02.02

For the convenience of testing in the strategy tester, Magic number of positions opened from EAPADPRO = Magic number of averaging deals (Magic)

Version 22.110 2022.01.12

Fixed a bug with drawing objects for new versions of MT5 terminal

Version 21.629 2021.06.29

BreakEven for mt5
input string periods8=”========= BreakEven WithoutLOSS options ========================================”;//———————————————————————————————————
input bool MovingInWLUSE=false; //MovingInWLUSE –> Enable the Breakeven function
input int LevelWLoss=0; //LevelWLoss –> Distance from the OpenPrice to the profitable SL
input int LevelProfit=0; //LevelProfit –> Number of points gained by the position to use BE

Version 21.612 2021.06.12

EAPADPRO v40 update, according to the new rules for using the MQL5 Market

Version 20.955 2020.10.23

In closing positions when using the CloseAveragingAfterCloseMainDeals parameter, added Print output to the log.

Version 20.608 2020.06.08

Компиляция 2485

Version 19.981 2019.11.21

Added parameter for rounding prices when modifying stop loss and take profit:
RoundingDigits Number of decimal for modification.
-Without rounding
-To 1 digit
-To 2 digits

Version 19.802 2019.08.02

EAPADPRO update

Version 19.801 2019.08.01

Data output in the STRATEGY block to the LOG log when EAPADPRO is minimized and closed

Version 19.729 2019.08.01

EAPADPRO v31 Update

Added information labels to the chart:
When activated  ShowInfoAverager = to true, you will see the following information:
1. Average = Display the average (zero) line from positions of the same direction. If you move to a label, then there will be additional information about the calculation of the average line!
2. Next Average  = Display the next averaging position, which will be open in this direction. If you move to a label, then there will be additional information about the distance!
3. Next Additional = Display the next position of additional opening, which will be open in this direction.

Version 19.325 2019.03.25

– Update EAPADPRO v27;
– Added custom lot parameters in xx.xx, yy.yy, zz.zz format
You can specify:
LotDifferent – lots separated by comma for averaging;
ADDITIONALLotDifferent – lots separated by commas for additional opening;

Version 19.225 2019.02.25

Automatic detection of the minimum possible trailing stop if the parameter TrailingStop = 0

Version 19.203 2019.02.01

– Added new parameters:
DistanceDifferent / ADDITIONALDistanceDifferent: Distance of new positions of averaging (against the trend) or additional opening (to the trend), separated by commas!
You can specify distance values in the format xx, yy, zz, aa
Where:
xx – Distance in points for opening the first position of averaging / additional opening;
yy – distance in points for opening the second position of averaging / additional opening;
zz – Distance in points for opening the third position of averaging / additional opening;
aa – Distance in points for opening the fourth and other positions of averaging / additional opening;
You can set any number of distances.

Version 19.202 2019.01.31

ReBuildReBuild

Version 19.201 2019.01.31

🆕 – Added multi magic:
MagicNumber Magic number of positions (transactions) for tracking and accounting.
MagicNumber Magic numbers can be specified separated by commas:
🔘 0 – orders opened manually;
🔘 123,345,147 – all positions with MagicNumber numbers 123,345,147;
🔘 -1 – all MagicNumber, without exception.

🆕 – Added new variables:
🆕 CloseAveragingAfterCloseMainDeals – Close averaging positions (open against the trend) when the main positions are closed.
The function will close the averaging positions only when all the main positions (according to the current symbol and magic number) are closed!
⚠️ Attention: The new function works separately for the BUY and SELL directions!

🆕 CloseAdditionalAfterCloseMainDeals – Close additional open positions (opened with the trend) when the main positions were closed.
The function will close the position of the additional opening only when all the main positions (according to the current symbol and magic number) are closed!
⚠️ Attention: The new function works separately for the BUY and SELL directions!

Version 19.109 2019.01.09

ReloadReload

Version 19.107 2019.01.07

– Added text hints in the settings of the adviser;
– Update EAPADPRO v25;
– Additional languages added to the panel: Spanish, Portuguese (Brazil), German, Chinese, Japanese;
The translation was made using the GOOGLE Translator + MQL + Terminal site!
if you find an error in your language, please report it in messages. Thank!
– Increase the speed of the panel;

Version 18.830 2018.08.30

Averager Update EAPADPRO v 20

Version 18.731 2018.08.02

Added new distance parameters for averaging and additional opening:

DistanceAdditionalPoint / ADDITIONALDistanceAdditionalPoint – additional points to calculate the distance.
If DistanceAdditionalPoint = 5, then 5 points are added to each following distance.
DistanceMax / ADDITIONALDistanceMax – The maximum number of points in the distance.
If, when calculating the distance, the obtained value is higher than DistanceMax, then the Expert Advisor takes the value DistanceMax.

Version 18.7 2018.05.04

– Update for the information panel EAPADPRO v2.0;
– Updated the operation of averaging;
– Updated the commission calculation algorithm;
– Added separate stop loss/take profit;
TakeProfitALL – take profit to be placed at a distance of TakeProfitALL points from the average opening price of positions;
StopLossALL – stop loss to be placed at a distance of StopLossALL points from the average opening price of positions;
TakeProfit – take profit to be placed at a distance of TakeProfit points from the averaging position opening price;
StopLoss – stop loss to be placed at a distance of StopLoss points from the averaging position opening price;
ADDITIONALTakeProfit – take profit to be placed at a distance of ADDITIONALTakeProfit points from the opening price of additional position.
ADDITIONALStopLoss – stop loss to be placed at a distance of ADDITIONALStopLoss points from the opening price of additional position.

– To prevent constant modification of the total stop loss/take profit due to constant changes in the value of 1 point, the total stop loss/take profit does not take into account commission and swap.

– Renamed the variables:
MagikToAverage = MagicToAverage
LotsMartinAverager = LotsMartin
MaxLot = LotMax
MaxOrders = MaxOrdersOpen
TypeTradeBUYSELL = OrderToAverage

Version 17.977 2017.12.20

The EAPADPRO operation algorithm has been updated.

Version 17.525 2017.05.29

– Fixed the trailing stop error when there are positions in different directions.

Version 17.501 2017.05.03

Fixed an error with position averaging when trading multiple symbols with the same magic number simultaneously

Version 17.224 2017.03.01

Update of the “Averaging” block for the Brazilian market

Version 17.212 2017.02.20

What’s New:
Improved EAPADPRO

Added block for opening additional positions based on the trend:

– ADDITIONALDistance – the distance for opening additional grid positions based on the trend.
– ADDITIONALDistanceMartin – the distance multiplier for opening additional positions based on the trend.
– ADDITIONALLotsMartin – increase the lot size of the grid positions for opening additional positions based on the trend
– ADDITIONALLotAdditional – additional lot for the additional position for opening additional positions based on the trend
– ADDITIONALLotMax = maximum lot to use when opening the averaging positions. 0 – disabled
– ADDITIONALStopLoss – Stop loss of the opening additional positions based on the trend

Version 17.121 2017.01.27

Fixed working with long tickets

– Added the EAPADPRO information panel
Details on the panel in our blog:
or https://www.mql5.com/ru/blogs/post/687140

The following data has been moved to the Strategy Info block:
OWN Signal = Name of the signal + Timeframe of the signal + Reverse
Current Signal = Current signal from the main indicator
Filter 1/2 – Name of the filter 1/2
Current Filter – Current signal from filters 1/2
BUY Average/Lot – Next averaging in points for BUY / Next averaging lot
SELL Average/Lot – Next averaging in points for SELL / Next averaging lot
Buy Additional/Lot – Next additional opening in points for BUY / Next lot for additional opening
Sell Additional/Lot – Next additional opening in points for SELL / Next lot for additional opening
Average Price Buy – Average price for BUY deals
Price Sell – Average price for SELL deals

Version 17.110 2017.01.13

-Fixed error with the DistanceMartin

Version 16.995 2017.01.09

Added the AllTradeTrail parameter – trailing stop works on a trade that is to be averaged as well.

Version 16.957 2016.11.11

Code optimized to reduce CPU load.

Version 16.955 2016.10.31

Fixed stop loss and take profit modification error.

Version 16.949 2016.10.26

Fixed lot size error

Version 16.936 2016.10.11

Added support for EA operation on hedging accounts. The EA can work on Hedging and Netting accounts!

Version 16.330 2016.04.04

Fixed the error in the MaxLot parameter

Version 16.307 2016.03.11

Changed lot calculation when using martingale.
Increased the last lot of an open position at the last deal.

Version 16.226 2016.03.01

The updated version for the stock market:
– Fixed the error in the determination of the last lot, if the position was closed by several requests.
– Added the selection of the order filling type – TypeFilling

Version 14.204 2014.02.05

Removed the description of input parameters from the code.

Versão24.918

This post is also available in: English Українська Portuguese Español Deutsch Chinese Русский Français Italiano Türkçe 日本語 한국어


     

    Aviso de risco:


    O desempenho comercial passado não garante resultados futuros.

    A negociação de divisas com margem comporta um elevado grau de risco e pode não ser adequada para todos os investidores.

    Tem em atenção que a utilização de robôs de negociação envolve um risco substancial e que podes perder mais do que o teu investimento inicial.

    Procede com cautela, avalia cuidadosamente a tua situação financeira e considera a possibilidade de procurar aconselhamento junto de um profissional qualificado.

    Isenção de responsabilidade

    Este site utiliza cookies para melhorar sua experiência. Ao usar este site, você concorda com nossa Política de Proteção de Dados e Aviso Legal.
    Leia mais