Expert Advisor Settings & Modifications
PLEASE NOTE: Modifying the Expert Advisor (robot) source code is completely OPTIONAL and is only for those who have some coding skills and would like to experiment with different ideas for signal logic. If you are not familiar with coding, then please don't mess with the code. It's not for everyone but I like to make it available for those who would like access to it (assuming it was included in your purchase). I have provided many notes inside the code to help you identify what many of the lines of code are for and what they're doing. Have fun but please make a copy of the EA before messing with the code (save the file as a different name before making changes to the original code). If you happen to mess it up, you can always download a fresh copy from your Account so don't panic if you do happen to screw it up. See #13 below to identify your errors.
1. Open your MetaTrader trading platform and open the MetaEditor by clicking on the icon at the top of the charts.
2. The MetaEditor will appear like this when it opens with a list of folders on the left side. If the list of folders does not appear, go to View and click Navigator and they will appear...
5. Scroll down the EA code just a little and you will see a section labeled MONEY MANAGEMENT SETTINGS. This is where 90% of your money management settings are located. I've included notes after each setting to explain what it is for. The settings you can change are in green font or the blue true/false settings, but I don't recommend changing anything unless I've included a note about what it's for.
Please note that the Stop Loss & Profit Target are in pips, not dollars. Changing these will completely change the trading results so feel free to test different settings here. After making any changes, click COMPILE at the top of the window to save the changes.
6. Many of my trading systems use a distance calculation and this is where the settings are for this. There are 4 possible distance settings and 3 different moving averages to measure price from too so there is a lot of flexibility here. You can even use these to measure distance between 2 moving averages or distance between price now and price X bars ago. The possibilities are endless so get creative and have fun!
7. The next items in the source code are these Misc. options. Some of these are great to have and make experimenting with different ideas very convenient. You can disable the longs or Shorts with a simple True/False setting here, and even REVERSE your trade signals here with the "Reverse Strategy" option. If you discover a really horrible trading strategy by accident, just reverse the signals here and see what happens. I've included notes on each item of significance so just read my notes and please don't ask me about the Virtual Stops/Limits. I have never used them in live trading but if you have a dishonest broker that likes to hunt stops, then you might want to try this feature out but always place a hard stop 10-20 pips beyond your virtual stop as a 2nd line of protection.
8. Scroll down a little more and you will come to the code for the 3 Simple Moving Averages. The SMA settings are blacked out. I can't give away my signal strategy, right? :)
9. Next comes the 2nd part of the Money Management code. This is where you convert the money management from the Consecutive Wins strategy to the Cumulative Wins strategy, and switch between Cycle Targets and Stay at Max lots. Instructions are included after each line of code.
13. If there is an error in your code, you will get an error message like this when you compile. It tells you what the error is and "approximately" where it is occurring. In this example, I removed a semicolon from line 337 but it's telling me the problem is on line 339 so the problem will not always be on the line it says it is.