Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
- DJB/TFX
Do or do not, there is no try. - Yoda
Can you help answer these questions from other members on NexusFi?
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.
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.
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.
I think you shoudl read the Wikipedia article on GA, you'll have your answers.
Not for the "Min Performance" parameter, which is not specific to usual GA usage.