Version 24.81
2024.08.14
Global update of the trading algorithm:
- The trading robot code has been reworked and optimized for new terminal updates.
Removed settings due to inefficiency:
- Settings for virtual levels.
- Trailing Stop settings based on indicators.
- Setting up a trade stop if there is a specified number of profitable positions.
New settings added:
- Minimum lot for trend trading - Minimum lot for trading, in cases where Initial lots is greater than 0.10, and during calculations the new trading lot turns out to be less than Minimum lot for trend trading, then the value from this setting is taken for trading.
- Distance calculation method - Methods for calculating distance
- Points - Distance is calculated in points, points are specified in the - Distance value setting
- Percent - The distance is calculated as a percentage of price growth/decrease, the percentages are indicated in the - Distance value setting
- Bolinger line difference - The distance is calculated as the difference between the lines of the Bolinger indicator, the indicator period is specified in the - Distance value setting
- Counter positions - The distance is calculated depending on the number of positions, the step is multiplied by the number of positions according to the type of trading operations. The step is indicated in the setting - Distance value
- Awerage bars - The distance is calculated as the average value of a given number of bars, the number is specified in the - Distance value setting
- One bar one trade - The setting specifies trading based on the principle of one trade per bar. This does not take into account the opening time of a new bar.
- Trailing % Stop Revers trend - The setting specifies the percentage of StopLoss movement to meet the price. (Recommended range 10-200)
Version 24.41
2024.04.08
Fixing division by zero error
Version 24.40
2024.04.05
Fixed a situation where there was one unclosed order left
Added a button that stops the trading robot from working as is
Added information about drawdown, calculated relative to the current balance
Version 23.93
2023.09.30
Minor fixes and improvements.
Version 23.92
2023.09.29
Corrected:
In some cases, the advisor left positions in profit and stopped trading.
In some cases, incorrect calculation of lots occurred.
In some cases, the advisor started trading in the opposite direction by making incorrect mathematical calculations.
Added:
Dynamic trailing along the Donchian channel;
Dynamic trailing using the Bolinger channel;
Displaying profit for a position without loss. The profit that will be received if the position is closed without a loss is considered.
Reworked:
The virtual trading mode has been completely rewritten. Now the expert does not use global variables; all calculations are done after trading.
Optimized:
Massive code optimizations.
Speeding up the trading algorithm in the strategy tester.
Version 23.72
2023.07.21
The name of the financial instrument has been added to the information panel
Fixed display of settings in the settings info panel
Fixed accidental closing of positions when launching the EA in virtual mode
Version 23.71
2023.07.13
Important update
Fixed issue with MagicNumber
Version 23.70
2023.07.13
The default settings are for brokers with five digits.
In this update, a major optimization of the main trading algorithms has been carried out.
Improved and optimized algorithm for opening positions.
Improved and optimized trailing stop algorithm.
Improved performance for the strategy tester by disabling all graphical objects.
A lot of time was devoted to optimization and operation of the EA in virtual and real modes.
Improved operation of the trading robot on metals.
To get the most accurate results, I recommend testing the adviser on demo accounts.
Version 23.64
2023.06.16
Исправление работы общего Take Profit
К сожалению в прошлое обновление закралась небольшая ошибка.
Version 23.63
2023.06.16
Changed:
Default settings - the spread parameter is set to 0, previously many traders ignored the setting and the trading robot did not work on metals.
Fixed zero divide error appearing in some rare cases.
Fixed period selection setting for a new bar. Previously, in MT 4 it was possible to select a non-existent period.
Changed and redesigned set settings files
Version 23.62
2023.06.14
Исправления:
Закрытие позиций при отрицательном профите - в предыдущих версиях настройка не работала.
Version 23.61
2023.06.12
The trading robot is completely rewritten:
Before updating, I recommend saving the previous version in a separate directory
The trading strategy has been modified and improved - in previous versions, the trading robot closed all positions en masse, in the new version, the trading robot analyzes the size of the future profit and closes positions of a certain type. The remaining positions are either transferred to no loss or closed by Stop Loss. Closing by Stop Loss and closing a group of positions in total gives a profit.
Improved position opening - in previous versions it could crash due to requotes.
Added trading mode with real levels - in previous versions there was only a virtual mode with a real stop loss. In newer versions, non-real real levels have been added for virtual mode. Closing and modification of positions occurs much earlier than the price reaches real levels. In the event of an emergency situation, real levels will be additional protection. The second mode with real levels of Take Profit and Stop Loss.
Added a restriction on the work of the Expert Advisor on the spread, if the spread is greater than specified in the settings, the trading robot does nothing.
Added protection against all sorts of non-standard behavior of a trader - checking for the type of trading account. (Hedge accounts only) Check to see if Auto trading is enabled.
The window for displaying settings on a chart has been redesigned, now it is more compact.
The window for displaying profit and loss information has been redesigned - now the window does not work in the strategy tester, so as not to create an additional load on the trading robot.
Improved lot calculation - in previous versions for brokers with lots of 0.0001 type there could be problems.
Improved the choice of trading on a new bar - in previous versions, the trading robot took into account the new bar of the trading period to which it was originally attached, in the new version, you can specify the period of the new bar and when changing the period on the chart, the trading robot follows the trader's settings.
The calculation of compensation for losses from swaps and commissions has been significantly improved - - in previous versions, the compensation did not cover all expense write-offs.
Significantly improved calculation of the profit-taking parameter when closing a group of positions
Significantly improved calculation without loss of positions
Significantly improved dynamic trailing stop calculation
Added experimental features:
Removal of the Expert Advisor from the chart in case of complete closing of all positions by total profit or total loss. Only for trading in real mode levels.
Delay between sending trade orders in case of frequent requotes (Requote break)
Other improvements and code optimizations of the User Posts Expert...
Version 23.30
2023.03.23
Correction:
Example: earlier, if the last lot was 2 and the lot decrease along the trend was 3, then a position was opened with the minimum possible lot. Since 2-3=-1.
Now the position will be opened by the lot of the last trend position, lot 2
Version 23.12
2023.01.24
Minor fixes and optimization.
Version 23.11
2023.01.23
Fixed:
Displaying the period in the tester report.
EA work with lots less than 0.01
Added:
Checking for account type hedge and netting. The Expert Advisor cannot work on Netting accounts.
Displaying the amount of closed profit when closing several positions at the same time.
Version 22.122
2022.12.24
Исправления и оптимизация..
Version 22.121
2022.12.20
Corrected:
Show comments.
Unlocked settings for optimization
Version 22.120
2022.12.20
The advisor has been completely rewritten.
The Expert Advisor code has been heavily optimized, massive performance and speed improvements have been made.
Added the ability to see the adviser settings if you hover the mouse over the name of the adviser.
Added reports when testing an adviser, the report helps to determine the quality of the settings specified during testing.
Version 22.102
2022.10.17
Small improvements
Version 22.101
2022.10.17
- Fixed ProfitPlus parameter, previously it could be set with floating point.
- Fixed "Error adding symbol: 4059" error for MetaTrader 4
- The Decrease Lots parameter can now also work for increasing the lot. To do this, specify a value in the format -0.01
- Added setting Trade stop profit positions (0 - Dont work) - Allows you to stop opening positions if there is a specified number of positions with a stop loss at no loss and there are no other positions
Example: Trade stop profit positions (0 - Dont work) = 3, after there are 3 positions at no loss and no more positions, the EA will no longer open positions.
- Now it is possible to format comments to positions using masks, for a comment it is possible to specify no more than three masks, separated by a space, at a time
%eaname% - Displays the advisor's name
%magic% - Displays the magic number of the adviser
%balance% - Displays the account balance at the time of opening a position
%equity% - Displays the equity of the account at the time of opening a position
%totpos% - Displays the number of positions by type at the time positions were opened
%typpos% - Displays the position type
Example: %eaname% %typpos% %magic%
Result: VR Lollipop Buy mn-1
Example: %eaname% %balance% %equity%
Result: VR Lollipop bl1023.23 eq1563.36
- Added settings for stopping trading by profit and loss
Close all positions at rofit (50) (0 - Dont work) - Profit amount to close all positions
Close all positions at loss (-50) (0 - Dont work) - Amount of loss to close all positions
Expert Advisor actions after closing all positions - The type of adviser operation when all positions are closed by profit or loss.
Full Trading stop - Full stop of the adviser without resuming work
Closing all positions and continuing trading - Resuming the work of the adviser after the complete closure of all positions
Excellent EA. I have been using it for more than a year. Once you get the settings right with proper money management, you can't lose. I trade Gold with it and constantly make money.