RoboForex – Professional services on Forex market

VR Smart Grid — адаптивный сеточный торговый робот для MetaTrader 4 и MetaTrader 5

VR Smart Grid — адаптивный сеточный торговый робот для MetaTrader 4 и MetaTrader 5

VR Smart Grid — адаптивный сеточный торговый робот для MetaTrader 4 и MetaTrader 5

Icon version of the program Version: 26.100

Icon program update date Updated: 30.09.2026

Icon date of adding the program Added: 27.03.2018

Program license icon License: Paid-Free

The icon of the test period of the program Test period: 30 days

Tester Icon/Demo programs Tester / Demo: Free

26 purchases in 60 days

Free Demo
Buy ?
Purchase is an opportunity to obtain the product without restrictions on time, number of trading accounts, or brokers. You pay for the MetaTrader 5 version, and the MetaTrader 4 version (if available) is provided free of charge. Payment is made through the Trading-Go website in accordance with the user agreement (offer). To pay for the selected product, log in to your account or register if you don't have one yet (Registration). After payment, open the MetaTrader terminal, go to the program activation menu, and click the 'Update' button (Help).
Buy
149$ 79$
Rent ?
Rental is an opportunity to obtain the product for a specified period. You pay for the MetaTrader 5 version, and the MetaTrader 4 version (if available) is provided free of charge. Upon expiration of the rental period, you can either purchase the full version or extend the rental. Payment is made through the Trading-Go website in accordance with the user agreement (offer). To pay for the selected product, log in to your account or register if you don't have one yet (Registration). After payment, open the MetaTrader terminal, go to the program activation menu, and click the 'Update' button (Help).
1 month
15$ 15$
3 months
30$ 30$
6 months
49$ 40$
12 months
79$ 50$
MQL 5 Market ?
Purchase or rental in the MQL5 Market is an opportunity to purchase the product at our official representative office on mql5.com. Prices in the Trading-Go market and the mql5.com market may differ. Purchasing a product on the mql5.com market means that you have read and accepted the Marketplace mql5.com Terms of Use and the Marketplace mql5.com Service Agreement.
Instruction
Recommended
VPS-servers
More →
How to get a license

for free!

More →
Crypto exchange
Crypto Wallets
More →

VR Lollipop – trend collecting trading robot
VR Lollipop – trend collecting trading robot

Icon of the program version Version: 26.106

Icon program update date Updated: 02.11.2026

Icon date the program was added Added: 28.10.2022

Program license icon License: Paid-Free

The icon of the test period of the program Test period: 30 days

Tester Icon/Demo programs Tester / Demo: Free

Program purchase icon Purchase:
149$79$
Program rental icon Rent:
from 15$from 15$

VR Lollipop is a trending trading robot for MetaTrader that accumulates positions in the direction of price movement, transfers them to breakeven and accompanies trends using an advanced percentage trailing stop, allowing flexible risk management and drawdown in forex, cryptocurrencies and other trending markets.

VR Trade Panel - Professional Trading Panel
VR Trade Panel - Professional Trading Panel

Icon of the program version Version: 26.062

Icon program update date Updated: 08.06.2026

Icon date the program was added Added: 17.11.2014

Program license icon License: Paid-Free

The icon of the test period of the program Test period: 30 days

Tester Icon/Demo programs Tester / Demo: Free

Program purchase icon Purchase:
100$30$
Program rental icon Rent: from 10$

VR Trade Panel is a professional solution for trading, which allows you to effectively manage positions using trend lines. Unique functionality allows you to install Stop Loss and Take Profit both at dynamic levels (inclined lines) and fixed values.

VR Stealth Pro - an adviser invisible to the broker
VR Stealth Pro - an adviser invisible to the broker

Icon of the program version Version: 16.120

Icon program update date Updated: 13.12.2016

Icon date the program was added Added: 10.09.2014

Program license icon License: Free

The icon of the test period of the program Test period: Free

Tester Icon/Demo programs Tester / Demo: Free

Program purchase icon Purchase: 0$
Program rental icon Rent: from 0$

The expert Advisor's interface is intuitive and easy. The EA hides the take Profit, Stop Loss, Breakeven, and Trailing Stop trading levels.

Review

VR Smart Grid is an automatic trading advisor for MetaTrader 4 and MetaTrader 5, designed to manage a grid of market positions. The robot combines averaging, partial group closure, trailing stop, and flexible settings for calculating volume and distance between positions.

The Expert Advisor allows you to select entry rules, adjust grid parameters, limit the number of positions, and set closing conditions based on the total result. It is a tool for building and verifying automated trading systems, not a guarantee of profitability.: grid trading can lead to significant drawdowns, especially with prolonged unidirectional market movement.

Content

Review of the VR Smart Grid

VR Smart Grid is a grid trading robot with mechanisms for averaging and managing a group of positions. The first position is opened by the selected signal or in the trading mode without a signal. With further market movement against the open grid, the Adviser can add positions at a given distance. When the price returns to the calculated level, the robot applies the selected closing mode for the group or part of it.

The algorithm works with market orders. The distance between positions and the rules for calculating lots can be set manually or selected from automatic methods. This allows you to use both a fixed distance and volume, as well as options that take into account the volatility or sequence of already open positions.

VR Smart Grid also supports adding trend positions when the algorithm conditions are met, two independent trailing blocks, restrictions on the number and volume of positions, closing the entire group at a given profit or loss, an information panel and event notifications.


Monitoring and management of the VR Smart Grid trading robot

How the robot works

  1. Checks the entry conditions. Before opening a position, the Expert Advisor takes into account the selected signal, the spread, the trading window, the opening mode for a new bar and the set limits.
  2. Opens the first position. The direction and starting volume are determined by the trading and lot calculation settings.
  3. Controls the grid. If the price passes the specified distance from the extreme position against the direction of the grid, the robot can add an averaging position, provided that the appropriate limits are not exceeded.
  4. Controls the movement of the trend. When the trailing conditions are met and the extreme position is protected by a stop loss in the profitable zone, the starting volume position can be added.
  5. Calculates the output level. Depending on the mode, the Expert Advisor places real Take Profits or uses a virtual level, at which it closes a given part of the volume.
  6. Checks the restrictions. Balance management can close the group when the set total profit or loss is reached and stop trading or allow continuation, depending on the settings.

