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)
OK >.. still talking about TSST strategies ... I started to play with the version that was posted by LostTrader, and my ideas was to enum-it to allow optimization on calculation mode, moving average period, and type of moving average to use. I did find some examples on the NT forum, but the final solution eludes me for some reason.
The period I have ok ... but trying to get the mode and matype gets me as far as having the dropdowns in the strategy dialogue, but there is no change in the screen chart ... I am fairly sure modifying the lines around #80 in the attached will fix ... but ... on how to have it without errors in compiles ...
I added comments to help out anyone that can have a look ... NT7b19 compiled but not exported ... I use TSST 2.3
TIA!
Jon
PART TWO: progress made but not to the finish line yet
I have a 'simple' version of TS SuperTrend in a very bare bones type of strategy, built on the framework of the MACD Crossover strategy posted in the NT forums... HUGE thanks to Art Runelis for the TSST and to NT_Josh for the framework https://ninjatrader.com/support/f...catid=5&id=393 ...
and I also have a 'not simple' version that I cannot resolve these errors (each time I try it gets MUCH worse) when I try to use enums instead of hard code of some of the variables/options available in the TSST .. I am using the enums because I want to be able to optimize extensively and there are just a lot of possibility .. let the machine do the work
These are the errors are with compiler code and line#s for those that can help me out:
Invalid token '{' in class, struct, or interface member declaration, CS1519 154
Namespace does not directly contain members such as fields or methods, CS0116 155
Type or namespace definition, or end-of-file expected, CS1022 176
Namespace member declaration expected. 153
Namespace member declaration expected 175
The strategy without the enums compiles and runs in NT7b19, not optimized, only raw version .. with the enums it does not compile. Only posting the .cs as all else you need you should have already TSST v2.3 and the rest is in the NT7.
Please post here if you can make the enum version work.
Seems I can edit a message but not add more files ... here are the .cs I am working with if there are guru's here that can fix I will be immensely greatful!
What I was trying == optimize on _each_ of the possibilities of the 9 MATypes & 3 ModeTypes via the default and genetic optimizers. Maybe I am missing it, I dont see it in the snippet you posted.
Thanks for TSSuperTrendstrategySample.zip, but I still have the following errors when I try to compile! It all seems to be internal to the strategy . . .
Moderators, please remove the attachment from post #16. The code includes VendorLicense call method which I forgot to remove. It confuses users and I can not edit the post (Why? It is my post...)