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.11.20 11:32
Experts

Universal_Investor - expert for MetaTrader 5

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

Views:
2479
Rating:
votes: 15

This Expert Advisor is rewritten from MQL4 and was originally published here https://www.mql5.com/en/code/8079 by its author Olek.  

How It Works

The operation of the Expert Advisor is based on exponential (EMA) and linear weighted (LWMA) moving averages. A buy position opens when EMA is above LWMA, while both MA's are going upward. A sell position opens when EMA is below LWMA, while both MA's are going downward.

When EMA gets lower than LWMA, a buy position is closed. When EMA gets higher than LWMA, a sell position is closed.

The lot size for positions to be opened can be fixed or proportional to free margin. There is an additional function to reduce the lot size at losses - the more consecutive losing trades, the smaller the lot size.

The image below shows the performance of the Expert Advisor in the strategy tester's visual mode.

 


Parameters

  • MovingPeriod - Smoothing period.
  • MaximumRisk - Risk (it is used if Lots=0).
  • Lots - Lot.
  • DecreaseFactor - Lot reduction factor after losing trades. 0 - reduction disabled. The smaller the value, the greater the reduction. Where it is impossible to reduce the lot size, the minimum lot position is opened.

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1076

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.

Auto Fibonacci Retracement Auto Fibonacci Retracement

Automatically draws Fibonacci retracements on chart.

Example of A Simple Breakout Trading Robot Example of A Simple Breakout Trading Robot

Example of a simple breakout trading robot. There are a lot of breakout methods, but this is the simplest one as I think. Please see the attached images to visualize what is the breakout trading...