MACD Sample Expert Advisor

Tarea técnica

1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction.

2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is below the previous one, the trend is considered to be falling (ema_current< ema_previous).

3. Trading Signals:

  • Buy signal: the main MACD line crosses the signal line upwards (macd_current>signal_current && macd_previous<signal_previous).
  • Sell signal: the main MACD line crosses the signal line downwards (macd_current<signal_current && macd_previous>signal_previous). The below figure shows Buy and Sell cases.

4. Positions are closed at opposite signals: Buy positions are closed at Sell signals, and Sell positions are closed at Buy signals.

5. Positions are opened at the market price, when a new bar emerges. The Expert Advisor is to be tested using Open prices, so there is no need to add functions for disabling operations inside the bar.

6. Additional filters for opening a position:

The absolute value of MACD's main line will be used to filter out weak signals: the signal is only confirmed if this value is greater than open_level (in points). Signal confirmation conditions are as follows:

  • Confirmation of a buy signal: Abs(macd_current)>open_level
  • Confirmation of a sell signal: macd_current>open_level

7. Additional filters for closing a position:

The absolute value of MACD's main line will also be used to confirm position closure: the signal is confirmed if this value is greater than close_level (in points). Close signal confirmation conditions are as follows:

  • Confirmation to close Buy positions — macd_current>close_level
  • Confirmation to close Sell positions — Abs(macd_current)>close_level

8. Close by Take Profit — during position opening, a Take Profit level is set at a fixed distance from the open price, specified in points. The value is set in the InpTakeProfit input parameter.

9. Position management

TrailngStop is used to protect profit. Stop Loss is set if profit in points exceeds the value specified in the InpTrailingStop parameter. If the price continues to move in the profit direction, Stop Loss should be trailed at the given distance. Stop Loss cannot be moved towards the loss direction, i.e. the Stop Loss value cannot be increased. If none of protective orders (Take Profit or Stop Loss) triggers, the position should be closed by an opposite signal. No other position exit methods are available.



Han respondido

1
Desarrollador 1
Evaluación
(202)
Proyectos
206
27%
Arbitraje
0
Caducado
3
1%
Libre
2
Desarrollador 2
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(79)
Proyectos
111
37%
Arbitraje
0
Caducado
4
4%
Libre
4
Desarrollador 4
Evaluación
(34)
Proyectos
60
23%
Arbitraje
11
73% / 9%
Caducado
3
5%
Libre
5
Desarrollador 5
Evaluación
(243)
Proyectos
430
34%
Arbitraje
54
37% / 39%
Caducado
157
37%
Trabajando
6
Desarrollador 6
Evaluación
(302)
Proyectos
383
20%
Arbitraje
43
60% / 23%
Caducado
45
12%
Trabajando
7
Desarrollador 7
Evaluación
(49)
Proyectos
62
40%
Arbitraje
1
0% / 100%
Caducado
7
11%
Trabaja
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(71)
Proyectos
80
10%
Arbitraje
35
9% / 54%
Caducado
6
8%
Trabaja
10
Desarrollador 10
Evaluación
(124)
Proyectos
158
42%
Arbitraje
20
60% / 20%
Caducado
8
5%
Libre
11
Desarrollador 11
Evaluación
(568)
Proyectos
641
41%
Arbitraje
21
57% / 29%
Caducado
47
7%
Trabaja
12
Desarrollador 12
Evaluación
(549)
Proyectos
1332
59%
Arbitraje
28
82% / 0%
Caducado
10
1%
Libre
13
Desarrollador 13
Evaluación
(119)
Proyectos
169
38%
Arbitraje
9
78% / 22%
Caducado
15
9%
Libre
14
Desarrollador 14
Evaluación
(66)
Proyectos
143
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
15
Desarrollador 15
Evaluación
(563)
Proyectos
932
47%
Arbitraje
302
59% / 25%
Caducado
124
13%
Trabajando
Solicitudes similares
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hey greetings. Am in need of a developer that has already made profitable MT4 or MT5 EA that I can buy with the backtesting and proven result. How is the draw down ? What is the winning rate ? Kindly reply and let proceed
I will buy your EA for MT5, in case that on distance it is able to make a profit of 10% per month. - Martingale methods and grid strategies should not be used as the basis of a trading strategy. - Excellent win rate (>80%) - High risk/loss management - Option to select direction of trading (long, short or both) - News filter - Editable Trading Hours I will need to test in the strategy tester and on live market (on
Hello, i need a good programmer; to code an EA to trade the most productive forex pairs (mainly 2 for the day, and 2 for the night+gold), the strategy is based on the use of one moving average and the rsi, thank you in advance
Arafat 30 - 80 USD
Offre valable uniquement pour avoir des nouvelles de votre réponse rapide de votre aide cordialement mme le quartier de votre avis sur les vacances scolaires et les activités de votre réponse
Hello, I want to create an EA with the belowspecification. EA will check conditions based on following input parameters: ● High Price ● Low Price ● Move Value (in Price) ● Gap (in price) After start, EA will mark High and Low prices based on input parameters. EA will start trading when the current price will hit any of the price POSITION at High , Low, Control Buy or Control Sell . EA will open
I am interested in creating an EA, I already have the code but I need someone who can debug it make it more greater look more into the strategy and put more strategy modification and modeling and optimization to make it great also at same time debug it
hi. I hv a strategy on tradingview need to convert to mt4/mt5 expert advisor for algo trading. would like to add some tradingview strategy setting to the mt4/mt5 EA(not included in my tradingview source code): recalculate after order is filled, order size: xx% of equity
Hey greetings. Am in need of a tradingview developer that can add a simple alert to my existing tradingview indicator with a simple conditions. Kindly bid for the project if it is what you can do for me and let proceed

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 5 a 15 día(s)