Verge, as for which version, I use strictly Ninja Trader 7 but the changes aren't platform specific.
The .xml file is irrelevant, I edited the PH Genetic 1.12.zip folder directly, putting in my new .cs files in and never actually "exported" it from NT at all. So, that is why its version matches the version you downloaded, even though it wasn't from 6.5 at all.
By the way, you'd asked about minimum trades and I recall seeing this in SQN:
If you change the sMinTrades to be what you want, this code can overwrite/insert onto the beginning of whatever optimization type code you use and it will enforce a minimum number of trades. With more complex coding, it could be made to look for that value from the Strategy so that it could be easily editable. It would be easier to show you if you told me which type you usually optimize for.
Your last comment was as I was typing a reply, so here you go with the code added to Max Profit Factor. I set it to a minimum of 20, change as you like. Seeing how it was done should be sufficient for you to apply it to any of the others. These files are in your Custom\Type folder.
Do or do not, there is no try. - Yoda
The following 2 users say Thank You to TraderDJB for this post:
You can create your own performance Type (Net Profit, Profit Factor, and VergeCustom for instance).
Within that (NT\bin\Custom\Type\customVerge.cs, using another one like NetProfit as example), you can just check for trades per day and then return double infinity to reject a value too low.
Below is hand typed, not tested...
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following 3 users say Thank You to Big Mike for this post:
Thank you both. I use a number of different optimization functions (because I am still searching for the ideal one) and will now be able to change them with the help you have given me.
Now that I have your attention I would like to ask about one other enhancement that I would like on this GO - and that is to write the detailed results to a csv type file so that I can use it to draw graphs. MOGO creates such a file as an option - see screen-shot for example - after it has been imported in to Excel. (the first line in the file are the parameter names)
I know that Piersh's GO writes to the output window - but not all the results - only the end of every generation ( I think). I would like the number of entries in the file to be = generations X populations size. I typically use files with around 65 000 records. Again - any ideas of how I can do this will be appreciated.