This logic does not eliminate market risk. If the price continues to move against the grid for a long time, the number of positions and the total exposure may increase, and the floating loss may grow.

Features of the trading robot

  • A multifunctional grid algorithm that combines averaging, partial closing, trailing, and position group management.
  • Support for MetaTrader 4 and MetaTrader 5. The available symbols depend on the broker, account type and instrument specification.
  • 13 types of calculating the distance between positions - from a fixed step in points to methods based on volatility and price range.
  • 9 methods of volume change with averaging, including martingale, Fibonacci, linear and smoother growth options.
  • 6 signal options: no signal, CCI, Donchian, moving average intersection, custom global variable and KAMA.
  • Real Take Profit levels or virtual partial closure of the group.
  • Two independent trailing blocks: on trend and against trend. Classical and dynamic modes are used for automatic modification.
  • Limit the number of positions, maximum volume of averaging orders, spread, and trading time.
  • Balance management: closing positions with a given total result.
  • Information panel and notifications via Alert, e-mail, Push and Telegram when configured accordingly.
  • Text and video instructions on installation and configuration.

Position grid and averaging

A grid is a sequence of positions that open at a certain distance from each other. For purchases, an averaging position can be opened when the price goes below the opening price of an extreme purchase by a given step. For sales, the logic is mirrored: an addition can occur when the price moves up relative to the last sale.

Adding positions reduces the weighted average entry price of the group in the direction opposite to the market movement, but at the same time increases the total position and may increase the floating loss. Averaging by itself does not make the trade safer and does not guarantee that the price will return to the closing level.

In the VR Smart Grid, the calculation of the lot, distance and control levels is tied to the extreme position of the corresponding branch of the grid. This is the lowest open position for purchases, and the highest for sales.


Grid of positions and averaging in the VR Smart Grid trading robot

Position volume calculation: 9 methods

The starting lot is calculated separately from the averaging volume growth method. You can use a fixed lot, a percentage of free margin, or a calculation regarding the balance and minimum volume of the instrument as the starting volume.

When adding averaging positions, the following methods are available:

MethodThe principleSpecial Feature
The starting lot Volume is not increasing The following positions use the base volume
Martingale Each subsequent volume is multiplied by 2 Aggressive increase in total exposure
Fibonacci The volume is calculated according to the sequence based on the sum of the two previous values Growth depends on the current sequence
Amount The starting lot is added to the volume of the extreme position Linear magnification
Top/Bottom The volumes of the furthest and furthest positions are taken into account It can accelerate the growth of the position size
Soft Martingale The volume of the extreme position is multiplied by 1.5 Growth is slower than the classic martingale, but the risk remains
Stepper motor The volume grows in a linear sequence using the starting lot Sequential increase
Root Growth is related to the square root of the position number The growth rate is slowing down
Logarithmic Growth is related to the logarithm of the position number Growth slows down as the number of positions increases

An example for a starting lot of 0.01 using the "Soft Martingale" method is 0.01 0.015 0.0225 0.0338 0.0506. The actual volume depends on the broker's restrictions, the lot step, and the minimum and maximum allowable volume. This example explains the mechanics of the calculation and is not a recommendation for setting up.

Additionally, you can specify the sequence of lots manually, set a multiplier and separate maximum volumes of averaging purchases and sales. The manual sequence takes precedence over the automatic lot calculation methods and the corresponding limiters, so it needs to be checked especially carefully.


Volume settings and VR Smart Grid trading logic settings

Distance between positions: 13 types

The grid step determines which price movement should occur before adding the next position. Too small a distance can lead to a rapid accumulation of orders; too much changes the frequency of additions and the behavior of the strategy.

Calculation typeWhat is usedPurpose
In points Fixed value and additional step Set interval
ATR modified Average price movements up and down Separate tracking of movement in directions
As a percentage The share of the price of the extreme position Linking the distance to the price of the instrument
The Bollinger difference The distance between the upper and lower bands Linking a step to volatility
The Donchian difference Maximum minus minimum for the selected period Using the price range
Average range of bars Average High–Low of selected candles Estimation of the typical bar size
ATR classic Average True Range indicator Adapting to volatility
Smoothed ATR Smoothed ATR value Less drastic distance changes
Median range Median of the ranges of the selected bars Lower sensitivity to emissions
Range EMA Exponential smoothing of the candle range Smooth adaptation to the range
ATR × coefficient The ATR value multiplied by the coefficient Distance scaling
Smooth step growth The base distance increases smoothly as the grid evolves Changing the step when adding positions
Hybrid Combination of base distance and ATR Combination of fixed and adaptive step

In manual sequence mode, you can set multiple distances separated by semicolons. This list replaces the automatic calculation type. The step increment parameter is used only in the calculation mode "In points".

Group averaging and closing modes

The VR Smart Grid supports 9 averaging block modes. They determine how the exit level of the group is calculated and how positions are closed.

Mode
 Output typeThe principle
ALL Real Take Profit The level is assigned to all positions
Max Min Real Take Profit The two extreme positions are taken into account
Max Max Real Take Profit The last two positions are taken into account
SMART Real Take Profit Automatic selection of the calculated level
ALL V Virtual partial closure All positions of the group are partially closed
Max Min V Virtual partial closure The calculation is based on two extreme positions
Max Max V Virtual partial closure The calculation is based on the last two positions
SMART V Virtual partial closure Automatic selection of the calculated level
Without averaging The block is disabled Averaging is not used

With a real Take Profit, the EA modifies the TP levels of the positions. In virtual mode, the level is controlled by an algorithm, and when it is reached, the specified part of the volume is closed. The percentage of partial closure is adjustable. The calculation of the exit level can take into account the commission and the accumulated swap, so as not to formally consider a zero result without taking into account trading costs.

Partial closure does not guarantee that the entire group will be closed profitably: the result depends on price movements, volume distribution, costs, and selected parameters.

Signals for opening positions

The signal in the VR Smart Grid is used as a filter allowing the opening of a position. Even the enabling signal does not cancel checking the spread, trading time, grid step and set limits.

