Moving average crossover strategy

MQL4 Experts Forex

Trabalho concluído

Tempo de execução 14 dias

Termos de Referência

Moving average crossover strategy

 

We need an Expert Advisor for MetaTrader 4. 

 

It needs to be able to work on different time periods, currency pairs and Moving average indicators (EMA and SMA).

 

Bullet points

 

·      It will use exponential moving average and simple moving average indicators.

·      When moving average cross, it may trigger a sale or buy passion.

·      The actual bar needs to finish to be a certain trade signal. 

·      It needs to be able to work on different time periods. 

·      It needs to be able to work on different currency pairs.

·      Be able to choose different periods for the moving average.

 

Strategy

 

Opening positions

 

a.         When the two moving average cross.

b.        In order it to be a positive trade signal the bar needs to finish. The bar finish and the moving average has crossed. 

c.         It will open a trade on the direction the cross of the moving average point. 

a.         Big moving average below small moving average BUY (Long).

b.        Small moving average below big moving average SELL (short).

d.        Open order post crossing: Set an opening position to the direction the moving average point at a set price in points.

 

Closing positions

 

Tree ways to close a position. We should be able to choose witch one we want.

 

1.         When the moving average change direction, the cross and go to the appositive, Bar needs to finish, it doesn’t close with a single touch. It will close at the closing price.

 

2.         If take profit is meet.

 

3.         If a stop loss is set.

 

4.         Trailing Stop.

Input Parameters

 

§   Lot:  *****

§   Increment lot: if 0%, lot will be always what is defined. If above 0% it will be use in the following formula, “lot x (Actual balance/last trade balanxce) x (1+ increment lot)” = new lot to be use. Increment of balance is “Latest balance ÷ inicial balance”.

§   Take profit: In points, if 0, when moving average change directions.

§   Open Exception: if 0, Bar needs to finish with moving average crossed, if 1 open a trade at the moment they touch.

§   Stop loss: In points, if 0, when moving average change directions

§   Trailing Stop: from stop loss.

§   EMA 1: If 0 means we are using SMA.

§   EMA 2: If 0 means we are using SMA.

§   SMA 1: If 0 means we are using EMA.

§   SMA 2: If 0 means we are using EMA.

§   Open order post crossing: if 0, the closing price of the bar that confirms change direction. If other value, XX points opposite the direction of the trade from the closing price of the bar that confirms change direction.

§   Balance: wallet money


Example 1

 

See Parameters, description and photo.

 

Parameters

 

§   Lot: 0.1

§   Increment lot: 2%

§   Take profit: 15 pips

§   Open Exception: 0

§   Stop loss: 30 pips

§   Trailing Stop: 0

§   EMA 1: 10

§   EMA 2: 40

§   SMA 1: 0

§   SMA 2: 0

§   Open order post crossing: 0

§   Balance 10,500$

 

Time frame: 4h

Pair: EURUSD

Balance before last trade: 10,000$

 

Description

 

1.         EMA 10 and EMA 40 cross. EMA 10 is below EMA 40, it triggers a Sell positions.

2.         Bar closes at 1,0990. An order is place at that price, sell lots 0.1071. (10,500/10,000) x (1 + Increment lot: 2%)

3.         Stop loss and take profit is set.

4.         Price move to take profit and 15 pips 

5.         Expert advisor waits until EMA Cross Again



I would like to have and see the source code.


Thank you!!!!

Arquivos anexados:

JPG
IMG_1074.jpg
610.4 Kb

Respondido

1
Desenvolvedor 1
Classificação
(512)
Projetos
773
63%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
2
Desenvolvedor 2
Classificação
(19)
Projetos
35
26%
Arbitragem
10
30% / 70%
Expirado
5
14%
Livre
3
Desenvolvedor 3
Classificação
(879)
Projetos
1392
67%
Arbitragem
117
32% / 42%
Expirado
215
15%
Livre
4
Desenvolvedor 4
Classificação
(2086)
Projetos
2646
61%
Arbitragem
113
45% / 26%
Expirado
418
16%
Trabalhando
5
Desenvolvedor 5
Classificação
(221)
Projetos
369
66%
Arbitragem
10
50% / 0%
Expirado
46
12%
Livre
6
Desenvolvedor 6
Classificação
(16)
Projetos
32
47%
Arbitragem
1
0% / 100%
Expirado
8
25%
Livre
7
Desenvolvedor 7
Classificação
(19)
Projetos
22
32%
Arbitragem
10
0% / 100%
Expirado
3
14%
Livre
8
Desenvolvedor 8
Classificação
(19)
Projetos
27
11%
Arbitragem
11
9% / 55%
Expirado
12
44%
Livre
9
Desenvolvedor 9
Classificação
(82)
Projetos
86
57%
Arbitragem
25
0% / 84%
Expirado
19
22%
Livre
10
Desenvolvedor 10
Classificação
(277)
Projetos
334
55%
Arbitragem
14
36% / 29%
Expirado
1
0%
Livre
11
Desenvolvedor 11
Classificação
(58)
Projetos
76
33%
Arbitragem
9
78% / 11%
Expirado
7
9%
Livre
Pedidos semelhantes
I want to decompile an ea file and get the source code, i need it really quick as fast as possible. the file must be delivered alongside the source code
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader 1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and Trailing Draw Down options need to be implemented 5. Risk needs to be in % of
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features

Informações sobre o projeto

Orçamento
35+ USD
IVA (21%): 7.35 USD
Total: 42.35 USD
Desenvolvedor
31.5 USD
Prazo
de 3 para 10 dias