VR Smart Grid - smart networks in forex trading

 

VR Smart Grid 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.

Advisor Trading Report

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.

Recommendations:

  • 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

Expert Advisor Test

Тестирование на myfxbook Real account trading report Drawdown final report

The program is distributed on an “as is” basis.
All modifications and updates are made at the discretion of the author.


How to configure the VR Smart Grid Advisor: comprehensive manual

Each setting has a big impact on the advisor's (EA) operation and a small parameter change can greatly change the strategy of the EA.

Symbology:

  • [opt] - It makes sense to optimize the setting.
  • [opt] - There is no point in optimizing the setting.
  • [4/5] - The setting depends on the number of decimals in the trading account.
  • [4/5]The setting does not depend on the number of decimals in the trading account.

< - - - - Lot calculation Settings - - - >

  • [opt][4/5] Type of lot calculation (Fixed or By interest) - this setting allows user to select the type of calculation of starting lots. This can be a Fixed lot like 0.01 or lot by interest.
    • Fixed Lot - This is a standard lot that will be used in the starting-first orders in the network. With a $100,000 deposit and Fixed lot set as 0.01, the first orders will be opened with a lot of 0.01.
    • Lot by interest % - Is the method of calculation of the starting-of the first order. The lot is calculated as a percentage of free funds. With a $100,000 deposit and lot set as 1%, orders will be calculated based on the amount of 100 000 /100% * 1 = $ 1000. The first order in the network will be opened based on what lot can be obtained from $1000. Lot by interest can be set with a fractional part, for example 3.47. The percent sign is not specified!
  • [opt][4/5] Lot value - This setting specifies the lot value if a Fixed lot is selected or a percentage value if a Lot by interest% is selected.

Example of calculating the percentage lot in VR Smart Grid Expert Advisor

  • [opt][4/5] Lot calculation type (order pricing) - the setting to specify the type of lots calculation for orders opening against the trend.
    • Start lot – for all orders, the lot specified in the settings is used without changing the example of lot calculation (1,1,1,1,1,1,1,1,1,1,1,1)
    • Martingale lot – every new order is increased in two of lot sample (1,2,4,8,16,32,64,128)
    • Fibo lot - every new order is calculated according to the Fibonacci principle and is equal to the sum of the lots of the last two orders, an example of the calculation of the lot (1,1,2,3,5,8,13,21,34)
    • Sum start lot – every new order is opened with a lot increased by the value of the starting lot, example of order calculation (1,2,3,4,5,6,7,8,9)
    • Up lot + Dw lot – each new order is opened with the sum of lots of orders, the most unprofitable and the most recent, example of lot calculation (3+,4,7,10,13,16,19)
  • [opt][4/5] Maximum allowed buy lot - This setting limits the opening of buy orders if a new order must be opened against a trend with a lot greater than specified in the setting. For orders to be opened in the direction of the trend, this setting does not work. The EA will try to open orders on the trend to buy a lot for the first orders only if the previous order on the trend has a stop loss in the profit zone.
  • [opt][4/5Maximum allowed sell lot - This setting limits the opening of sell orders if a new order must be opened against a trend with a lot greater than specified in the setting. For orders to be opened in the direction of the trend, this setting does not work. The EA will try to open orders on the trend to sell the lot for the first orders only if the previous order on the trend has stop loss in the profit zone.

It is important to note that with simultaneous trading for buy and sell settings, the Maximum allowed buy lot]and the Maximum allowed sell lot can limit trading against the trend, while trading will continue in the direction of the trend.

Limit when trading against the trend with lots

Please note that trading against the trend stopped at 0.08 lot and trading on the trend with sell orders continued.

It is better not to use lot calculation settings in the strategy optimizer, as any optimization runs will depend heavily on the size of the Deposit and lots that were at the start of the optimization run.

< - - - - Averaging order settings --- >