The signalThe principle
Without signal The inputs are not filtered by the indicator signal; the rest of the trading conditions apply
CCI Buying CCI below minus100 and starts to grow; selling CCI above +100 and starts to decline
Donchian The signal is based on the breakdown of the maximum or minimum for the selected period, excluding the last bars according to the logic of the algorithm
Crossing the EMA The direction is determined by the intersection of fast and slow exponential moving averages on closed bars
Custom The direction is read from the terminal's global variable generated for the symbol and the Magic Number
KAMA Adaptive trend filter: the price above KAMA allows purchases, below - sales

Trailing stop

The Expert Advisor provides two independent tracking blocks: following the trend and against the trend. Each block has its own parameters.

  • Classic trailing: A stop loss accompanies the price at a set distance.
  • Dynamic trailing: the position of the foot is calculated relative to the traveled part of the intended movement and is limited by setting the maximum percentage.

Trend-following can be applied to a position that is moving in a profitable direction. Countertrend trailing works if there are several positions and the corresponding algorithm conditions are met. The stop loss moves only towards improving protection, and not back towards increasing risk.

In the current build, the "Manual" mode in the trailing type parameter does not perform automatic stop loss modifications. The classic or dynamic type is used for automatic operation.


VR Smart Grid position and trailing Stop management

Balance management and trade restrictions

The VR Smart Grid allows you to set limits for managing trading activity and the size of a group of positions.

  • Maximum spread: blocks the opening of new positions if the set value is exceeded; zero means the filter is disabled.
  • Maximum number of positions: purchase and sale limits are set separately.
  • Operation mode: buying and selling together, only buying, only selling, smoothly stopping the selected direction or managing manual positions with Magic Number = 0.
  • Balance management: closing of all ADVISOR positions upon reaching a set total profit or loss.
  • Action after closing: stop trading or allow continuation according to the parameter.
  • Trading time: limitation of the window for opening new positions.
  • Trading on a new bar: when enabled, it limits the frequency of opening new positions to the selected period.

None of these filters is a substitute for calculating risk. For example, a limit on the number of positions by itself does not guarantee an acceptable drawdown if the transaction volumes are too large.

Dashboard and notifications

The dashboard displays data about the grid, volumes, steps, and control levels. The Adviser can notify about the appearance, closure or change of a position through pop-up terminal messages, email, Push notifications and Telegram, provided that the appropriate channel is configured.

Position closing notifications may contain a financial summary including profit, commission, and swap. When sending to Telegram is configured, screenshots of the graph are also supported. The delivery depends on the terminal parameters and the chosen shipping method.

Example of a grid

Suppose the starting lot is set to 0.01, and the growth during averaging is set using the "Soft Martingale" method. With successive additions, the calculated volumes may look like this: 0.01 → 0.015 → 0.0225→ 0.0338 → 0.0506.

If the price passes the required step against the direction of the open grid, the Expert Advisor can add the next position until the set limit is reached. The output level is recalculated at the same time. When the target level is reached, the selected mode can set a real TP or partially close the volume of the group.

This example is intended only to explain the mechanics. An increase in volume accelerates the growth of the total exposure and can significantly increase the loss in a prolonged adverse movement. The example is not a recommended set.

Testing and recommendations

Before real trading, check the robot in the strategy tester, then on the demo account with parameters close to the intended operation.: the same broker, account type, instrument, spread, deposit size and estimated volumes.

Keep track not only of profits, but also of maximum drawdown, number of positions, margin loading, and grid behavior in different market phases. Ready-made set files should be checked on their own terms - settings that worked on one account may behave differently with another broker.

For continuous operation of the advisor, you can use a VPS remote server on which the terminal remains running when the home computer is turned off.

Testing does not guarantee future profitability. The results depend on the quality of the data, spread, commissions, swap, order execution, account type, and market conditions.


Testing the VR Smart Grid trading strategy in MetaTrader

Examples of configuration sets from the

package

The set includes examples of settings for individual instruments and timeframes. These are the starting points for testing, not universal recommendations: the result depends on the broker, account conditions, deposit amount, trading costs and market conditions.

The toolTimeframeDistance typeDistance valueAveraging modeMinimum profitTrend size for trailing A
EURUSD H1 Percentages 0,11 ALL V 25 points 150 points
XAUUSD H1 Percentages 0,14 ALL V 25 points 650 points
GBPUSD / EURGBP H1 Percentages 0,11 ALL V 25 points 150 points

Before using it, be sure to check the terms of the invoice and the compatibility of the instrument. Examples of settings do not guarantee profitability.

Basic settings

The settings are grouped by purpose. The actual factory values may differ between builds and versions, so check them against the input parameters of the installed Expert Advisor and the complete set file.

GroupParametersPurpose
Lot calculation iLotsCalc, iLotsValue The method of calculating the starting lot and its initial value
The sequence of lots iLotsManual, iLotsType Manual sequence or lot growth method with averaging
Multiplier and lot limits iLotsMultiplier, iLotsMaximalBuy, iLotsMaximalSel Additional multiplier and maximum lots of averaging purchases and sales
Grid pitch iDistanceType, iDistanceValue, iDistanceStep Type, value, and distance increment
Manual distances iDistanceManual The sequence of semicolon-separated distances
Frequency and time iNewBarTime, iTradeStart, iTradeFinish New bar opening limit and trading window
Trading operations iSpreads, iTypeTrade Spread filter and allowed trading directions
Number of positions iMaximalOrdersBuy, iMaximalOrdersSell The maximum number of positions in the directions
Balance management iBalanceProfit, iStopTrade The threshold of profit or loss and the action after the closure of the group
Averaging iAveragingType, iAveragingClose The exit mode of the group and the percentage of partial closure
Target profit iMinimalProfit, iManualProfit Basic closing profit and sequence of values
Trend-following iTrailingTrendTypeA, iTrailingTrendSizeA, iTrailingTrendFixA The type and size of the expected trend and the maximum percentage of dynamic trailing
Trailing against the trend iTrailingTrendTypeB, iTrailingTrendSizeB, iTrailingTrendFixB Individual parameters of the anti-trend trailing
Signals iIndicatorsSignal, iPeriod_1, iPeriod_2 Signal type and indicator periods
Dashboard and notifications iPanelInfoSize, iPush, iAlert, iMail, iTelegram Panel size and notification channels
Identification of the transaction iMagicNumber, iSlippage, iComment Magic Number, acceptable slip and comment

