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.03 16:23

Lucky - expert for MetaTrader 5

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

votes: 19
lucky.mq5 (3.16 KB)view

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

How it works

If the price moves 'Shift' points or more for one tick, a position is opened in the direction opposite to the movement of the price. As the position is profitable (at any minimum value), it closes.


How it works means that Shift value is 3, spread is equal to 2.


  • Lots - Position volume.
  • Shift - Price change to open a position.
  • Limit - Loss value in points to close a position.


The Expert Advisor testing in the strategy tester is likely to be unreliable. It must be tested on a demo account.

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.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.