VR Smart Grid MT5
VR Smart Grid is a multifunctional Expert Advisor for MetaTrader 4 and MetaTrader 5 terminals, which allows trading with order networks. The algorithm of the adviser allows you to trade with the trend and against the trend. Trading according to the trend is constructed in such a way that each new order is opened only if the previous order has Stop Loss in the profit zone. Trade against the trend is conducted in order to close losing positions with a profit. The Expert Advisor has a large number of settings that allow you to conduct a conservative, aggressive or scalping trading of financial instruments.
Advantages of VR Smart Grid Advisor
- Easy to set up
- Suitable for beginners and professionals
- Can work with any financial instruments. (Forex, Crypto, CFD, Futures, Metals)
- Can be optimized in the strategy tester
- It can trade on any time periods.
- It has several trading modes.
- It has several averaging modes, including smart averaging.
- It has several types of trailing stop
- Two versions of Expert Advisor for MetaTrader 4 and MetaTrader 5 have been developed.
The algorithm of the advisor depends on the selected settings. The standard algorithm of the advisor - the adviser is waiting for a signal from the CCI indicator. If the indicator is in the oversold zone, the adviser opens a buy position, if the indicator is in the overbought zone, the adviser opens a sell position. If the price rises, the adviser will be added to the position according to the trend with the lot specified in the settings, provided that the last order has a stop loss in the profitable zone, and against the trend, the adviser opens orders according to the type of lot calculation selected in the settings, in order to close the network of orders profit. The network of orders against the trend is closed by one of the averaging options. All orders, the lowest and the highest orders, the last two orders can participate in averaging, and “Smart Averaging” can be used, which selects the most optimal variant from other averages.
It is important to note how orders are closed. The advisor algorithm allows you to close a network of orders with the minimum profit specified in the program settings. Also, the most risky orders can be closed with previously accumulated profits. When trailing a stop with orders against a trend, the situation can often occur when a trailing works on large orders with a large lot, having worn a large order several times, the adviser accumulates profit and, if this profit is greater than the profit specified in the settings, the adviser closes the far-off distant order.
- Conduct testing in conditions as close to real. Use demo accounts for tests.
- Test at least 2-4 business weeks
- For quality and reliable testing, use VPS servers whenever possible.
- The program settings allow you to run several copies of the adviser in one terminal, use this feature
- Do not allow yourself big risks
- Any. set files check on tests (. set files do not take into account the spread, chart period, broker quotes, commissions, etc.)
- Testing the adviser in the strategy tester will not give you guarantees and reliable good results.
- Do not leave the advisor on 24/7, always monitor the work of the adviser and, if necessary, adjust the setting
All modifications and updates are made at the discretion of the author.
- VR Smart Grid MT4 - https://www.mql5.com/ru/market/product/28140
- VR Smart Grid Lite MT4 - /ru/code/20223 open source
Revised calculation of compensation for swap and Commission
Optimized and accelerated algorithm of the program
Fixed-Trading at the intersection of moving averages
Working with the averaging type Maximum and minimum orders with partial closure, fixed a situation where a large network of orders accumulated.
Closing positions in case of partial averaging
Improved closing when using maximum + minimum averaging
Connecting custom indicators
Compensation for the swap and commission
The settings are applied to all orders signal network
On order the entire network open to signals from strategies
Off the signals open only the first starting order
Added support for PTP indicator
Comments on orders.
Close all orders when the specified profit or loss
Conclusion comments on the positions and properties of warrants
Fixes when dealing with the general take profit
Fixed and optimized to work with a trailing stop on indicators Donchian
Fixed take profit if there was one order.
Calculation of lots
Fixed calculation of the lot, before increasing the bid could stop at 0, 28.
1 - Reworked calculation of the lot, fixed lot and the lot on the percentage. Previously, some brokers might have problems.
2 - The types of averaging, averaging two types have been added. This partial closure of the maximum orders. To understand how they work, run the program in the strategy tester.
3 - restored and brought into operation manual trading mode!
4 - Changed the function with the balance, you specify the allowable amount now for the loss or the amount of profit at which the adviser has yet to close and stop its work
5 - Added calculation of compensation for the swaps, the Commission is now the sum of losses from the commissions and swaps accounted advisor.
6 - Improved trailing stop earlier, some brokers have been identified problems with trailing
7 - Improved built-in trading strategies, signals are adjusted.
8 - Added the ability to manually change the overall take profit, adjustment is included in the EA, and draws a line that can be moved.
9 - Improved work in manual mode with virtual levels. Earlier levels could be shifted.
10 Added virtual trade regime, a separate unique mode, this mode uses a stop loss and take profit.
11 Added to import signals or any other indicator systems. Advisor can read signals from the global variables with SignalBuy names, where 1 is to buy, and 0 to do nothing and SignalSell where -1 is to sell, and 0 to do nothing.
Much has been done to optimize the code, it is considered a large number of features of different brokers. . . .
Optimized lot calculation for sell orders
Improved behavior of the trading strategy on the new bar
Optimized trailing stop code
Improved and optimized the work of the profit distribution function on the balance sheet
Fixed grammatical errors.
Improved behavior on the main trading strategy
Optimized code for strategy tester
Several tests were conducted on real and demo accounts.
Optimized the work of additional embedded trading strategies
The program code is optimized and made universally for different brokers.
Updated instructions for settings in Russian and English (read blog)
Much work has been done to optimize the algorithm.
Much preparatory work has been done for the following improvements.
Test the new version on a demo account.