Requirements and restrictions

  • A trading account with a hedging mode is required; on a netting account, the logic of managing several individual positions may not work correctly.
  • Market orders are used; pending orders are not applied by the algorithm.
  • The availability of Forex, metals, CFDs, cryptocurrencies and futures depends on the broker and the parameters of a particular account.
  • For the version downloaded from the Trading-Go website, you must allow the DLL in the settings of the MetaTrader terminal.
  • For a separate build from the MQL5 Market, the requirements should be checked in the description of this particular version. Do not automatically transfer the requirements of the Trading-Go website to the marketplace build.
  • Volume growth methods, especially the classic martingale, can significantly increase the total lot. Keep an eye on the margin and position limits.
  • Zero limits on the number of positions or volume may mean that there is no corresponding limit.

Trading-Go Market

  • Delivery of an archive containing versions for MetaTrader 4 and MetaTrader 5: download the VR Smart Grid archive.
  • When buying in the Trading-Go market, the second version for MetaTrader 4 or MetaTrader 5 is provided for free.
  • Before purchase, testing is available in the strategy tester, on the demo account and on the live account for 30 days in accordance with the terms of the product.
  • Payment: Mir, Russian VISA and MasterCard, other available methods; cryptocurrency USDT TRC20 and USDT ERC20.
  • There are 5 keys provided. When used on a new operating system, one key is consumed. If necessary, the keys can be replaced by sending a request to technical support.
  • For the version downloaded from the Trading-Go website, it is necessary to allow the use of the DLL in the settings of the MetaTrader terminal.
  • It is possible to get access to applications for free through the referral program.
  • Technical support is provided free of charge; updates are free.
  • Instructions for installing Trading-Go applications.

The MQL5 Marketplace

  • Versions for MetaTrader 4 and MetaTrader 5 are available separately.
  • 20 activations are provided; when installing on a new operating system, one activation is consumed in accordance with the rules of the MQL5 Market.
  • Testing is available in the strategy tester before purchase. The demo version from the market is intended for the tester and does not run as a full-fledged Expert Advisor on a demo or live account.
  • The product can be found directly in the MetaTrader terminal through the "Market" section.
  • The available payment methods are determined by the rules of the MQL5 Market.
  • Paid version for MetaTrader 4.
  • Paid version for MetaTrader 5.
  • Technical support is free; updates are free.
  • Instructions for installing or updating an application from the MQL5 Market.

About the author

I have been developing trading algorithms and Expert Advisors for MetaTrader for over 20 years. During this time, my trading applications have been repeatedly redesigned and supplemented with new ways to calculate lots, distances, input signals, trailing, and position group management.

When developing, it is important to take into account not only the logic of the strategy, but also the limitations of the terminal, trading costs, error handling, and the behavior of the adviser when market conditions change. No test can guarantee future financial results, so I recommend studying the settings and checking them under conditions as close as possible to the intended use.

Frequently asked questions

How do I install an Expert Advisor from Trading-Go?

Download the archive and unzip it. In the MetaTrader, select the "Open Data Directory" file, then open the MQL4 or MQL5 folder and place the Advisor files in the Experts folder. Restart the terminal. For the version downloaded from Trading-Go, allow the DLL in the terminal settings. For more information, see installation instructions.

Why doesn't the robot open positions?

Check whether automatic trading is enabled in the terminal and whether it is allowed in the Expert Advisor settings. Then check the account type, the signal, the spread filter, the trading window, the opening parameter for a new bar, the limits on the number of positions and the available margin. The reason for the failure should also be searched in the terminal log.

What kind of leverage should I use?

There is no universal value: margin requirements depend on the instrument, broker and position size. Check the selected leverage and available margin on the demo account; do not consider more leverage as a way to improve the quality of the strategy.

Is it possible to test the robot first?

Yes. Trading-Go provides testing in the strategy tester, on a demo account and on a live account for 30 days in accordance with the terms of the product. In the MQL5 Market, the demo version is intended for the strategy tester. First, check the operation of the system without risking a significant part of the capital.

Does the strategy tester guarantee profit?

No. The tester helps to evaluate the behavior of the system based on historical data, but does not reproduce all the conditions of real execution. The result is influenced by data quality, spread, commissions, swap, slippage, margin, and market changes.

Which method of increasing the lot should I choose?

The choice depends on the acceptable risk and your strategy. The classic martingale increases the volume quickly and can lead to a sharp increase in exposure. Smoother methods also do not eliminate the risk of accumulating losses. Check all options based on historical data and demo account.

Where can I ask a question or report a bug?

Visit the topic of VR Smart Grid on the Trading-Go forum. Describe the EA version, platform, account type, settings, and the steps that caused the problem.


VR Smart Grid topic on the forum

Settings

Description of settings

A trend is considered when the price is above the upper buy position; against the trend when the price is below the upper buy position. For sales, the logic is mirrored. The settings marked 4/5 depend on the number of decimal places at the broker.

Lot calculation settings

  • The type of lot calculation— the type of lot calculation: fixed lot, percentage of margin, balance for the minimum lot.
  • Value (Lot, Percentage, Balance) - the value for the selected calculation type.
  • Manual sequence of lots, through ( ; ) manual sequence of lots (highest priority).
  • Type of automatic lot calculation automatic calculation method: starting lot, martingale, Fibonacci, sum, top/bottom, soft martingale, step, root, logarithmic.
  • Additional lot multiplier (0 - Disabled) - additional lot multiplier.
  • Maximum Buy lot / Maximum Sell lot maximum lot limits.

Position step settings

  • Type of distance calculation— type of distance calculation: Points, Percentages, modified ATR, Bollinger difference, Donchian difference, average value of bars, ATR classic, smoothed ATR, median range, range EMA, ATR x coefficient, smooth step growth, hybrid.
  • Value (Points, Percentage, Indicator Period) - the value of the distance.
  • Step increase between positions (0 - Disabled) - increasing the step with the depth of the grid.
  • Manual distance sequence, through ( ; ) manual distance sequence.

Uptime settings

  • New Bar trading - trading on the new bar of the selected timeframe.
  • Trade end time / Trading start time - the end and start time of trading (hh:mm:ss).

