MACD cross in Trend

MQL4 Experts

Job finished

Execution time 2 days
Feedback from customer
Great!! Fast and fit the spec perfectly.
Feedback from employee
Thanks for the order, I will be glad to further cooperation.

Specification

Requirements Specification for Programming of MT4 EA

1. EA - entries performed when MACD's main and signal lines have crossed (after candle closed) above or below zero level. Above or below being defined by the level of the signal line of the MACD.

BUY on MACD crossing above signal line when signal line value is < 0.0000 at the close of the crossed candle.

OR

SELL on MACD crossing below signal line when signal line value is > 0.0000 at the close of the crossed candle.


2. Additional filters 

a. Closing Candle value at MACD cross

Additionally at the close of the candle in which the MACD and signal line cross occurred, the closing value of the candle must be above TWO EMA values (x)EMA AND (y)EMA for a BUY or below both (x)EMA AND (y)EMA for a SELL. Where (x) & (y) are variable input parameters - The default values being 100 and 200.

BUY
Therefore, closing value of candle on MACD cross > (x)EMA AND >(y)EMA 
(Default) closing value of candle on MACD cross >200 EMA AND >100 EMA

SELL
Therefore, closing value of candle on MACD cross < (x)EMA AND < (y)EMA
(Default) Closing value of candle on MACD cross < 200 EMA AND < 100 EMA


All values must be calculated on the close of the candle in which the MACD has crossed the signal line. All values to five decimal places for precision.


3. Trading Signals:

Buy signal: On close of candle the main MACD line has crossed the signal line upwards 
Signal Line on close of crossed candle < 0.0000
Closing value of candle on MACD cross > (x)EMA AND >(y)EMA

Sell signal: On close of candle the main MACD line has crossed the signal line downwards 
Signal Line on close of crossed candle > 0.0000
Closing value of candle on MACD cross < (x) EMA AND < (y) EMA




The below figure shows Buy and Sell cases.

BUY
MACD has crossed above signal line on close of candle

Signal Line on close of crossed candle < 0.0000            (-0.00026)

AND Closing value of candle on MACD cross (0.69668)  >200EMA (0.69175) AND > 100EMA(0.69405)

Open Buy position on open of next candle 3 lots

1 lot buy at market 0.69668         
SL = Lowest closing value of previous 14 candles minus 7 pips (0.69249 -0.0007 = 0.69179) (48,9 pips)    (Image 2)                
TP = 1 x SL or 0.70157 (48,9 pips)    

1 lot buy at market 0.69668         
SL = Lowest closing value of previous 14 candles(0.69249 -0.0007 = 0.69179) (48,9 pips)    (Image 2)                
TP = 2 x SL or 0.70646 (97,8 pips)    

1 lot buy at market 0.69668         
SL = Lowest closing value of previous 14 candles(0.69249 -0.0007 = 0.69179) (48,9 pips)    (Image 2)                
TP = 4 x SL or 0.71624 (195,6 pips)    


NB If LOT 1 closes after reaching TP at 0.70157 then move remaining 2 lots SL to BE at 0.69668




SELL
MACD has crossed below signal line on close of candle

Signal Line on close of crossed candle > 0.0000            (0.00047)

AND Closing value of candle on MACD cross (0.69104)  < 200EMA (0.69325) AND < 100EMA(0.69222)

Open Sell position on open of next candle 3 lots

1 lot Sell at market 0.69104         
SL = Lowest closing value of previous 14 candles + 7pips (0.69310 + 0.0007 = 0.69380) (27,6 pips)    (Image 2)                
TP = 1 x SL or 0.68828 (27,6 pips)    

1 lot Sell at market 0.69104         
SL = Lowest closing value of previous 14 candles + 7pips (0.69310 + 0.0007 = 0.69380) (27,6 pips)    (Image 2)                
TP = 2 x SL or 0.68552 (55,2 pips)    


1 lot Sell at market 0.69104         
SL = Lowest closing value of previous 14 candles + 7pips (0.69310 + 0.0007 = 0.69380) (27,6 pips)    (Image 2)                
     TP = 1 x SL or 0.68000 (110,4 pips)    

NB If LOT 1 closes after reaching TP at 0.68828 then move remaining 2 lots SL to BE at 0.69104





4. Trade Specs & Position management
Open 3 LOTS total. 
a. 1 lot open at the market price, when a new bar emerges. SL to be set for a BUY at the lowest closing value of the last 14 candles (not lowest peak but close) -minus 7 pips. SL to be set for a SELL at the highest closing value of the last 14 candles (not highest peak but close) + plus 7 pips. TP to be set at 1:1 Risk/Reward ratio. 

b. 1 lot open at the market price, when a new bar emerges. SL to be set for a BUY at the lowest closing value of the last 14 candles (not lowest peak but close) - 7 pips. SL to be set for a SELL at the highest closing value of the last 14 candles (not highest peak but close) + 7 pips. TP to be set at 1:2 Risk/Reward ratio. 

c. 1 lot open at the market price, when a new bar emerges. SL to be set for a BUY at the lowest closing value of the last 14 candles (not lowest peak but close) - 7 pips. SL to be set for a SELL at the highest closing value of the last 14 candles (not highest peak but close) + 7 pips. TP to be set at 1:4 Risk/Reward ratio. 

d. NB. On successful close of TP in 4a. then SL to be moved to Break Even/Open for other two open lots.

Risk/Reward ratios to be variable as inputs.
No other position exit methods are available.
IF A POSITION IS OPENED ON ONE CURRENCY PAIR NO OTHER POSITION SHALL BE OPENED IN THAT PAIR UNTIL OPEN POSITION IS FULLY CLOSED. i.e ONLY ONE OPEN POSITION MAY EXIST ON ANY CURRENCY PAIR (in any timeframe) AT ANY TIME. 