Averaging is the mathematical calculation of the price at which all market orders can be closed with zero profit. This calculation helps to determine the zero point of profit and reduce the risks of trading against the trend.

  • [opt][4/5] Averaging order type - the setting allows you to select one of several options for averaging orders opened against the current trend.
    • All orders - This setting specifies the trading strategy to average all orders by type. If the current market price is outside the prices of the entire trading network of orders and orders in the market in the amount of two or more, the EA will automatically put all orders in the market Take Profit at which all orders will be closed with a small profit specified in the settings: Minimal profit upon the closure of series of orders in points
    • Two orders Maximum lot and Minimum lot - this setting specifies the trading strategy to average the highest order and the lowest order by type. With this approach, the strategy seeks to close the order with the smallest lot with the order with the largest lot. So there is a gradual decrease in the network of orders against the trend with the fixation of a small profit specified in the setting: Minimal profit upon the closure of series of orders in points. For example, the network has lots 0.01 0.02 0.03 0.05. The strategy will average orders with lots of 0.01 and 0.05.
    • Two orders Maximum lot and prev Maximum lot - this setting indicates the trading strategy to average the last two orders by type against the trend. With this approach, the strategy seeks to average and close the last two orders with the largest lots and fixing a small profit specified in the setting: Minimal profit upon the closure of series of orders in points. For example, the network has lots 0.01 0.02 0.03 0.05. The strategy will average orders with lots of 0,03 and 0.05
    • Smart averaging - this setting tells the trading strategy to analyze all types of averaging and choose the most appropriate method for the current situation. The strategy selects the averaging type whose Take Profit will be located as close as possible to the current price. Thus, the trading strategy increases the probability of closing the network of orders against the trend. As in other types of averaging, take profit is taken into account: Minimal profit upon the closure of series of orders in points.
    • Do not use averaging - This setting completely disables averaging and mathematical calculations. This method of trading can be effective when trailing stop is used in the order network. The EA builds two networks at the same time: with the trend and against the trend. Each of the networks makes a profit thanks to the trailing stop. If the price falls then the trailing stop works for sell orders in case of reversal the trailing stop will work for buy orders. If the buy orders have lots larger than the starting ones, the profit from them covers the loss from the sell orders.

It is important to note that the proper use of averaging allows a profit to get out of deep drawdowns. Averaging in the right hands is a powerful tool, but without understanding the principles of averaging, the trader is in a lot of risk of deposit loss. 

< - - - - Trade type settings --- >

  • [opt][4/5] - Trade in the direction of the current trend? - this setting allows the trading strategy to open orders in the direction of the trend. To reduce the load on the Deposit, it is possible to allow trend trading, while slightly reducing the profitability of the trading strategy.
Trend Trading Example
  • [opt][4/5] Trade type - This setting allows/disables trading by order types.
    • Use all orders - this setting allows you to trade buy and sell orders.
    • Trade with only buy orders - This setting indicates the trading strategy to trade buy orders only. Sell orders will not be opened. If you have previously opened sell orders, the EA will continue to open sell orders until all sell orders are closed.
    • Trade with only sell orders - this setting specifies the trading strategy to trade only sell orders. Buy orders will not be opened. If you have previously opened buy orders, the EA will continue to open buy orders until all buy orders are closed.
    • Gradually stop buying - This setting will smoothly stop the trade for the purchase. The stop does not occur immediately, the EA smoothly closes and opens orders as long as there are buy orders in the terminal. This method is suitable for situations when you need to stop trading against the trend.
    • Gradually stop selling - this setting will smoothly stop trading on sale. The stop does not occur immediately, the EA smoothly closes and opens orders as long as there are sell orders in the terminal. This method is suitable for situations when you need to stop trading against the trend.
    • Gradually stop the advisor - this setting will smoothly stop trading with the EA. Stop does not occur immediately, the EA smoothly closes and opens orders as long as there are orders in the terminal. A gradual stop can be used before important news releases.
  • [opt][4/5] - Trade in the new bar? - This setting specifies the trading strategy to open orders only if a new bar has arrived. It is important to note that the EA has a small time offset of 5 seconds. This is done because many expert advisors work on a new bar and when a new bar appears, thousands of requests are sent to the server. As a result, there are often failures and to avoid this, VR Smart Grid uses an offset of 5 seconds.