Trading settings

  • Maximum spread (0 - Disabled) maximum spread.
  • Type of trading operations - buying and selling together, only buying, only selling, smooth stop, control of manual positions.
  • Maximum number of positions per buy / sell - maximum number of positions.

Balance management settings

  • Close all positions at profit or loss - closing all positions with a given result.
  • Action after closing all positions to stop or continue trading.

Averaging settings

  • Type of averaging averaging mode: all positions / two extreme / two last / smart choice, real or virtual take profit, without averaging.
  • Partial closing percentage (virtual mode) - percentage of partial closure in virtual mode.
  • Minimum profit for closing positions - minimum profit in points.
  • Manual sequence of profit, via ( ; ) manual sequence of profits.

Trailing stop in the trend / against the trend

  • Type of trailing - classic, dynamic, manual.
  • Potential trend size (Points) potential trend size in points.
  • Maximum percentage for a trailing stop (Dynamic) maximum percentage of dynamic trailing (0-95%).

Setting up strategies

  • Type of signals for a strategy without signals, CCI, Donchian, intersection of MA, custom, KAMA.
  • Indicator Period indicator periods.

Other settings

  • Info panel size - the size of the information panel.
  • Notifications - Push, Alert, Email, Telegram (token and channel).
  • MagicNumber - the serial number of the items (by default 227).
  • Slippage - slippage.
  • Comment on the positions - comment or comment mask.

Video

Updates

Version 26.100 - 30.09.2026

Correcting the calculation of lots

Update history — latest 5 versions

Version 26.086 - 19.08.2026

Correction of the position closing function when the specified profit or loss is reached


Version 26.085 - 18.08.2026

Minor fixes and improvements


Version 26.081 - 17.08.2026

In this update, five key blocks have been redesigned: calculation of trading lots, distance between positions, averaging positions, strategy signals and trailing stops. The logic of the work has not changed, but the code has become more reliable, faster and easier to maintain.

WHAT HAS BEEN IMPROVED

  • Checking the manual sequence of lots and distances. The Expert Advisor checks the input in the settings: incorrect characters, typos (for example, two dots) or unnecessary separators no longer lead to errors — the Expert Advisor will report this to the log and will not open a position with an incorrect volume or pitch.
  • Automatic volume protection. If the calculated lot is less than the minimum or more than the maximum allowed for the instrument, the EA will automatically adjust it to the acceptable value and issue a warning.
  • Correct distance calculation. A new position is opened only when the price has passed the specified step from the last position — no more "double" openings.
  • Protection against incorrect settings. A zero step, a zero period of the indicator, or an incorrect calculation type no longer lead to failures — a replacement value is used.
  • New smooth lot calculation methods — now there are 9 methods to choose from (in more detail below).
  • New smooth distance types — now there are 13 types to choose from (more details below).
  • The averaging block has been redesigned. — a single countdown from the last position, protection from unnecessary trading requests, and position memory based on global variables (in more detail below).
  • The signal block has been redesigned — the signal no longer "sticks", the indicators are created once, and a new KAMA signal has been added (in more detail below).
  • The trailing stop has been redesigned — the size of the distance against the trend has been fixed, protection from unnecessary requests and from division by zero (in more detail below).
  • Commission and swap compensation at the break-even point. The average averaging price correctly takes into account the commission and the accumulated swap — positions are closed "at zero", taking into account all costs (in more detail below).
  • The averaging of purchases and sales has become completely mirrored. The sales blocks were rewritten one into one according to the purchase structure — an error was fixed in which the take profit in the "Two extreme" and "First two" modes was assigned to the middle positions, and the extreme ones were reset.
  • Unified notification system. Alert, Mail, Push, and Telegram are assembled into one CMyMessage class: position events (new, closed, changed), lang localization(), and screenshots of the graph (in more detail below).
  • Secure work with graphic objects. The panel is deleted during unloading only if it is actually created, the indicators are correctly released, and the global signal variables are cleaned (in more detail below).
  • Minor fixes. Typos in the texts have been fixed, the code has been brought to a uniform style.

BLOCK 1. LOT CALCULATION METHODS

1.1 Starting lot (calculation type)

Determines the volume at which trading begins. There are three ways to choose from:

  • Fixed lot — always the same volume (example: 0.01);
  • Margin percentage — the lot is equal to the specified percentage of the free margin (example: 3, i.e. 3% margin);
  • Lot for the amount — the balance is divided by the specified amount and multiplied by the minimum lot (example: 300 — starting from the minimum lot with a balance of 300).

1.2 Lot growth when adding positions (automatic calculation type)

Determines how the volume of each subsequent position changes during averaging. All examples are given for the starting lot 0.01 (the sequence for positions from 1st to 5th):

  • No. 0 Starting lot: 0.01, 0.01, 0.01, 0.01, 0.01 — without growth;
  • No. 5 Soft martingale: 0.01, 0.015, 0.0225, 0.0338, 0.0506 — very smooth growth (x1.5);
  • No. 8 Logarithmic: 0.01, 0.017, 0.021, 0.024, 0.026 — the smoothest, the growth is "saturated";
  • No. 7 Root: 0.01, 0.014, 0.017, 0.02, 0.022 — smooth, growth slows down;
  • Step number 6: 0.01, 0.015, 0.02, 0.025, 0.03 — smooth, linear;
  • No. 3 Sum: 0.01, 0.02, 0.03, 0.04, 0.05 — linear (plus starting);
  • Fibonacci number 2: 0.01, 0.01, 0.02, 0.03, 0.05, 0.08 — moderate (the sum of the previous two);
  • No. 4 Top/bottom: 0.03, 0.04, 0.07, 0.10 — the sum of lots of extreme positions;
  • No. 1 Martingale: 0.01, 0.02, 0.04, 0.08, 0.16 — aggressive (each one is twice as big).

