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)
Greetings! AND Happy Thanksgiving Day to those celebrating!! Hope you had a wonderful time!!!!
I ran into set of errors in a strategy I was building, and narrowed down the issue to two small sections of code.
The sections are both in the 'short' side of the strategy, and because the indicator generating the code (Empirical Mode Decomposition) has lots of decimals in the output (using ForEx), I modified in the code to compensate, so now I have a more workable (roughly) range of +300 to -300 ... but still have the ' object reference not set to an instance of an object.' when I run the strategy. I am 99.44% sure it is not in the strategy code itself because the same components & calculations are in other lines that work without any problems, and a change as simple as changing '<' to '>' cures the problem, but changes the strategy results
What I would like to accomplish is to 'normalize the data output from the indicator, to have all positive values, without changing the waveform that is currently being produced. I did a bit of google on this, but I cant understand the math involved ... so I am looking for a small assist from somebody more clever :sos:
the .cs of the modified indicator is attached ... it does compile as is in NT7rc1 and charts fine .. the code section that needs modification is
the BT.Set calculation is the one that needs to be tamed