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)
I was defining arrays or variables within the system body which is not an input or a subgraph at the input/subgraph sections and these variable or array doesn't have initialization. I noticed that the trading logic will not recognize the changes of these variables or arrays.
After many phases of debugging, I assume this is expected behavior and for any variables or arrays it should be initially defined in the beginning of the system, even if it's not an input and will change due to the inputs of the system.
For example, if a cross over takes place I was trying to set a variable or a boolean to true or false but this variable was declaring in he system body and wasn't defined at the start as an input or subgraph. So I would assume that rather than declaring in the body , we must define it as a subgraph to the system and initiate it at the set default by SetYesNo(). Is my assumption correct?
Great two threads, I really picked up a lot of information for setting up with VS.
Now I would like to create my own class to separate the stuff a little bit but I'm more a C# guy than C++ and I constantly get an error on the initiating of my class. I just can't figure out how I can get such simple code to work. I hope anyone would like to help me? Writing studies without using my own class works without any problems. But I don't like the big functions.
The error I get on my constructor: references must be initialized