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)
Thanks, I am currently using the * netprofit method but it has a lot of drawbacks. I'll try the double.NegativeInfinity advice. I will see if I can modify your popup dialog window to include a minimum threshold to pass to the optimizer for this variable.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
Can you help answer these questions from other members on NexusFi?
sorry, i'm not too familiar with the details of walk forward. you might find more useful answers in a more general forum - it doesn't sound like your issue is directly connected with the optimizer, but NT's walk forward function (of which the optimizer is a small part). do you see the same problem using NT's built-in optimizer?
Yes in default optimizer its the same.
I all ready asked the NT support but all they could say is that they will forward it to the development. I don't count on a solution from them.
The problem exists in optimizer also, but in optimizer I added my own "trade from date" and in NT "From" I enter a smaller date.
As I see it the strongest tool in NT is the Walk Farward, because the optimizer optimizes on a given data and only if you test it on next data sample the strategy is valid.
I'm using v1.06 but on one particular strategy am getting an error. I've used your GO successfully on several strategies, this is the first I've seen this.
Failed to call method 'Optimize' for optimizer 'PHGenetic'. Unable to cast object of type 'System.Double' to type 'System.String'.
It works fine with the normal optimizer.
My guess is it is trying to Print() something when the error occurs. I am making this assumption because I receive your pop-up Window with options, and as soon as I press OK the error appears -- before your header statement is printed to the Output window.
Sorry I can't include the strategy for you to test against. Any ideas where to begin? I will try looking through your code and commenting out some Print() statements to see if my theory is right, but I guess it could easily be something else. Not sure why you would be converting something to a string elsewhere though.
-- Edit. Hmm ok you have overriden the ToString() function and it seems do a lot of custom work using ToString. So... hopefully you have any idea how to fix this, maybe you can send a test version with more debug output.
Hey Mike, I've run into a similar problem before and was trying to remember what caused it.. iirc it was something like this:
Print("string " + intVar + 5);
Technically this is valid c#, but for some reason the JIT compiler NT is using has trouble with it (they use modified JIT engine for remotesoft protector). It is especially annoying because their replacement hooks the MS JIT compiler with unmanaged code, so you cannot debug such problems with visual studio..
I found that changing it to this made it work:
Print("string " + (intVar+5).ToString());
Not sure if that is the problem in your case but worth a shot.
thx sefstrat, I have run into that before. But that is not the issue here as best I can tell. If you take a look at PHgenetic.cs from post 1 I think you'll see why.