Strategy Tester_ Gurumarra Forex V1.pdf 262 KB | 243 downloads
I have decided to post my EA here for two reasons:
1) I like it but am sure it could be much better and want to get help to improve it
2) I was humbled by the way others (George) have freely shared their code, ideas, and most importantly their time, to assist others.
So here's my back story...(briefly)
After blowing several thousand dollars over the past few years I started looking through this site and came across a few ideas and indicators I thought worth looking at in more detail to see if I could make them work for me. In particular I picked up some ideas/indicators from Alien, Jim Brown (JagFX), Jim Dandy (check his Youtube channel) and Astorcoder - so kudos go to them...but also the many who contributed to their systems as well.
I have found two major stumbling blocks in my trading - I am in Eastern Australia (Sydney) so am always asleep when the major markets are open, and I am too emotional so tend to dive in too early, take quick small profits and sit on losses.
My solution (as an ex programmer) was to develop a robot that would take the emotion out and trade when I was asleep.
So I have developed a robot which I have called Gurumarra Forex (Gurumarra is an aboriginal word meaning something like "electrical storm" or "dry lightning") and I am now sharing it.
I have only just commenced running it live and have mixed results in my account due to some bugs that were not identified in back testing and which resulted in some losses. But here's a sample test result attached.
Some comments and explanations:
I have tried the EA out on multiple time frames but am concentrating on M30 charts - having said that I get comparable results on H1 and H4 as well.
The EA does NOT work on every pair - much of my testing has been to identify those pairs that seem to produce the best result.
I am happy to take a large DD so long as I can be confident that the price will come back to profit so I do NOT use stops but do control maximum DD via a parameter.
I want the profits to run but have no idea where to set the TP so have incorporated various options for the exit as you will see in the parameters and in the code. I have no idea how many pips or $ to set as a target so have decided to set the target as a % of the account balance.
As far as the exit is concerned I have noted that a turn of the OsMA works well at getting out with a profit so I use a smoothed average value of this indicator to exit (if the target % has not yet been reached) and the PA (price action) is turning the wrong way.
With all the indicators in the world I reckon you still can't predict which way the PA will go so the EA places a straddle on the trigger bar and then waits for it to be triggered.
I have not massaged the code to make it pretty but no apologies - take it or leave it as you will - but improvements are welcome (see above).
In the next post I will explain the parameters and provide the indicators required - OSMA should be in your basic MT4 package but the others are ALL required and available elsewhere on this site as well. The QMP Filter, QQE Advisor and MACD Platinum are thanks to Jim Brown who uses them in his trading strategy and is happy to share them - they are essentially the "trigger" for the trade. The RSIOMA is used as a filter to weed out the trades that are at extreme values (actually somewhat opposite to Jim's approach). Note that the indicators aren't required on the chart but they are needed in the environment.
UPDATE - Note that this EA uses bar open to control exit/entry however testing should still be performed on every tick
UPDATE - Latest version of the EA is now attached to this post #1. Code has been cleaned up somewhat and some minor changes in message handling/descriptions and the time limit for Friday trading - now set to cease trading on Friday after 12 noon - you may want to configure to your local time zone.
UPDATE/CORRECTION to post #5
The value for STDDEV for initial testing runs should be 99999. My bad. Testing this for values between 1-10 should be done after the RSIOMA, Risk and other parameters have been tuned.
Gurumarra Forex V1.1.mq4 21 KB | 122 downloads | Uploaded May 15, 2019 8:50pm
All that your hand finds to do, do with your very power...