Download MetaTrader 5

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

2012.12.11 15:09

VLT_TRADER - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 24
vlt_trader.mq5 (14.69 KB)view
ivlt.mq5 (3.46 KB)view

The Expert Advisor is rewritten from MQL4, the author is fortrader, link to the source

How it works

If the bar is formed with a size of a shade less than the lowest bar for a specified number of bars, the setting of two pending stop orders is performed. When one of the orders is triggered, the second is removed.

Trade signals definition is delivered to the indicator. When the indicator has one period parameter, i.e. the number of bars on which the minimum bar size is determined. The green line shows the current bar size, the blue line is a minimum bar size, points are the signals of setting orders.

The image 1 shows the performance of the Expert Advisor in the strategy tester's visual mode, the image 2 shows the results of the tester.


Fig. 1. How the Expert Advisor works.


Fig. 2. The results of work of the Expert Advisor for the last month (09.2012) at EURUSD M15.


  • period - The period of the indicator.
  • PendingLevel - The level of setting pending orders from High/Low of the previous bar.
  • Lots - Lot.
  • StopLoss - Stop Loss in points, 0 - without Stop Loss.
  • TakeProfit - Take Profit in points, 0 - without Take Profit.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TypeToBytes TypeToBytes

Byte-wise operation with structures and standard data types.

PriceLines PriceLines

Script for drawing a price markup.