Simple MACD histogram strategy

Auftrag beendet

Ausführungszeit 4 Tage

Spezifikation

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).

 

Dateien:

Bewerbungen

1
Entwickler 1
Bewertung
(173)
Projekte
201
49%
Schlichtung
18
11% / 44%
Frist nicht eingehalten
1
0%
Frei
2
Entwickler 2
Bewertung
(250)
Projekte
460
26%
Schlichtung
140
20% / 59%
Frist nicht eingehalten
100
22%
Arbeitet
3
Entwickler 3
Bewertung
(1121)
Projekte
1809
61%
Schlichtung
14
64% / 7%
Frist nicht eingehalten
84
5%
Frei
4
Entwickler 4
Bewertung
(130)
Projekte
184
32%
Schlichtung
18
28% / 67%
Frist nicht eingehalten
27
15%
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
(221)
Projekte
369
66%
Schlichtung
10
50% / 0%
Frist nicht eingehalten
46
12%
Frei
6
Entwickler 6
Bewertung
(1929)
Projekte
3550
88%
Schlichtung
73
40% / 15%
Frist nicht eingehalten
268
8%
Frei
7
Entwickler 7
Bewertung
(574)
Projekte
945
47%
Schlichtung
309
58% / 27%
Frist nicht eingehalten
125
13%
Frei
8
Entwickler 8
Bewertung
(144)
Projekte
168
49%
Schlichtung
22
14% / 55%
Frist nicht eingehalten
22
13%
Arbeitet
9
Entwickler 9
Bewertung
(361)
Projekte
643
26%
Schlichtung
92
72% / 14%
Frist nicht eingehalten
12
2%
Arbeitet
Veröffentlicht: 1 Beispiel
10
Entwickler 10
Bewertung
(2643)
Projekte
3359
68%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
342
10%
Frei
Veröffentlicht: 1 Beispiel
11
Entwickler 11
Bewertung
(69)
Projekte
146
34%
Schlichtung
13
8% / 62%
Frist nicht eingehalten
26
18%
Frei
Veröffentlicht: 6 Beispiele
12
Entwickler 12
Bewertung
(33)
Projekte
35
40%
Schlichtung
11
9% / 91%
Frist nicht eingehalten
4
11%
Frei
Veröffentlicht: 4 Beispiele
13
Entwickler 13
Bewertung
(5)
Projekte
4
25%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
1
25%
Frei
Ähnliche Aufträge
Hello, Please read the full specification before applying. This project is NOT about building an EA from scratch. I already have a fully working MT5 Expert Advisor. The EA already includes a dashboard, risk management, and some protection systems, but it needs a few more features . So I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy
Copying third party from telegram. I have quite a number of them There is many different of them, I will consolidate all of them and send you Usually is a price range, so when hit the range will trigger Option for both fix or scale with equity I would like to have both, option to choose to follow the SL/TP signal provided or not This copier will trigger my DCA bot function. So don’t need set max position limit and
can you help me with editing the existing ATR Trailing Stop Indicator to include a logic to include additional script, where my ninZaRenko bars when it closes above OR below the dynamic stop line, I will be out of trade. Please remember, in this Indicator, now when the price touches the stop line, I am stopped out .. . I want to edit the script, in lieu of the price touch, I like to update this logic to when the bar
TORUNZ 😎 30+ USD
The robot should use different indicators for a example smart money indicator and market structure structure and break indicators in order for it to enter the market, it should also be able to tell false breakouts is the Bollinger indicator, and if the market is confirmed to be profitable,the robot should rebuy or resell the market according to the predictions made, it should execute the trades if the market reverses
I need an advisor created that opens a position with 0.10 lot size when a bull cross arrow appears on the m5 time frame and closes the trade after exactly one candle stick, the ea does the same thing over and over, a bull cross appear on m5 timeframe, and it opens 1 position with 0.10 lot size, and closes it after one candlestick on m5... If possible, provide a demo version
Description I am looking for an experienced MQL5 developer to investigate and fix a suspected memory or resource usage issue in my MT5 Expert Advisor. The EA itself works correctly from a strategy and trading logic perspective . The trading model must remain exactly as it currently operates. I am not looking for any changes or optimisation to the strategy . The goal of this job is purely to identify and fix a
Cash Flow EA 30+ USD
I want a trading robot with proper risk management and good trading strategies it must make money ,place stop loss below the entry and place a take profit no loss only wins mostly trade major
Busco un robot para trading de scalping en oro o forex, el robot debe ser rentable en esos mercados, podemos automatizar mi estrategia basada en medias móviles con estrategia de scalping o bien si él desarollador tiene uno que funcione así y sea rentable podemos ver la opción de un demo o cuenta de lectura para estar seguros de la rentabilidad en el robot
MT4 EA TO TAKE TRADES FROM (A) HYDRA TREND RIDER AND (B) IQ GOLD GANN LEVELS ON MQL5.COM The MT4 version of these two indicators can be found on the mql5.com website with the following links: Hydra Trend Rider: https://www.mql5.com/en/market/product/111010?source=Site +Profile+Seller IQ Gold Gann Levels: https://www.mql5.com/en/market/product/134335?source=Site +Profile+Seller (1) ENTRY (a) Hydra Trend Rider
I have a strategy for US100 where I want a bot to trade according to my strategy, contact me who have proven experience in making bots for MT4 or MT5

Projektdetails

Budget
50 - 100 USD
Ausführungsfristen
von 3 bis 6 Tag(e)