EA simple for Metatrader5

MQL5 Asesores Expertos Fórex

Trabajo finalizado

Plazo de ejecución 5 días

Tarea técnica


Expert Advisor for MT5 for a demo account and after testing for a real account - General description:

I need an Expert Advisor for the MetaTrader 5 . The EA is said to trade in the major currency pairs, indices and gold.
The market entry signal is based on 2 indicators, provided that an indicator confirms the respective signals as a filter. The filter has a higher time frame than the signal indicators.
The positions are closed by a stop loss or an indicator signal to close.
It must also be possible with the EA to run both one or two currency pairs as well as an index or gold at the same time.
When an order is placed (position opening), it must be assigned a number (Magic), after which it can be distinguished from all other orders.
In a chart, there are either long positions or short positions.
The number of open positions of one currency in an open chart must be shown separately for buy and sell positions in the opened chart.
The use of candles generally assumes the closing of a candle unless another condition is explicitly required (open, high, low).
In a chart, there are either long positions or short positions.
The use of candles generally assumes the closing of a candle unless another condition is explicitly required (open, high, low).

1. signal to open a position

Two Triple Exponential Moving Average indicators (TEMA_fast and TEMA_slow) provide buy or sell signals as  as the Tenkan-Sen line of the Ichimoku Kinko Hyo indicator confirms the respective signals as a filter (all indicator parameters should be adjustable). The filter has a higher time frame than the Triple Exponential Moving Average indicators. The triggering of the signals for the opening of  or short positions should take place at the latest with the following candle.
For the Tenkan-Sen filter of the Ichimoku Kinko Hyo indicator, a different timeframe must be adjustable in the input variables by the EA.

Long: Triple Exponential Moving Average  (TEMA_fast) is above Triple Exponential Moving Average (TEMA_slow) and Tenkan-Sen of the Ichimoku Kinko Hyo-Indikators with a higher timeframe is going up ( Tenkan-Sen of the Ichimoku Kinko Hyo-Indikators at candle1 > Tenkan-Sen of the Ichimoku Kinko Hyo-Indikators at candle2)

Short: Triple Exponential Moving Average  (TEMA_fast) is below Triple Exponential Moving Average (TEMA_slow) and Tenkan-Sen of the Ichimoku Kinko Hyo-Indikators with a higher timeframe is going down ( Tenkan-Sen of the Ichimoku Kinko Hyo-Indikators at candle1 < Tenkan-Sen of the Ichimoku Kinko Hyo-Indikators at candle2)

2. Signal to close a position

There may be several long or short positions open. Close all open  or short positions in one chart of a currency (index or gold) when the Triple Exponential Moving Average indicator (TEMA_close) changes direction (all indicator parameters should be customizable).

Close for long positions: Triple Exponential Moving Average (TEMA_close) candle 1 < candle 2 = > candle 3
Close for short positions: Triple Exponential Moving Average (TEMA_close) candle 1 > candle 2 = < candle 3

3. StopLoss (SL) is either fixed or customizable by means of the parameter StopLoss for which a suitable indicator is to be selected:

The levels are calculated in relation to the price of the open position (the ask price - for the  positions - and the bid price - for the short positions);
If the value is too low, the stop should be set within a permissible minimum distance;
If the "0" values ​​are specified, the stops will not be used.

4. The position volume is calculated as either fixed or as a percentage of the current balance: Lot = Balance / NecessaryMarge * LotProcess / 100, where:
  Balance - current account balance;
  Necessary margin - the margin necessary to open a position of the size of 1 pound;
  PostPercent - an input parameter (the percentage used to calculate the post).

5. several open positions
If there is one or more open positions in a chart and an opposite signal occurs, the opened position must be closed and a new one opened (in the opposite direction).
For a new position, the calculation of the item must be called after closing the open position.

6. Miscellaneous
When the Expert Advisor is running, it should append the indicators used with the specified parameters;
The information for opening / closing positions and changes to the StopLoss should be stored in the log;
Should there be any errors, the EA must issue a message describing the error.
All program lines of the EA must be explained behind  "//".


Comment function in the chart picture:
  total open position volume
  total open positions
  Number of all open positions
  Number of open buy positions of the currency in the opened chart
  Number of open sell positions of the currency in the open chart

variables:
  Magic
  position volume

The trading robot should be adjustable with input variables :
  input TEMA_fast (for example 14 and all other parameters)
  input TEMA_slow (for example 22 and all other parameters)
  input Tenkan-Sen_filter with default setting and all other parameters
  input TEMA_close (for example 10 and all other parameters)
  input ENUM_TIMEFRAMES only for Tenkan-Sen of the Ichimoku Kinko hyo-indicator filter (for example 60 minutes)
  input position size (fixed or percentage)
  input maximum number of all open positions of all currencies, indices and gold (for example, positions total 10)
  input maximum number of open buy positions in a currency (for example, max  open buy positions 3)
  input maximum number of open sell positions in a currency (for example, max open sell positions 3)
  input StopLoss (for Stop Loss a suitable indicator should be selected)
  Input BreakEven plus X points (for example 20 points above the break even)

If the "0" values ​​are specified, the input variable  will not be used.

Han respondido

1
Desarrollador 1
Evaluación
(2463)
Proyectos
3101
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
2
Desarrollador 2
Evaluación
(414)
Proyectos
670
33%
Arbitraje
60
17% / 32%
Caducado
113
17%
Trabaja

Información sobre el proyecto

Presupuesto
50 - 110 USD
IVA (19%): 9.5 - 20.9 USD
Total: 59.5 - 130.9 USD
Para el ejecutor
45 - 99 USD
Plazo límite de ejecución
de 2 a 5 día(s)