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

2014.04.15 14:12

Simple EA - expert for MetaTrader 5

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

votes: 30
simple.mq5 (2.56 KB)view


The simplest robot that buys and sells!

It is based on the EA description on the forum:

"The idea is to buy (say) some 0.01 lot at the current price. Once the price increases by (say) 46 points, the deal is closed (with a profit). Then repeat, etc. But if the price goes in the wrong direction (say) 31 points, the deal is closed (but with a loss). And a sell deal is then opened. After the price makes 46 points down, close with a profit or if goes 31 up, close with a negative result. And so on, the cycle is repeated "

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.