Simple MACD histogram strategy

Работа завершена

Время выполнения 4 дня

Техническое задание

We need an Expert Advisor for MetaTrader 4. 

 

It needs to be able to work on different time periods, currency pairs,  and MADC indicator.

 

Bullet points

 

·     It only opens one trade each time Macd Histogram change direction (+ to - or -to +).

·     If a trade is close before Macd histogram change directions, because it meets take profit, it will not open a new trade until Macd histogram change direction and parameters are meet. 

·     It closes a trade when Macd Histogram change direction or by a stop loss.

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

 

Strategy

 

Opening positions

 

a.        When Macd Histogram change from negative to positive or positive to negative.

b.       In order it to be a positive trade signal the bar needs to finish. 

c.        It will open a trade in the direction of Macd Histogram (positive long and negative short). 

d.       It will only open one trade each time Macd Histogram change direction, if the trade meet objective it will wait until Macd Histogram change direction again.

e.        The Macd histogram change direction must be in the trading hours and minutes.

f.          If Macd Histogram level is set, Macd histogram will need to cross this line and finish the actual bar in order to be a positive trade signal.

 

There are two types of entries; at closing price of the bar or chosen distance from the closing price of the bar. 

 

1.        At closing price of the bar: it will open a limit order with the closing price of the previous bar.

 

2.        “Open order win” parameter. Chosen distance from the closing price of the bar: limit order is set up XX (defined points on expert properties) points opposite the direction of the trade.

 

Closing positions

 

a.        When Macd Histogram change from negative to positive or positive to negative.

b.       In order it to be a positive trade signal the bar needs to finish. 

c.        It can close a position after hours if the conditions are met.

 

There are three options for closing trade; when Macd Histogram change direction, stop loss or trailing stop loss.

 

1.        Macd Histogram change direction and is confirmed by finishing a Bar on Macd Histogram change direction: it creates a market order.

2.        Stop loss, if conditions of pint 1 are meet before stop loss it must close position as option 1.

3.        Trailing stop is set. Same as point number 2. 

 

 

Pending orders removing

 

When Macd histogram change direction limit orders need to be close. Open orders may not meet, they need to be close when Macd histogram has change direction.

 

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 (increment of balance) x increment lot” equals new lot to be use. Increment of balance is “Latest balance ÷ previous balance”.

§  Take profit: In points, if 0, when the Macd Histogram change directions

§  Stop loss: In points, if 0, when the Macd Histogram change directions

§  Trailing Stop: in points from profit

§  Start Hour: when robot starts to work

§  Start Min: when robot starts to work

§  End Hour: No open order is set, only closing trades after this time

§  End Min: No open order is set, only closing trades after this time

§  Macd Histogram Level entry: the value of the histogram, it is shown as an absolute number, but in short trades it will be negative

§  Macd Histogram Level close: this level will be use when closing trades. The value of the histogram, it is shown as an absolute number, but in short trades it will be negative

§  Fast EMA period: 12 (by default)

§  Slow EMA period: 26 (by default)

§  MACD SMA: 9 (by default)

§  Open order win: 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.


Example 1

 

Parameters

 

§  Lot: 0.1

§  Increment lot: 50%

§  Take profit: 75

§  Stop loss: 0

§  Trailing Stop: 0

§  Start Hour: 07:00

§  Start Min: 00:30

§  End Hour: 15:00

§  End Min: 00:00

§  Macd Histogram Level entry: 20

§  Macd Histogram Level close: 0

§  Fast EMA period: 12

§  Slow EMA period: 26

§  MACD SMA: 9

§  Open order win: 0

 

1.        Macd histogram breaks positive after being in negative (It happens after Start Hour 07:00). 

2.        Macd histogram breaks Level entry and finish above.

3.        It finishes above entry level line, it triggers an open order at closing price of the bar, price 1.1537, for 0.1 lots X “0.1 x (increment of the deposit) x increment lot @ 50%”.

4.        Open order is meet and a trade is open. Price goes to 1.1548, as take profit is meet, it triggers a “market order”, position is close with profit. Macd histogram still above entry lever line and there is no trade open, it doesn’t open any more open order. It will only open one single open order each time macd histogram enters into a new direction.

5.        Macd histograms breaks negative after being in positive. 

6.        Macd histogram breaks Level entry, and finish below.

7.        It finishes below entry level line, it triggers an open order at closing price of the bar, price 1.1519 X “0.1 x (increment of the deposit) x increment lot @ 50%”. 

8.        Open order is meet and a trade is open. Price goes to 1.1455, as take profit is meet, it triggers a “market order”, position is close with profit. Macd histogram still below entry lever line and there is no trade open, it doesn’t open any more open order or trades. It will only open one single open order each time macd histogram enters into a new direction.


 

Example 2

 

Parameters

 

§  Lot: 0.1

§  Increment lot: 50%

§  Take profit: 0

§  Stop loss: 0

§  Trailing Stop: 0

§  Start Hour: 07:00