Learn more about each method:

  • Starting lot (1, 1, 1, 1 and beyond) — all positions are opened with the same volume. The safest, but also the slowest way to recover from averaging.
  • Soft Martingale (1, 1.5, 2.25, 3.4 and beyond) — each next position is 1.5 times larger than the previous one. It is softer than the classic martingale, but it restores losses faster.
  • Logarithmic (1, 1.7, 2.1, 2.4 and beyond) — growth slows down quickly and is "saturated". Minimum deposit load for deep series.
  • The root (1, 1.4, 1.7, 2, 2.2 and further) — the lot grows proportionally to the square root of the item number. Smooth growth with deceleration is a good balance of risk and speed.
  • Stepper (1, 1.5, 2, 2.5, 3 and further) — half of the starting amount is added to each lot. Simple and predictable linear growth.
  • Amount (1, 2, 3, 4, 5 and further) — the starting lot is added to the lot of the first position. Linear growth with a full step.
  • Fibonacci (1, 1, 2, 3, 5, 8 and further) — the lot is equal to the sum of the previous two. Classic moderate progression.
  • Top/bottom (3 and above, 4, 7, 10 and beyond) — the lot is equal to the sum of the lots of the highest and lowest positions. Suitable for grid strategies with mirrored branches.
  • Martingale (1, 2, 4, 8, 16 and further) — each next position is twice as large as the previous one. The most aggressive: quickly recovers losses, but requires a large margin margin.

1.3 How to choose a method

  • Conservative trading, small deposit: logarithmic, root—based or step-based - minimum margin load;
  • Balanced approach: soft martingale, sum, Fibonacci;
  • Rapid recovery and risk tolerance: martingale, top/bottom.

1.4 Additional lot settings

  • Lot multiplier — additionally multiplies the calculated lot (0 is disabled);
  • Maximum lot of purchases and sales — limits the volume of positions to protect the deposit;
  • Manual sequence of lots — you can set your list of volumes separated by a semicolon, for example: 0.01; 0.02; 0.04; 0.08.

BLOCK 2. DISTANCE BETWEEN POSITIONS

The step calculation block between positions has been redesigned: input verification has been added, distance counting has been fixed, and smooth calculation types have been added. There are now 13 types to choose from.:

  • In points — fixed distance in points (example: 150);
  • As a percentage — distance as a percentage of the opening price (example: 1.5, that is 1.5%);
  • modifiedATR — the average movement of bars up and down over the period (example: 50);
  • The Bollinger difference — the difference between the upper and lower bands (example: 12);
  • Donchian difference — the difference between the maximum and minimum for the period (example: 22);
  • The average value of the bars is the average bar size for the period (example: 30);
  • ATR classic is the value of the ATR indicator (example: 14);
  • Smoothed ATR (new) — averaging (EMA) of ATR values, step without jerks (example: 14);
  • Median range (new) — median of bar sizes, ignores outliers, the calmest (example: 50);
  • Range EMA (new) — smoothed average of the size of bars with an emphasis on fresh bars (example: 14);
  • ATR x coefficient (new) — the distance is equal to ATR multiplied by a factor (example: 1. 5);
  • Smooth step growth (new) — the distance increases with the depth of the grid and slows down (example: 50);
  • Hybrid (new) — a combination of fixed distance and ATR (example: 100).

What has been fixed:

  • Counting down from the last position. Previously, the reference price could "freeze" — after the first condition was triggered, the ADVISER opened positions on each tick. Now the distance is counted from the last (extreme) position, and each next one opens only after completing the full step.
  • Indicator protection. The periods of ATR, Bollinger, and other indicators are automatically adjusted to acceptable values; errors in loading the indicator no longer cause failures.
  • Zero-step protection. If zero is specified in the settings, a reserve value is used — the Expert Advisor will continue to work correctly.
  • Manual distance sequence — you can set your own list of steps separated by semicolons, for example: 50; 100; 80; 30 (checked in the same way as lots).

How to choose the type of distance:

  • Stable step without reference to the market: "In points" or "Smooth step growth";
  • Adaptation to volatility without jerks: "Smoothed ATR", "Median range", "Range EMA";
  • Following the volatility: "ATR classic", "ATR x coefficient", "Hybrid";
  • Market structure analysis: "Bollinger difference", "Donchian Difference".

BLOCK 3. AVERAGING AND PARTIAL CLOSING OF POSITIONS

The averaging unit has been completely redesigned and moved to a new architecture — now it works in concert with the calculation of lots and steps.

Operating modes:

  • Real TakeProfit — sets take profit on positions when the level is reached;
  • Virtual partial closure — closes part of the position (in percent) when the level is reached.

Types of level calculation:

  • All (All) — the general level for all positions;
  • Extreme (Max/Min) — the level for the two extreme positions (upper and lower);
  • The first two (Max/Max) — the level for the first two positions;
  • Smart — automatically selects the best of the three options.

What has been fixed and improved:

  • A single countdown from the last position. Averaging, pitch, and lot calculation work from the same reference point — the last added grid position. Previously, blocks could "pull" in different directions.
  • Protection from unnecessary trading requests. The take profit is modified only when the level has really changed — previously, requests were sent on each tick, now the load on the terminal and server is minimal.
  • Position memory. The values are stored in global terminal variables with a cache in memory: the data survives a terminal restart, and writes are performed only when they change — without unnecessary load on each tick.
  • Protection at the start of the grid. With two or three positions, a share of each position is closed — after a partial closure, there is no position with a large lot in the market.
  • Parameter protection. The closing percentage is adjusted to the acceptable range; incorrect values do not cause failures.

Averaging block settings:

  • Type of averaging — choice of mode (real TP or virtual closure) and type of calculation (all, extreme, first two, smart);
  • Closing the percentage part — what volume of position to close in in virtual mode (for example, 25 — quarter);
  • The minimum profit is in points, or a manual sequence of levels separated by a semicolon (for example, 25; 50; 100).

BLOCK 4. SIGNALS FOR STRATEGY

The signal block has been redesigned: a new type of KAMA has been added, signal "sticking" has been fixed and operation with indicators has been optimized.

Types of signals:

  • No. 0 Without signals — the strategy works without a filter based on indicators;
  • No. 1 CCI — buy or sell when CCI reverses from the levels of minus 100 and plus 100;
  • No. 2 Donchian — buy when the maximum breaks, sell when the minimum breaks;
  • No. 3 Crossing MA — buy when the fast EMA crosses above the slow one, sell when it crosses down;
  • No. 4 Custom — signal from a global variable (external indicator);
  • No. 5 KAMA (new) — a bounce from the bottom is a buy, a bounce from the top is a sell.

