Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


VR Smart Grid Lite - expert for MetaTrader 4

Vladimir Pastushak | English Español Português 日本語 Deutsch

votes: 15
2019.12.24 12:29
VR Smart Grid Lite Advisor is a simplified demo version of VR Smart Grid Advisor. The EA is presented in order to demonstrate a part of the source code, and to demonstrate an example of its work with partial closing of orders by take profit and closing of orders by fractional lot. The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes. As a result, the probability of closing orders or reducing lots in the market increases by several times. Run the EA in the strategy tester in the visualization mode, and you will see how the EA works on the chart. VR Smart Grid Lite Advisor will be useful for both beginners and professionals in trading and programming.

VR Smart Grid Lite is a Lite version of the VR Smart Grid EA published in the market, it demonstrates a small part of the source code and a small part of one of the principles of reducing the position of orders against the trend.

Work logic

If the last candle was bullish, the EA will enter the market with a buy order. If the last candle is bearish, then the EA will enter the market with a sell order. In this case, the signal acts not only on the first order in the network, but also on all subsequent ones. This approach eliminates the opening of the network only after a specified distance. It turns out that the EA takes into account not only the distance set by the trader, but also the signal from the candles. In the case of a sharp price movement without a signal from the candles, no trade will be made. It is important to note that if there is a strong movement on the instrument (all candles are bearish), then the trade will be made on a bullish candle.


  • Do not use on real account without a clear understanding of the risks and consequences
  • Integrate your strategy into the code
  • Before using the EA in real conditions, test on demo accounts for at least 4 working weeks.


  • EA works on any timeframe
  • EA works with any instruments (Forex, Metalls, Stock, Cryptocurrencies, etc)
  • Simple open source code
  • EA has is able to integrate any trading strategy
  • Detailed description of the code is provided in the video material
  • EA works in the strategy tester, on demo and in real life (observe and take the risks into account)
  • Automatically picks up your orders when you restart.


  • Take Profit (in pips) - take profit in pips;
  • Start lot - start lot size;
  • Type close orders - Closing orders by total take profit (Average) or Partial closing of orders (Part Close)
  • Point order step (in pips) - step between orders;
  • Minimum profit for close grid (in pips) - minimum profit when closing a series of orders;
  • Magic Number - serial number of orders by which the EA distinguishes its orders;
  • Slippage (in pips) - slippage size.
Version 19.120
  • Setting that allows you to choose to Close orders by total take profit (Average) or select Partial closing of orders (Part Close) was added
  • Maximum lot limiting setting is optimized. Now to disable the use of the maximum lot limit it is enough to set the value of Maximum Lots to 0

ZigZag Semaphore  ( semafor ) Indicator ZigZag Semaphore ( semafor ) Indicator

This indicator places a mark (a semaphore) at the zig zag for each of 4 zig zag evaluation lengths.

Expert adviser licence protection template Expert adviser licence protection template

Guide 'how to' make different expert adviser license protections

MACD Sample Hedging Grid MACD Sample Hedging Grid

Classic "MACD Sample " EA with a little twist


iWPR+ is an iWPR %Range function with a positive value.