The figure shows that the opening occurred 5 seconds after the onset of a new bar
Orders with a delay of 7 seconds were opened because after the onset of a new bar there were no ticks
and the first tick came after 7 seconds, which may indicate a strong load of the trade server.
Example of a new bar

  • [opt][4/5] Maximum amount of buy orders - this setting limits the opening of buy orders against the trend.
  • [opt][4/5] Maximum amount of sell orders - This setting limits the opening of sell orders against the trend.

The restriction of orders helps to stop the construction of the network against the trend, while the restriction does not apply to orders that are opened by the trend.

< - - - - Step between orders settings --- >

  • [opt][4/5] Step between the order points - this setting sets the distance between orders, each subsequent order will be opened no less than after the number of points specified in the setting. It is important to note that the opening of orders is influenced by the setup of trading on a new bar. If trading on a new bar is enabled, the strategy counts points and waits for a new bar to open, if a new bar appears and the distance between the current price and the opening price of the previous order is greater than or equal to the setting (Step between the order points), an order will be opened. There may be a situation when trading on a new bar is enabled and the current price has passed more points than specified in the setting and then returned, with the arrival of a new bar, the order will not be opened, since the distance condition is not met. If the new bar trading setting is disabled, the EA will open orders after the specified number of points.
  • [opt][4/5] Series of orders - This setting allows you to set a trading strategy to increase the distance between the opened orders. The principle of operation depends on the number set in the setting. For example, if the setting is set to 3, it means that when trading against the trend in the presence of three open orders, the following orders will have a distance between each other three times more. The distance between orders will increase after opening three new orders.

Automatically increase the distance between orders

< - - - - Balance management settings --- >

  • [opt][4/5] Deposit allocated for the advisor - this setting allows the trader to allocate the deposit amount for trading by the EA. In case of a large drawdown, the EA can lose only the amount that the trader has allocated for the EA. Thus, having a deposit of $10,000 and allocating $1000 to the advisor the trader can lose no more than 1000 dollars due to advisor. This setting will be useful for testing and finding the most profitable parameters. A trader can run an unlimited number of expert advisors with different parameters on different financial instruments in one terminal and each expert advisor can allocate its Deposit. If testing or trading on the account led to the loss of the allocated deposit, it is necessary to change the setting of the expert advisor's MagicNumber.

Important!!! Deposit allocated for the advisor setting works only if the Distribution of the profit between the Advisor's deposit and protected deposit setting is activated.

  • [opt][4/5] Distribution of the profit between the Advisor's deposit and protected deposit - this setting allows the trading system to distribute the profits on two deposits. The EA can distribute the profit between its deposit and the total deposit of the account. This allows you to increase the deposit with which the EA works and increase the total deposit at the same time. Thus, the trader increases the Deposit for the EA and increases the total Deposit, which in case of drawdown will not be lost.

An example of the distribution function of the Deposit:  The trader's deposit is $10,000, he has allocated $1,000 to the EA. Trader set the following option: EA deposit 10%/protected deposit 90%. The EA trades and records profit of $2,000. The result of the distribution will be as follows: 10% of 2000 = $ 200 to the advisor's deposit, thus the deposit becomes 1200,90% of 2000 = $ 1800 to the protected deposit. which increases to $10800. Total trader's deposit has a balance of $12,000.

Example of distribution on the profit chart

  • [opt][4/5] Minimal profit upon the closure of series of orders in points - this setting is calculated in points and determines a profit when closing a series of orders against the trend. The mathematical formula calculates from all open orders the price at which all orders will be closed to zero. Since zero is not interesting the setting adds points profit. If the entire network is to be closed at zero at the price of 1,23456, then when you set up 70 points, the network will be closed with a profit of 70 points. Thus, the EA makes a small profit when trading against the trend.
  • [opt][4/5] Minimal profit for unprofitable order closure in the deposit currency - this setting is set in the currency of the deposit and its purpose is to close the oldest order at the expense of accumulated profit. As a result of trading, the EA creates a network against the trend and, depending on the averaging method and the use of Trailing stop, the fixed profit is accumulated on the balance sheet. The EA counts loss of the current old order and checks the result, if the amount of profit and loss will be greater than or equal to the value specified in the settings, the EA will close the oldest unprofitable order. Thus, the EA strives to close old orders as quickly and profitably as possible and reduce the overall position in the market. This method is designed for situations when there are large orders in the network, as a result of the trailing stop operation, the expert advisor with large orders quickly accumulates profit due to which it closes loss-making orders, while the amount of profit and loss must be greater than specified in the program settings.