New KAMA signal:

  • Kaufman's Adaptive Moving Average (KAMA) adjusts itself to market volatility;
  • Buy — the price touched the KAMA line from below and bounced up;
  • Sale — the price touched the KAMA line from above and bounced down;
  • The signal is calculated based on closed bars — without redrawing;
  • The KAMA period is set by the "Indicator Period" field (iPeriod_1).

What has been fixed:

  • The signal no longer "sticks".Previously, if the condition was no longer met, the signal retained the old value and the Expert Advisor could "buy" indefinitely. Now the signal is reset on each tick.
  • Indicators are created once. CCI and MA handles used to be created on each tick. Now they are created during initialization and released correctly upon completion.
  • Error protection. Checking the availability of data and the correctness of Donchian channels exclude failures and going beyond the boundaries of arrays.

BLOCK 5. TRAILING STOP

The trailing block has been redesigned and moved to a new architecture. It operates in two independent groups: on trend and against trend, with two types to choose from for each group.

Groups and types:

  • According to the trend, the Classic stop follows the price at a fixed distance;
  • According to the trend, the Dynamic stop is tied to the percentage of the potential trend size passed;
  • Against the trend, Classic — the stop moves in the opposite direction during a reversal;
  • Against the trend, Dynamic — adaptive stop when the price rolls back from the extreme position.

What has been fixed and improved:

  • Fixed the distance against the trend. Previously, the "against trend" block used the size of the trend distance. Now it has its own parameter, "Potential trend size" of the "Against trend" group.
  • Protection against incorrect settings.The zero or negative trend size is automatically replaced by a spare one; the maximum percentage is adjusted to the acceptable range of 0-95. Division by zero is excluded.
  • Protection against unnecessary requests. The stop loss is modified only when the level has actually changed - previously, requests were sent on each tick.
  • Speed optimization. The current Bid/Ask prices and the item size are cached once per tick — less load on the terminal with a large number of positions.

Tracking block settings:

  • Trend—based type of trailing - classic or dynamic;
  • Potential trend size — in points (for example, 10000);
  • The maximum percentage is the limit for the dynamic mode (0-95%);
  • the same three parameters for the "Against trend" group.

BLOCK 6. COMMISSION AND SWAP COMPENSATION

  • The cost-adjusted break-even point. The average averaging price includes a commission (taking into account the closing — "round trip") and an accumulated swap: for purchases, the break—even point is higher than the entry price, for sales it is lower, by exactly the amount of costs. Positions are closed "at zero" without hidden losses from the commission.
  • Correct calculation units. Compensation is converted into points through the cost of the point, not the tick — it works correctly even on instruments where the tick differs from the point.
  • Boost. The compensation value is cached: one calculation per position per tick instead of several calls to the transaction history.

BLOCK 7. GRAPHIC OBJECTS (PANEL)

  • Secure removal of the panel. When unloading the Expert Advisor, the panel is deleted only if it was actually created (checking the Work() flag). Previously, unconditional cleaning of objects could erase all drawn objects from the graph, including those of others.
  • Correct release of indicators. CCI/MA handles are released upon shutdown (Release()) — without leaks during reinitialization (parameter changes, recompilation, schedule changes).
  • Logging the reason for the upload. The reason for Deinit (REMOVE, RECOMPILE, PARAMETERS, ACCOUNT, CLOSE, etc.) is displayed in the log. It is easier to understand why the adviser stopped.
  • Clearing global variables. In the "User-defined" signal mode, the global signal variable is deleted during unloading. After restarting, the outdated value is not read.
  • Reset the status for reinit. The gate of the new bar and the panel redraw flag are reset when unloading, and the EA starts from a clean state.
  • Schedule update. When unloading, ChartRedraw() is called — the panel disappears immediately, without any "frozen" remnants on the chart.

