You could also omit the parentheses if the constructor takes no arguments.
CurrentBarData cb;
Or use a pointer like so
CurrentBarData *cb = new CurrentBarData;
...
delete cb;
Note the missing parentheses again. It's the way the language works.
Rule of thumb, every new should be paired with a corresponding delete somewhere. Watch the log in your tester, it will point out if memory wasn't deallocated.
I’m having the exact same issue now with my computer
Hp AMD ryzen 5
I’ve never had an issue with backtesting but now if I test on every tick, the moment I click start, the computer freezes up which then forces me to manually shut down computer as the mouse doesn’t even respond
You could also omit the parentheses if the constructor takes no arguments.
Or use a pointer like so
Note the missing parentheses again. It's the way the language works.
Rule of thumb, every new should be paired with a corresponding delete somewhere. Watch the log in your tester, it will point out if memory wasn't deallocated.