Simple MACD histogram strategy

Lavoro terminato

Tempo di esecuzione 4 giorni

Specifiche

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

 

File:

Con risposta

1
Sviluppatore 1
Valutazioni
(173)
Progetti
201
49%
Arbitraggio
18
11% / 44%
In ritardo
1
0%
Gratuito
2
Sviluppatore 2
Valutazioni
(236)
Progetti
440
26%
Arbitraggio
125
21% / 57%
In ritardo
96
22%
In elaborazione
3
Sviluppatore 3
Valutazioni
(1100)
Progetti
1782
61%
Arbitraggio
14
64% / 7%
In ritardo
84
5%
Gratuito
4
Sviluppatore 4
Valutazioni
(130)
Progetti
184
32%
Arbitraggio
16
31% / 63%
In ritardo
27
15%
Gratuito
5
Sviluppatore 5
Valutazioni
(221)
Progetti
369
66%
Arbitraggio
10
50% / 0%
In ritardo
46
12%
Gratuito
6
Sviluppatore 6
Valutazioni
(1859)
Progetti
3463
88%
Arbitraggio
73
40% / 15%
In ritardo
265
8%
Gratuito
7
Sviluppatore 7
Valutazioni
(564)
Progetti
933
47%
Arbitraggio
302
59% / 25%
In ritardo
125
13%
Caricato
8
Sviluppatore 8
Valutazioni
(109)
Progetti
140
44%
Arbitraggio
19
16% / 53%
In ritardo
20
14%
Caricato
9
Sviluppatore 9
Valutazioni
(356)
Progetti
632
26%
Arbitraggio
89
73% / 13%
In ritardo
12
2%
Gratuito
10
Sviluppatore 10
Valutazioni
(2441)
Progetti
3076
66%
Arbitraggio
77
48% / 14%
In ritardo
340
11%
Gratuito
11
Sviluppatore 11
Valutazioni
(66)
Progetti
143
34%
Arbitraggio
10
10% / 60%
In ritardo
26
18%
Gratuito
12
Sviluppatore 12
Valutazioni
(33)
Progetti
35
40%
Arbitraggio
11
9% / 91%
In ritardo
4
11%
Gratuito
13
Sviluppatore 13
Valutazioni
(5)
Progetti
4
25%
Arbitraggio
2
0% / 100%
In ritardo
1
25%
Gratuito
Ordini simili
MT5 中运行的 EA 的主要任务 : 1 EA 将同时选择两对货币进行交易,包括 AUDUSD 、 EURUSD 、 GBPUSD 、 NZDUSD 、 USDCAD 、 USDCHF 、 USDJPY 、 AUDJPY 、 EURAUD 、 EURJPY 、 GBPJPY 、 GBPNZD 和 GBPCHF ,默认设置 GBPUSD 、 EURAUD 。 2 蜡烛图 的时间 区间 包括 15M 、 30M 、 1H 、 2H 、 4H 或 1D 。对于两对货币中的 每一对而言, 将同时密切观察两个 时间区间图。 也就是说,两对 货币 同时 打开 四个窗口,每对默认设置 15M 和 4H 。 如果 您 不肯定如何 为同一货币对打开两个窗口,请不要考虑接受这项工作 。 3 将使用自主开发的指标 CMA 结合 CCI 预测走势。 在某些特殊情况下 ,将使用 马丁格尔策略进行操作。因此,如果您已经拥有基于 Martingale
Required to develop expert advisory which will work on any pair including crypto , forex, gold, silver, oil, simple stragy which will work on RSI,GRID, take profit, grid distance, start and stop button, only buy and only sell, filter for time frame Like 5m to 4 hr. stop loss and take profit .Detail will be shared once you except order
I need to fix the alerts of my SMC Order Blocks indicator, which is a custom indicator created for me some time ago. This custom indicator already has several types of alerts built-in, but I need to fix specific ones while keeping the other existing alerts unchanged, as those do not have any errors. The alert is for a specific Order Blocks pattern. This indicator graphically provides a zigzag, and from there, CHoCH
Mobile robot 50 - 100 USD
I want a profitable scalping EA robot for mt5 and mobile phones (licence key should be provided).the video link attached below indicates how the EA robot should operate it.it analyses the market before taking trades and it trades candle to candle .also coding samples are provided on the video .it should be applicable to all timeframes.it should trade indices(Nas100,US30,S&p500,GER30,)
Martingale EA for MT5 30 - 100 USD
Criteria: Only one trade at a time. Cannot open another trade if one is running Trade on EURUSD only, once job is completed I will be happy to schedule more for other pairs You choose entry strategy and criteria win rate must be above 50% in long term backtest of EURUSD Every trade has got TP and SL Trades to last about a day, few trades a week, at least 10 pips gain per trade, so that it can be launched on normal
I have a indicator, mql file. The signals are seen below on a EURNZD H1 chart. Very important to get accurate entries. The signal to trade is the first tic after the the indicator signal paints. I've tried to demonstrate that below. Other than that the EA will have a lot size escalation, an on-screen pip counter, a button to stop taking new trades, SL/TP, and magic number. I would like the indicator to be within the
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
I want grate robot for making profits that know when to start a good trade and close a trade and must be active all time to avoid lost of money
Hi Guys, I am looking to someone that can generate an indicator for MT4 as explained below. Basically I would need that the indicator point out the price that will close my position in stop out/margin call. The indicator should pick automatically the level of trade out for the broker (which can be different from a broker to another broker) It should write (ideally on the bottom on the left) the following information
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money

Informazioni sul progetto

Budget
50 - 100 USD
IVA (21%): 10.5 - 21 USD
Totale: 60.5 - 121 USD
Per lo sviluppatore
45 - 90 USD
Scadenze
da 3 a 6 giorno(i)