BLOCK 8. MESSAGES (NOTIFICATIONS)

  • A single CMyMessage notification facade — one call sends a message to all enabled channels: Alert (terminal window), Mail (e-mail), Push (smartphone), Telegram (bot). Each channel is enabled separately, and a token and channel name are set for Telegram.
  • The event model of positions. The Expert Advisor compares snapshots of positions and sends messages only when real events occur.: "New position", "Position closed" (profit, commission, swap, total), "Volume changed / Stop Loss / Take Profit". The first pass serves as a baseline — there is no spam at launch.
  • Localization of messages. All texts have been translated into the lang system(): indexes 110100200-110100213 (English and Russian) have been added. The message language is the same as the terminal language.
  • Event labeling. Purchases and sales are marked with BUY/SELL tags, events are accompanied by the labels "new position", "change in Stop Loss / Take Profit", "closed (profit)", "commission and swap", "total". The title and the basement of the messages are designed in the same style.
  • Screenshots in a separate folder. The snapshot of the graph is saved to the Program Name folder.\Screenshots" with a unique name (program_sige_date_time) and is sent to Telegram with a signature.
  • Correct encoding of event labels in Telegram. Characters are encoded in correct UTF-8 — surrogate pairs are combined into a code point. Previously, the icons turned into spaces and were not displayed.
  • Spam protection. Each channel has a quiet throttling: 6 seconds for Alert/Mail/Push and 30 seconds for Telegram — without repeated windows and annoying Alerts.
  • Text feedback. If the screenshot fails (for example, ChartScreenShot doesn't work in the strategy tester), the message still goes away in plain text — notifications are not lost.
  • Correct error handling. The response code is checked only after the actual sending; the photo returns the real result code — failures are not hidden and duplicates are not created.

UPDATE RESULTS

Fixed bugs: 38

  • Analysis of manual sequences of lots and distances — typos (for example, 0.01.5), empty elements, extra separators no longer give zero volume or step;
  • Protection against division by zero and incorrect parameters (zero step, zero indicator period, zero trend size, percentage out of range);
  • Correct distance counting and averaging from the last position — eliminated "double" openings;
  • The size of the anti—trend trailing distance has been fixed (the trend size was used earlier);
  • Protection from unnecessary trading requests - take profit and stop loss are modified only when the level actually changes;
  • The signal no longer "sticks" — it resets on each tick;
  • The memory of positions on global variables with a cache — without unnecessary load and with retention after restart;
  • Checking memory allocation (new == NULL) for all objects;
  • Protection against incorrect time format in settings (crash excluded);
  • Search for extreme positions with the same opening time (averaging is no longer skipped);
  • Fixed porting errors from the old version (non-existent methods, variables, class names);
  • Take profit is given to the extreme positions in the "Two extreme" and "First two" modes (previously, only the middle ones, the extreme ones remained without a level);
  • Commission compensation has been converted to correct units (points instead of ticks) — accurate cost accounting for any instrument;
  • The sales averaging block has been rewritten to mirror purchases — the confused logic of take profit at extreme positions has been eliminated;
  • Accessing a remote object in Telegram (use-after-free) — replaced with a direct call;
  • "Poisoning" the response code in Telegram — checking only after the actual sending, the photo returns the real code;
  • Spam Alerts during trolling — replaced silent trolling;
  • Event icons were not displayed in Telegram — fixed UTF-8 encoding (surrogate pairs);
  • Compilation error in Telegram. mqh (undeclared length variable);
  • Deleting the panel during unloading could erase all the graph objects — added the Work() check;
  • An uninitialized message flag in the CMyStructuraUpdate constructor;
  • Include guard conflict in CMyMail (coincided with CMyPush) — files are now connected together;
  • CMyAlert compilation error (if from void Alert function);
  • Duplicate variable declaration when inserting screenshot code into CMyMessage.

Added new features: 19

  • Lots: 4 smooth growth methods — soft martingale, step, root, logarithmic;
  • Distance: 6 smooth types — smoothed ATR, median range, range EMA, ATR x coefficient, smooth step growth, hybrid;
  • Signals: 1 new signal — KAMA (bounce from bottom — buy, bounce from top — sell);
  • Messages: a single facade of CMyMessage - Alert, Mail, Push and Telegram in one call;
  • Messages: event model of positions (new, closed, changed) with results on profit, commission and swap;
  • Messages: localization lang() — new indexes 110100200-110100213 (EN/RU);
  • Messages: screenshots in the Program Name folder\Screenshots" with a unique name;
  • Messages: Telegram method(aText, aPatch) — text or text with a screenshot;
  • Messages: text feedback in case of screenshot failure;
  • Messages: quiet channel throttling (6 seconds / 30 seconds).

Optimizations: 10

  • Cache of global variables in the position memory (write to disk only when changing);
  • Indicators are created once during initialization (instead of each tick);
  • Copying only the necessary indicator bars (instead of a double period);
  • Cache of Bid/Ask prices and the point size per tick;
  • Protection against spam of trade requests in averaging and trailing blocks;
  • Cleaning up dead code and commented out old implementations;
  • Russian comments with right alignment in all files;
  • Commission and swap compensation cache — one calculation per position per tick instead of 4-8 calls to the transaction history;
  • Notifications are sent only for real position events (comparing snapshots) — zero unnecessary tick requests;
  • Freeing the indicators and clearing the status during unloading — no leaks during reinitialization.

Productivity growth

  • Position memory.Previously, the ADVISOR accessed the terminal's global variables (writing to disk) for each tick — with a grid of 10 positions, this is up to 40 disk operations per second. Now the values are stored in memory and written to disk only when changed — with a stable grid of disk operations, zero.
  • Indicators. CCI and MA handles were created anew on each tick. Now they are created once at startup and released correctly at completion. Saving terminal time and memory.
  • Indicator data. 2 x periods of bars were copied — now only the last 3 bars, which are enough to calculate the signals.
  • Prices. Bid/Ask and item size were requested dozens of times per tick. Now they are cached once and reused in all blocks (lots, distance, averaging, trailing).
  • Trading requests. Take profit and stop loss were sent to the server on each tick - now only when the level actually changed. Reducing the load on the terminal, server and network traffic.
  • Commission compensation.Previously, for each position, it was recalculated up to 8 times per tick with access to the transaction history. Now there is one calculation with caching, the history is scanned once.

Bottom line: the load on each tick is significantly reduced — the Expert Advisor processes ticks faster, works more stably on weak computers and in the tester, and the number of trading requests to the server is minimized.

TOTAL

38 fixes + 19 new features + 10 optimizations = 67 improvements.

The update is fully compatible with the previous settings — there is no need to reconfigure the Expert Advisor.


Version 26.011 - 29.01.2026

Correction of error 138

To hide the update history

Comments

To write a comment, log in Enter
All
Feedback
Offer
Comment
Mistake
D
DOWLY
Feedback 20.05.2026 22:44:23 #linck
https://trading-go.net/advisors/vr-smart-grid/#reviews654

Why did I enable SMART V, but the EA is not performing partial closing?

1 0 To answer
To write a comment, log in login
Thanks. Your comment has been received. After verification, we will pub
Something went wrong, log in, fill out all the fields and try again!
А
Администратор сайта
21.05.2026 11:01:07 #linck
https://trading-go.net/advisors/vr-smart-grid/#reviews655

Turn it on :

  • Averaging type
  • Partial closing percentage virtual mode (Example: 25)
  • 4/5 Minimum profit for closing positions (Example: 25)
  • Manual sequence of profit, via ; (Example: 25; 20; 30; 38)
0 0 To answer
To write a comment, log in login
Thanks. Your comment has been received. After verification, we will pub
Something went wrong, log in, fill out all the fields and try again!
R
Rin Lom
Комментарий 11.11.2021 08:42:47 #linck
https://trading-go.net/advisors/vr-smart-grid/#reviews97

i love vr-smart-grid is smart and useful.

0 0 To answer
To write a comment, log in login
Thanks. Your comment has been received. After verification, we will pub
Something went wrong, log in, fill out all the fields and try again!
Registration

Login

Password recovery Registration
Login

Password recovery Registration
Password request

If you forgot your password, enter your e-mail. The control line for changing the password will be sent to you by e-mail.

A link has been sent to your email address to confirm the E-mail address. To complete the registration, follow this link.

If you have not received an email to your email, check the Spam folder. If there is no letter there either, then contact us.

Registration completed successfully!

You have successfully logged in to the site!

We use both our own cookies and third-party cookies for the purpose of analysis, as well as to display ads based on your preferences, in accordance with your browsing habits and your profile. For more information, please see our Privacy Policy.
Telegram community
Discussions, settings, results,
communication with the author
GO