Example of closing with accumulated profit

< - - - - Trailing stop settings - - - >

  • [opt][4/5] Trailing stop type - this setting allows you to select the trailing stop type. The expert advisor has not only a classic trailing stop implemented, but several ways of trailing stop loss behind the price.
    • Do not use trailing stop - this setting disables the trailing stop function.
    • Classic trailing stop - sets up classic trailing stop. Stop loss follows the price at a given distance.
    • Trailing stop by Donchian channel - the setting enables trailing stop on the Donchian channel. This type of trailing stop works for a long time, but gives a profit more than the classic trailing stop. The idea of this trailing is to move the stop loss at a given distance, taking into account the maximum and minimum prices for a specified period of time.  Separate indicator for Donchian
    • Trailing by moving average - the setting includes trailing stop on the moving average indicator. The idea of this trailing is to move the trailing stop on the moving average and with a given minimum number of points.
  • [opt][4/5] Trailing stop distance - the setting sets the minimum value of points for trailing stop.
  • [opt][4/5] Donchian indicator or moving average period for trailing stop - the setting sets the period of indicators, if trailing stop is selected on the indicators.

< - - - - Trading time stop settings --- >

  • [opt][4/5]Stop trading stop at - the setting specifies the hour at which the EA must stop trading.
  • [opt][4/5]Renew the trading at - the setting activates the trading advisor after a stop at the previous setting.

< - - - - Trading strategy signals settings - - - >

  • [opt][4/5] Trading strategy signal type - the setting allows you to select the indicator signal for the first order in the network. The EA has several built-in signal algorithms.
    • Do not use indicator signals - the setting disables the signal strategy completely.
    • Break of the Donchian channel - the setting activates the strategy of trading on the break of the Donchian channel.
    • Crossing the moving average - the setting activates the strategy based on the crossing of moving averages.
  • [opt][4/5] Donchian indicator period of fast moving average - the setting allows you to specify the period of the signal indicator depending on which signal strategy is selected in the previous setting.
  • [opt][4/5] Period of slow moving average - the setting allows you to specify the period for the slow moving average for the signal strategy working at the intersection of moving averages.

< - - - - Miscellaneous settings --- >

  • [opt][4/5] Show balance information on a chart - the setting allows you to display information about the profit and balance.

