Modification of existing TDI-MACD Expert Advisor

2019.12.04 Indicators Experts

Specification

Can someone help to find out why the MACD portion on this EA is not working, I have tried changing all inputs on only the MACD parameters but I keep getting the same entries when backtesting.

I have basically got the coded EA with basically all the features I require, I will attach a copy of the EA so you can see it, It seems as if the MACD part does not seem to work when I do backtesting(on the stratergy tester). The following where the initial specifications i provided the coder with:

Original TDI Expert Advisor Specifications::

I am looking for an Expert Advisor that will use the TDI indicator to open buy/sell market orders

· Traders Dynamic Index(TDI). Here is the link to download the TDI indicator source code:  https://www.earnforex.com/metatrader-indicators/Traders-Dynamic-Index/

The EA must use two timeframes to confirm the buy/sell entry(The currently opened timeframe and an optional higher timeframe.

The EA must only open buy/sell orders when the following conditions are met on the closing of the current candlestick on the current open timeframe.

For Buy condition the following two conditions should be met



1. TDI green line must cross over the red line(on the currently open timeframe) EA must open order at point of crossover

2. And TDI green line must be anywhere ontop of the red line(on the optional higher timeframe)



For Sell condition the following two conditions should be met



1. TDI red line must cross over the green line(on the currently open timeframe) EA must open order at point of crossover

2. And TDI red line must be anywhere ontop of the green line(on the optional higher timeframe)



N.B Another order can only be opened when the current order is closed



ALL TDI PARAMETERS SHOULD BE USER DEFINED(These parameters will be applied to both the currently opened timeframe and the optional higher timeframe):

RSI Period = user defined

RSI Price = user defined

Volatility band = user defined

StdDev = user defined

RSI Price line = user defined

RSI Price type = user defined

Trade Signal line = user defined

Trade Signal type = user defined



THE FOLLOWING ADDITIONAL PARAMETERS SHOULD BE USER DEFINED

Stop Loss = user defined

Take profit = user defined

Break even option = user defined

Manual Lot site for each trade = user defined

Automatic Lot size(calculated using percentage of equity) = user defined

Magic number for trades

Number of trades per single entry(example entre with 3 trades on one entry)

Option to select trade direction(only buy or only sell)

Optional time frame to confirm entry




Addition to Original TDI Expert Advisor Specifications::

I am looking for an additional indicator to be added to the original Expert advisor which was designed according to the specifications above(Original TDI Expert Advisor Specifications). The following indicator should be added to the original Expert Advisor.

· TIPU MACD indicator. Here is the link to download the TIPU MACD indicator source code:

https://www.mql5.com/en/code/18270

N.B The TIPU MACD has four distinctive colours on its histogram(Dark red, Light red, Dark green, Light green)

Below are the buy and sell conditions that should be met for a trade to be executed by the new modified EA. Point 3 highlighted in blue below is the additional point that includes the TIPU MACD indicator that should be added.



For Buy condition the following conditions should be met

1. The TDI green line must cross over the red line(on the currently open timeframe) EA must open order at point of crossover

2. And the TDI green line must be anywhere ontop of the red line(on the optional higher timeframe)

3. The Previous histogram on the TIPU MACD on the currently open timeframe should be light red







For Sell condition the following conditions should be met

1. TDI red line must cross over the green line(on the currently open timeframe) EA must open order at point of crossover

2. And TDI red line must be anywhere ontop of the green line(on the optional higher timeframe)

3. The Previous histogram on the TIPU MACD on the currently open timeframe should be light green.




Can someone assist and find out why the MACD portion on this EA is not working, I have taken one currency pair on a specific time duration and tried to input different inputs on only the MACD parameters but my entries never seem to change each time during the backtesting.


The following are attachments of the EA which was coded by the coder:






20:31


Responded

1
Developer 1
2019.12.04
Rating
5
(73)
Projects
88
31%
Arbitration
2
50% / 50%
Overdue
3
3%
Working
2
Developer 2
Yesterday
Rating
4.78
(9)
Projects
9
22%
Arbitration
2
0% / 100%
Overdue
2
22%
Working
3
Developer 3
Yesterday
Rating
4.99
(220)
Projects
298
64%
Arbitration
4
25% / 50%
Overdue
11
4%
Free
4
Developer 4
Yesterday
Rating
4.91
(101)
Projects
137
43%
Arbitration
7
29% / 29%
Overdue
4
3%
Busy
5
Developer 5
Yesterday
Rating
4.69
(13)
Projects
19
26%
Arbitration
6
17% / 50%
Overdue
4
21%
Working

Project information

Budget
30+ USD
For the developer
27 USD
Deadlines
from 1 to 5 day(s)