Need help MACD EA wont work
-
Hello! I made a EA which unfortunately doesnt work like it should work.
The histogram crosses above the signal line buy below zero line and close if the signal line crosses the main line below above zero line.For sell the opposite way. But it wont close the trades
Here the way it should "normarly" work:

EA:

Here a link to the EA:
https://fxdreema.com/shared/lrghDXGC -
Can someone help me please? @l-andorrĂ @fxDreema @roar @Mirotrader @Miro-Bagrov @miro1360 @CPBonzo
-
@sonixhd3 don't see the error, but let me build you a more optimized version, maybe it works
-
Here: https://fxdreema.com/shared/Zfrd2IUBd
Tips:
- you dont need group numbers if you have only one entry logic for a direction (sell or buy)
- you can "set current timeframe" in one block above the others
- define constants for macd input parameters, so you can change them for all blocks at once:

- (apply the constant by right-clicking, or just type its name in the field)

-
i don't think any of those will work as you have to many close trade blocks and to many connections too the orange dot. here is a project I made with mac-d I added a candle condition for optimisation. https://fxdreema.com/shared/uC35IQODd
-
it could be better with a directional indicator added or some variables added to try avoid pull back in the market I would like to use zigzag as a confirm direction in this project but I have no idea how to incorporate it but still triing 8-)
-
Thanks! Now it works, but dont know how to optimize it further without letting pc run 10 hours a day for the full optimizing option on mt5.
Hope you can help me @roar and give me some tips! Would appreciate it!
Here my current version:
https://fxdreema.com/shared/VHV7kDU8These are my results with backtesting from this year:

-
@sonixhd3 to speed up optimization, you can use open prices modelling, because your system is based on "once per bar" logic. Also remember to use genetic algorithm.
My thoughts on the system itself:
-
Trading 1-minute chart will be tough. Your win-loss ratio will be very close to 50:50, maybe 51:49, but commissions will take a big piece from both trades, wins and loses. I'd consider M5 or even M30. I target around 200-500 trades per year (on netting account).
-
Also, MACD system could use some volatility filtering, for example ADX. Myself I prefer to compare the ratio between 144-ATR and 13-ATR, but thats bit more technical to set up and read..

-
-
Wow, thanks again! People would properly pay for such help, so thanks again! Maybe the 30min chart would really be the better chart for the EAs win-loss ratio. I dont know much about ADX but I am going to learn how to use it.
-
Hey @roar wanted to ask how did you managed to get both ATR(13) and ATR(144) in one indicator? Hope you arent angry because of my beginner questions.
-
@sonixhd3 open the navigator pane in mt5 and just drag and drop indicators in the same window. Then go to indicator properties and set scale to "Inherit scale".
This is just a visual thing for planning the EA, there is no technical difference whether the indicators are in same window or separate. Fxdreema-made EA will always draw the indicators in separate windows.Hope you arent angry because of my beginner questions.
Its no problem lol
-
@roar thx again lol. Thought it is annoying that some stranger ask you every day something else.