An expert advisor based on MACD divergence, Two EMA's, MACD histogram bars to be built onto an existing EA

MQL4 エキスパート

仕事が完了した

実行時間28 日
依頼者からのフィードバック
Amazing developer. Incredible skills. I can't recommend working with this developer enough, top work and I look forward to working with you in the future, thank you!

指定

Hi all!

Please can you make an expert advisor that uses two EMA's, MACD and the MACD histogram bars to enter and exit trades that also uses an existing EA I have had made that I will attach once we are in discussion of the work 

The Previous EA is based on a martingale strategy and 7 “rules” based on when to reset the lot size. The EA I will attach enters a buy trade then a sell trade, a buy and then a sell etc and if one of these trades loses the next trade has double the lot size to recoup for the last. I have 7 rules that disctate when the lot size will return to the original default set by me to the losses do not become too high.

This new EA will be a combination of the two. The first EA used 7 rules and took trades in the order of buy, sell, buy, sell etc at a set take profit and stop loss (I usually used 1 pip)


For this new EA the "back end" or the entry side of the strategy is being taken away and is replaced by the below please

For the new EA the 7 rules will be kept, the lot size will be increased on every losing trade however the buy, sell, buy, sell structure will be replaced by the below strategy:

As soon as the old EA would exit a trade it would enter a new one straight away dependent on a spread filter. Please remove this part of the old EA (keeping the spread filter please!) and replace the entry criteria for a trade with the below trading strategy:

https://docs.google.com/document/d/1c4omsOFTjoIbwyvJ7DSMRTq95BpxDTJH0VZnP2EM8i4/edit?usp=sharing

So I can't attach PDF's in this chat the file type isn't supported so use that link and download as PDF. File -> Download -> Download as PDF

https://docs.google.com/document/d/1VU7n2K7kwnx80KKTmrCF66pjFu9tD-MHdLhDHNoNqUk/edit?usp=sharing


This is a link to my actual trading plan which is much shorted and easier to follow - use in google docs or download as PDF, your choice :) 

https://www.youtube.com/watch?v=9o6BG-dCgco&ab_channel=TradePro


Also, I don't think you'll need this but the other developer really struggled...

This video is very close to my strategy. My strategy is a modified version of the one in the video. My entry using the histogram comes sooner than his and I also don't exit at a 2-1 reward risk, I exit after a 2-1 is achieved on a change in the histogram bars


https://www.youtube.com/watch?v=oQQ-VCJYc6M&t=0s&ab_channel=TradePro

Another video, guy but more examples :) 


Please note I don't have an existing MACD divergence indicator. As it may be hard to find an accurate one you may need to make one from scratch and add it in. I currently trade this strategy all manually using Trading view

 

The strategy was made and tested using the 5 minute timeframe and works as follows:

When the 5 minute 150 EMA (blue) (15 minute 50 EMA) is above the 5 minute 600 EMA (yellow) (1H 50 EMA) the EA will look for long trades only (based on MACD divergence)

When the 5 minute 150 EMA (blue) (15 minute 50 EMA) is below the 5 minute 600 EMA (yellow) (1H 50 EMA) the EA will look for short trades only (based on MACD divergence)


Entry:

When entering long we must see MACD divergence to the upside as seen below (apologies if you already know what this is, I’d rather give too much information than too little, sure you’ll agree)



As price moves down the MACD line (not the signal line) moves up between the same two points in time.


The two points in price go from the open/close price not the highs/lows of the wicks. The higher high going short or the lower low going long cannot be exactly equal and must differ by 1 pip. Please can you add a filter where I get to decide how much in pips the highs and lows must be for entry. I will likely keep this at one pip.


Price can be anywhere relative to the two EMA’s, above them, between them or below them, doesn’t matter.





The same is said for short trades:


As price moves up, the MACD line moves down between the same two points (Entry is at the red arrow pointing down and the exit at the red arrow pointing up)



Entry:

When entering a trade: 

The MACD line cannot touch the histogram 0 line between it’s “two points” - the MACD line cannot go negative on short trades or positive on long trades before entry.



Between the two points the MACD red and green histogram bars must change colour twice before entry can happen

For short trades the histogram lines must go: positive value, negative value, positive value, entry

For long trades the histogram lines must go: negative value, positive value, negative value, entry



For long trades the MACD line must be below the MACD 0 line
For short trades the MACD line must be above the MACD 0 line


Once we have the EMA’s in the right direction, MACD divergence and the above histogram set up, our entry comes in the first change in the histogram bar in our desired direction.



(Short entry on red arrows pointing down) 

If we’re entering short the histogram bar must already be above the 0 line (positive) and entry comes in the first drop in value whether still positive but just less than the previous bar or it goes negative.



If we’re entering long the histogram bar must be below the 0 line (negative) and entry comes in the first rise in value whether still negative or it goes fully positive


(Entry is on the red arrow pointing up)

Stop loss -

 

The stop is placed 1.5 pips (15 points/ticks) above or below the most recent high or low depending on whether you’re going long or short. (please add the option to let me decide the stop loss value) 


The stop loss cannot exceed 10 pips.


Any trade above a 10 pip SL cannot be taken (please also add an option that lets me decide when a trade won’t be taken based on the stop loss size. I found trades with a stop loss larger than 10 pips to be unprofitable)


Take profit/trade management:

As soon as  the trade is twice as far from the entry price as the stop loss is in pips then the EA will exit the trade on the first change in the histogram bar in the opposite direction of our trade. So as soon as the trade is at a 2:1 reward risk then management comes in and makes an exit as soon as the histogram bars moves in the opposite direction.



Entry short on the green vertical line and exit made on the red arrow pointing up when the histogram bar increased in value after the trade reached a 2:1 Reward Risk ratio.


As seen above. If a trade has a 5 pip stop loss for example, as soon as the trade is 10 pips in profit then the trade will be closed as soon as the first histogram bar against our trade direction happens.

If a trade reaches this point and the histogram bar is already against our direction then it can exit straight away at 2:1 rather than waiting 


No entry:

Any trade taken before 07:00 and after 21:00. Please add in a time clause as I found the strategy to be most profitable opening trades after 0700 GMT 0 and not opening after 21:00 GMT 0

The EA cannot take a second entry on the same MACD move. If the EA takes one entry and get stopped out the EA cannot take another trade until the MACD line touches the 0 line again and “resets'' the play.

As seen below there are multiple trades that occurred on the same MACD divergence and all 3 lost. So if the MACD line has not touched zero between the last trade and tradewe’re taking now then we cannot enter until it does.




A trade with a 10 pip SL or larger won’t be entered (again please add the option to let me adjust this)

応答済み

1
開発者 1
評価
(4)
プロジェクト
6
0%
仲裁
5
0% / 80%
期限切れ
2
33%
2
開発者 2
評価
(143)
プロジェクト
255
35%
仲裁
12
25% / 58%
期限切れ
42
16%
3
開発者 3
評価
(126)
プロジェクト
160
36%
仲裁
4
25% / 50%
期限切れ
13
8%
4
開発者 4
評価
(56)
プロジェクト
175
71%
仲裁
4
100% / 0%
期限切れ
1
1%
5
開発者 5
評価
(105)
プロジェクト
135
42%
仲裁
19
16% / 53%
期限切れ
20
15%
取り込み中
6
開発者 6
評価
(167)
プロジェクト
192
11%
仲裁
37
38% / 35%
期限切れ
5
3%
取り込み中
類似した注文
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link

プロジェクト情報

予算
200 - 250 USD
開発者用
180 - 225 USD
締め切り
最高 5 日