Balance and profit on the chart

  • [opt][4/5Margin Alert - the setting allows EA to warn the trader about the low margin.
  • [opt][4/5Order comment - the setting allows you to set your comment to orders.
  • [opt][4/5Magic Number - the setting allows the EA to distinguish its orders from orders of other expert advisors or trader's manual orders.

Important!!! It is not recommended to set up the same value for multiple copies of expert advisors working in the terminal

  • [opt][4/5] Slippage - the setting allows you to set up the range of slippage points. If the request sent to the server is processed for a long time or the price has changed, the order will be accepted in the slippage range.

Developer's Recommendations

Dear users of the program! Do not believe anyone who would say you that this advisor is "The Holy Grail" or a machine to print money. There are many people who successfully use this EA and there are those who could not succeed. This advisor is an assistant just as your car. With the adviser, same as with the car, if you do not know how to drive you will get into an accident. I want to give some important recommendations on how to work with the program.

  1. Prepare to deal with the algorithm of the program thoroughly.
  2. Learn all the settings, this manual will help you.
  3. Optimize the EA, use the built-in optimizer in MetaTrader to find approximate settings.
  4. Check and explore the settings on demo or training accounts only.
  5. Only after you successfully trade with the EA on demo or training accounts for more than 2-4 working weeks, you can move to a real account.
  6. When testing on demo or training accounts, consider the deposit and use the value that you are ready to use in real conditions.
  7. Perform optimization and testing on the broker and the period on which you plan to trade in real conditions.
  8. Use only your own settings files, as other settings files do not take into account your spreads, fees, brokers, periods and other things.
  9. Use VPS/VDS server to ensure round-the-clock operation of the EA.
  10. Believe in your success and you will succeed!!!

Useful reading material:
How to optimize the EA.
How to test the EA
Fozzy - affordable VPS/VDS hosting

Before running on a Real account, we strongly recommend testing on a Demo account!


Version 19.071 2019.07.22

  • Optimized lot calculation for interest
  • 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.

Version 19.051 2019.05.14

In this update, the profit distribution function has been optimized.

Previously, the function could not work in the strategy tester and block the work of the adviser in the strategy tester.

The function is optimized and now works correctly.

Optimized the work in cases where there is only one order with take profit.

Previously, such a warrant could give a small loss.

The function is optimized, now in case if there is only one order with take profit, then take profit will be reset, due to this profitability has become slightly higher.


Version 19.30 2019.03.18
Improved: 
The trading strategy is installed from the advisor version 18. 120 
The code is fully optimized and accelerated. 
Improved work with the balance of the adviser and the distribution of profits. 
Balance information. 

Added by: 
Added low margin margin setting (Margin Alert) 
Advisor Balance - added a warning about the negative balance of the adviser.


Version 18.120 2018.12.03

Added:
Settings:

  • Maximal Orders Buy - The maximum number of orders to buy ( 0 - off ) 
  • Maximal Orders Sell - Maximum number of sell orders ( 0 - off ) 
  • Maximal Lots Buy - The maximum volume of buy orders ( 0 - off ) 
  • Maximal Lots Sell - Maximum volume of sell order ( 0 - off )

Version 18.81 - 2018.08.31
Optimized: 

  • In some cases, the EA did not correctly calculate the profit and closed one order with a loss.


Version 18.42 - 2018.04.24
Important update! 

  • Fixed the issue with Magic numbers. 
  • Earlier, changing the magic number during in the process of operation could lead to opening numerous orders. 
  • The issue has been resolved!


Version 18.40 - 2018.04.02
Added:

  • Description of the program in the dialog box.
  • Added information about the program to a special window. 
Improved: 
  • Speed of operation with a large number of orders. 
  • Minor improvements.

Archive contains files:

  • VR-Smart-Grid-RU.ex4 - English version of the program for MetaTrader 4
  • VR-Smart-Grid-EN.ex4 - Russian version of the program for MetaTrader 4
  • VR-Smart-Grid-RU.ex5 - English version of the program for MetaTrader 5
  • VR-Smart-Grid-EN.ex5 - Russian version of the program for MetaTrader 5

VR Smart Grid RU.pdf - PDF instruction in Russian
VR Smart Grid EN.pdf - PDF instruction in English

StrategyTester.htm - Test report for the Expert Advisor

OptimizationReport.htm - Advisor Optimization Report

Optimization VR Smart Grid.xlsx - The table with the results of optimizing the advisor for the EURUSD pair contains several hundred parameters and sets of settings. Used instead *.set of files.

forum discussion: Click here

Comments

Loading comments...

How to buy / rent a program ?

You can buy or rent the program directly in the MetaTrader terminal. To do this, go to the market tab and in the search enter VR Smart Grid

Buy a product in the market

How to get the indicator for free and without restrictions ?

Get a free program can be an affiliate program. For this you need to trade through our partner brokers.

Details on the link

Trading with ours partners You can use all the programs for free.


These programs may be of interest to you

VR Sync Chart - synchronization of graphic objects

Convenient and simple synchronization of graphical objects in the MetaTrader terminal, complete synchronization of trends,...

Simple, effective strategy VR System
Simple, effective strategy VR System

The VR System strategy has proven itself to be simple, reliable and efficient...

New Scripts

VR Watch list and Linker - Tie chart windows to a sheet with financial instruments.

Adviser for linking (Linker) open charts in MetaTrader terminal. The program has its own Market Watch which changes the...


*— required fields
Log in via a social network