§  Start Min: 00:30

§  End Hour: 15:00

§  End Min: 00:00

§  Macd Histogram Level entry: 0

§  Macd Histogram Level close: 0

§  Fast EMA period: 12

§  Slow EMA period: 26

§  MACD SMA: 9

§  Open order win: 30

 

1.        Macd histogram breaks positive after being in negative (It happens after Start Hour 07:00). 

2.        Bar finish and Macd histogram end on positive, it confirms direction change. Open order is set, as “open order” parameter is set at 30, it means; (closing price 1.15270 – 30 = 1.15240). Open order at 1.15240 is met and trade is open.

3.        Macd histogram breaks into negative from positive and finish on negative, it confirms direction change.

4.        A market order is executed to close the buy trade, it trigged at closing price 1.15280. it generates a profit of 40 points. (no spread or market order is taken in account for this example)

5.        Open order is set with an open order win of 30, closing price of the bar at 1.15280 + 30 = 1.15310. Look that as this is a sell order the “open order win” needs to be sum. It looks like open order is meet and a sell trade is on.

6.        Macd histogram breaks positive and change direction is confirm as bar finish. This is happening after “end hour”, so the robot will only be executing market orders and not open orders. 

7.        Market order is executed at closing price of 1.14750 giving a profit of 560 points (56 pips).

 

Файлы:

Откликнулись

1
Разработчик 1
Оценка
(173)
Проекты
201
49%
Арбитраж
18
11% / 44%
Просрочено
1
0%
Свободен
2
Разработчик 2
Оценка
(236)
Проекты
440
26%
Арбитраж
125
21% / 57%
Просрочено
96
22%
Работает
3
Разработчик 3
Оценка
(1096)
Проекты
1777
61%
Арбитраж
14
64% / 7%
Просрочено
84
5%
Свободен
4
Разработчик 4
Оценка
(130)
Проекты
184
32%
Арбитраж
16
31% / 63%
Просрочено
27
15%
Свободен
5
Разработчик 5
Оценка
(221)
Проекты
369
66%
Арбитраж
10
50% / 0%
Просрочено
46
12%
Свободен
6
Разработчик 6
Оценка
(1855)
Проекты
3458
88%
Арбитраж
73
40% / 15%
Просрочено
265
8%
Работает
7
Разработчик 7
Оценка
(563)
Проекты
932
47%
Арбитраж
302
59% / 25%
Просрочено
124
13%
Загружен
8
Разработчик 8
Оценка
(108)
Проекты
138
43%
Арбитраж
19
16% / 53%
Просрочено
20
14%
Загружен
9
Разработчик 9
Оценка
(356)
Проекты
632
26%
Арбитраж
89
73% / 13%
Просрочено
12
2%
Свободен
10
Разработчик 10
Оценка
(2428)
Проекты
3057
66%
Арбитраж
77
48% / 14%
Просрочено
340
11%
Работает
11
Разработчик 11
Оценка
(66)
Проекты
143
34%
Арбитраж
10
10% / 60%
Просрочено
26
18%
Свободен
12
Разработчик 12
Оценка
(33)
Проекты
35
40%
Арбитраж
11
9% / 91%
Просрочено
4
11%
Свободен
13
Разработчик 13
Оценка
(5)
Проекты
4
25%
Арбитраж
2
0% / 100%
Просрочено
1
25%
Свободен
Похожие заказы
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
Title : Looking for MQL5 Developer for EA to Lose Trades Description: We need an MQL5 developer to create an Expert Advisor (EA) that consistently loses trades on a demo account. This will help us profit using a reverse trading system on a funded account. Project Overview : • Account Size : $15,000 • Daily Loss Target: $1,000 or more • No Winning Trades : The EA should not generate any wins . • Market Instruments
I am looking for an MT4 coder who can help me build a fast trade execution EA/ programme. This programme should be able to execute market and pending orders at the highest speed possible. When applied to the chart it should print two horizontal lines (with price tags) on the chart, one is an entry price line, and the other is a stoploss price line. The user should be able to drag the lines up and down to set accurate
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 Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
This is not an EA that actually opens/closes trades. Instead this project involves creating a dashboard where the user can create a grid trade scenario with initial entry and scale trade pip distances, lot sizes for each trade, and draw down amount. It then calculates the break-even + profit level where all trades would close. For each new scale trade the BE+ point is recalculated which is then displayed on the
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 I need a very simple indicator This indicator should show the highest floating or history drawdown of the account It means that it can display the highest number that the account drawdown to be displayed on the chart in this format max drawdown account(xxxx$$) ...date(00/00/00)time:(00:00) max drawdown currency ..( currency name with max drwadown) . (xxxx$$) date(00/00/00)time:(00:00) thanks

Информация о проекте

Бюджет
50 - 100 USD
VAT (21%): 10.5 - 21 USD
Итого: 60.5 - 121 USD
Исполнителю
45 - 90 USD
Сроки выполнения
от 3 до 6 дн.