Moving average crossover strategy

MQL4 Experts Forex

Tâche terminée

Temps d'exécution 14 jours

Spécifications

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!!!!

Dossiers :

JPG
IMG_1074.jpg
610.4 Kb

Répondu

1
Développeur 1
Évaluation
(513)
Projets
776
63%
Arbitrage
33
27% / 45%
En retard
23
3%
Gratuit
2
Développeur 2
Évaluation
(19)
Projets
35
26%
Arbitrage
10
30% / 70%
En retard
5
14%
Gratuit
3
Développeur 3
Évaluation
(879)
Projets
1394
67%
Arbitrage
117
32% / 42%
En retard
215
15%
Gratuit
4
Développeur 4
Évaluation
(2115)
Projets
2686
62%
Arbitrage
114
46% / 25%
En retard
419
16%
Chargé
5
Développeur 5
Évaluation
(221)
Projets
369
66%
Arbitrage
10
50% / 0%
En retard
46
12%
Gratuit
6
Développeur 6
Évaluation
(16)
Projets
32
47%
Arbitrage
1
0% / 100%
En retard
8
25%
Gratuit
7
Développeur 7
Évaluation
(19)
Projets
22
32%
Arbitrage
10
0% / 100%
En retard
3
14%
Gratuit
8
Développeur 8
Évaluation
(19)
Projets
27
11%
Arbitrage
11
9% / 55%
En retard
12
44%
Gratuit
9
Développeur 9
Évaluation
(82)
Projets
86
57%
Arbitrage
25
0% / 84%
En retard
19
22%
Gratuit
10
Développeur 10
Évaluation
(277)
Projets
334
55%
Arbitrage
14
36% / 29%
En retard
1
0%
Gratuit
11
Développeur 11
Évaluation
(58)
Projets
76
33%
Arbitrage
9
78% / 11%
En retard
7
9%
Gratuit
Commandes similaires
Hello Devs. I need someone who can make for me full Working traders dashboard on MT5. Dashboard functions: Few TPs levels based on pips in profit and/or %. Fixed lot position calculator so i can put for example 40pips SL and ea will calculate Lot size based on my account size. Plus few other features. Need to looks professional not a Old bios program. Please only apply if You have experience in this
Fintech robots 30+ USD
Specification I need a grid ea that puts buy stops and sell stops on the chart (only stops no limits). See image Example: if the price moves up filling the buy stops. The ea should place new sell stops below the price for the set parameters. And vice versa. Also if price moves up it should place new buy stops above the last buy stop. So if the parameter is set to 50 buy stops. There should always be 50 buy stops in
Develop a multi-strategies EA that makes entries based on selectable indicator-based criteria. Each can be toggled on/off, and trades can also be placed using a selectable combination of signals. Each trade position shall be entered on the bar and managed as a modified martingale. Position management will include partial close, variable grid increase as grid number increases, News stops, and a Dashboard for manual
Hello, In need an expert advisor that can copy my CFD (GBPUSD) into Futures 6B, along with AUDUSD. & that whenever I close the position, it closes it aswell. Also if there is limited broker API access, I don't mind getting a broker recommendation
I need an EA that opens trades according to the crossover of Moving Averages. The EA is based on two Moving Averages MA1 and MA2: For every new candle the EA attempts to open a new position, according to the MA crossover direction: If MA1>MA2, open a BUY position If MA1<MA2, open a SELL position There is a limit for current open trades which is also set in the settings. If the number of open trades reaches that
Good day to you sir. Please can you help me with converting an options trading platform to MT4? I am talking about Pocket Options OTC Markets. Please kindly read the WORD DOCUMENT attached to this chat below! Tbh I want a 100% OTC accuracy. I thought of the possibility of converting a chart beyond the live display/execution? Is it possible to display a market on MT4 2 to 3 minutes faster than the live charts? I mean
the code wasn't mine, i have got it somewhere on the web, but i like the performance of the EA, so i want to use it on mt5 platform. the given code based on price movements with ladder entry concept
Preciso de um EA, que faça o fecho automático de operações abertas no final da sessão e nas notícias de alto impacto. Um EA simples com apenas 1 função. Fecho das operações abertas
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Thanks in advance."

Informations sur le projet

Budget
35+ USD
TVA (21%): 7.35 USD
Total: 42.35 USD
Pour le développeur
31.5 USD
Délais
de 3 à 10 jour(s)