Variable Input Parameters
1. (x) EMA default value 200
2. (y) EMA default value 100
3. SL/TP (Risk/Reward) ratios LOT 1( 1:1 to be adjustable), LOT 2 (1:2 to be adjustable) , LOT 3 (1:4 to be adjustable)
4. No of LOTS 1 or .1( 1 mini contract) or .2 ( 2 mini contracts) etc. 



























Files:

PNG
Buy_Image1.PNG
385.2 Kb
PNG
Buy_Image_2.PNG
400.0 Kb
PNG
Sell_Image2.PNG
362.4 Kb

Responded

1
Developer 1
Rating
(222)
Projects
355
17%
Arbitration
21
43% / 33%
Overdue
18
5%
Busy
2
Developer 2
Rating
(403)
Projects
708
49%
Arbitration
57
16% / 49%
Overdue
130
18%
Working
3
Developer 3
Rating
(100)
Projects
125
23%
Arbitration
12
0% / 75%
Overdue
22
18%
Free
4
Developer 4
Rating
(45)
Projects
63
52%
Arbitration
3
0% / 0%
Overdue
1
2%
Free
5
Developer 5
Rating
(67)
Projects
112
33%
Arbitration
1
100% / 0%
Overdue
3
3%
Working
6
Developer 6
Rating
(5)
Projects
1
100%
Arbitration
4
0% / 75%
Overdue
0
Working
7
Developer 7
Rating
(97)
Projects
135
52%
Arbitration
4
50% / 50%
Overdue
0
Working
8
Developer 8
Rating
(1100)
Projects
1782
61%
Arbitration
14
64% / 7%
Overdue
84
5%
Free
9
Developer 9
Rating
(490)
Projects
561
33%
Arbitration
27
44% / 44%
Overdue
9
2%
Busy
10
Developer 10
Rating
(300)
Projects
450
65%
Arbitration
5
40% / 0%
Overdue
4
1%
Working
11
Developer 11
Rating
(72)
Projects
80
10%
Arbitration
36
8% / 53%
Overdue
6
8%
Working
Similar orders
Objective Develop an MQL5 Expert Advisor (EA) that: 1. Saves historical economic news data** from MetaTrader’s economic calendar into a `.csv` file for backtesting purposes. 2. Implements news event filtering** for both backtesting and live trading, based on user-defined parameters such as event impact level, currency, and pre/post event trade restrictions. Scope of Work The EA must perform the following tasks: 1
CORREÇÃO NOTIFICAÇÕES Ø O indicador muda a cor dos candles e da MA200 quando ocorre as entradas e é somente nesse momento que ele deve enviar notificação de entrada porem está enviando em outros momentos que não atende as condições conforme imagem abaixo. Ø Sempre que abro o MT5, mudo o time frame ou a plataforma perde conexão o indicador me envia notificações de entradas passadas, o indicador deve enviar
Seb’s EA 2024/25 200 - 500 USD
Primary Agreement Description Details: This EA Strategy is to run on MT4. It has parameters for 2 MA's and 3 momentum indicators along with 22 "variable / constant rules & settings" on 1 time-frame (5 Min). There are 3 versions required to cater for 3 different Instruments (3 US Indexes). The only differences will be the position sizes, Stop levels & Macd bands. There are 3 entry conditions with 3 exit conditions
Hi I have an indicator that i have tried to create an EA with, this is a simple EA that should have bought on green indicator value if previous candle indicator value was yellow. Then it should have sold when indicator value was red with previous value being yellow. Now, i would not say that i am a coder, by any stretch of the imagination, but something this simple should have been easy, instead, the EA would open
Hi, While backtesting using MT4 strategy tester I should be able to close my trade where I want. This will help me with my trading strategy. I need an utility or EA for that. I hope this is a simple task and I will be able to get this completed in 24 hours. I need to see the prototype first. You can lock it with dates. Once I test it, I will move the work to your name and will close the project. NOTE : After I
Hello, I am looking for an indicator for MetaTrader 4 with the characteristics of the indicator shown on the page below. The indicator will be used as a signal provider for binary options. https://www.youtube.com/@trendify.binaryoptions Thank you very much, Luciano Gonzaga
ENGULFING TRAILING STOP GRID MQL5 FULL AUTOMATIC EA AUTOTRADER I WANT AN AUTOTRADER WITH: - AUTOMATED ENGULFING UNLIMITED GRID ORDERS DISTANCE (IN POINTS). - ORDER LOT SIZE FREE MARGING PORCENTAGE (IN POINTS AND DECIMALS - 0.0000000000 UNLIMITED). - CLOSING ORDERS ONLY WITH PROFIT TRAILING STOPS (IN MINIMUM POINTS). **UPDATED EDITION: I WAS ASKING FOR THE CORRECTION OF MY CREATION WITH AI ASSISTS (CHATGPT AND GOOGLE
Hi Auto trading robot in mt4 need to be develop simple price action strategy i can pay 30 usd for this interested coder can ask for more details then i can share strategy details who is ready to do it
i am looking for experienced programmers who can help me out make my expert with zero lags and run smoothly and develop it in any possible way that make the accuracy way higher i need in addition to make this expert advisor linked on mt4 and mt5 also link the ea to WhatsApp and telegram bot where it giveS signals of the expert on it
Mr fano 30+ USD
I want a robot that will teach me how to be a good Forex trader, teach me the necessary requirements,and also teach me how the save. And a robot that will understand my needs and support me when I'm lost or don't understand a certain thing.. The robot should have good trading skills. Thank you

Project information

Budget
80 - 100 USD
For the developer
72 - 90 USD
Deadline
from 5 to 10 day(s)