I've been working on an MT4 EA that compares many trend trading strategies (using many indicator combos). I'm looking for guidance on how best to improve my approach.
I wrote software for 15 years but haven't written code in the past 6 yrs. I got back into coding 3 months ago to write MT4 robots when I realized I could do it easily, even though I had no prior trading experience.
My Ultimate Goal:
To have a collection of EAs with winning indicator combinations that successfully trade trends with little to no human intervention.
Work done so far:
I've created a trend 'rider tester' that
So... this thread had replies restricted. Removed that.
Hopefully there will be some replies now
I checked your EA and you have the same problem I had with mine. It opens a trade at the point of pullback and you loss the the trade because of this. I solved this with pending orders. For JPY pairs 79 pips and 45 for the others and 5 days. Sometimes we loss entries, I do not care. You did a great job with this tool
I like your suggestion about using pending orders. I was also thinking about using pending orders, maybe using buy stops and sell stops instead of market orders. I tried it once briefly but removed the code without fully testing it.
I will bring back that functionality and try it again.
Kasinath hi. I will test your EA. I am also working on a trend following system, but plan to use 5 min chart. Might work on 15 up to 30 minutes. The indicators i use is ones i not used to, but they are non-repaint indicators. During testing there is ups and downs like most results. Will place my indicators with explanation. You maybe can code them accordingly. I am very positive it will be profitable. Must also only trade during certain hours.
I'm assuming you can still close trades outside of the designated hours, if conditions are met, but you just shouldn't enter new ones.
Suggest you research the topic of "skew" and how this relates to trading.
What you want is a system that delivers positive skew.
Positive skew means that your average winners are greater than your average losers. This will deliver the better equity return in the long run.
Your system has a very negative skew, which over time will lead to ruin.
Knowing that it's referred to as "Skew" will help me as I research ways to optimize for it. Thanks for the insight!
I also hearp say that Volume precedes price movement, so I think I need one in my arsenal.
Thanks for the corroboration.
See here how to propper optimize/backtest/forwardtest: https://blog.darwinex.com/dos-donts-...4-backtesting/
I prefer to optimize 2010 - 2017, then run forward test with 2017 - 2020.
Use MT5 for optimizations/testing because it automates forward testing.
Choose the most stable parameters set. For example, you optimize 2010 - 2017 and see super-duper candidate with less dd and most profit - but you will notice that on 2017 - 2020 it can run with bad performance for example here:
Therefore use forwardtest (2017 - 2020) and choose the most stable parameters set which worked fine all period from 2010 - 2020.
This approach will help you avoid over-optimization issues... and you will see how your EA works with an unknown future - so no more need to run on demo account before going with real money.
Unfortunately the link doesn't work and I cannot dig it up from the waybackmachine :-(
I am in the process of doing a full migration to mql5 so I can run better optimizations on MT5. Will take me some time.
I find it interesting that we can "forward" test on *historical* data. I had no idea MT5 offered this, nor do I know what it means, to be honest. IE: I though the whole point of a forward test was testing on future data. Hmm. I am going to learn more about it this weekend.
For everyone else, here is the video:
i follow your method it could be interesting
I would love to test your EA
but I'm fine
nothing in the strategy tester
and on the DEMO account
I had one transaction on EUR / USD
with your settings
Maybe I'm making a mistake
If you mean you are not seeing any transactions in the strategy tester, this could be one of many reasons. I might be able to help if you PM a screen shot of your settings (input settings & time period settings) and the journal tab output.
Keep in mind: after much research and learning from this forum, I have decided that this EA is highly inefficient needs a lot more work. I am going to spend the next few weeks working on improving it, so you may want to wait before you continue testing it.
Thank you for answering me
I'm sending this scr
Ah, yes. I know this issue. "Trend Strength Filter" must be explicitly set to something. It should at least be set to 'None'.
For some reason, it didn't save that setting in the set file.
If you are looking to get the same profit curve I shared, use these settings:
so I can not use this EA on live account?
© Forex Factory