Suppose I have:
If( XYZ bool= true)
{do abc}
Vs
{do abc}
In the first scenario, if I set the bool to false, will NT essentially "skip" over the code {do abc} or will it still be going through the code. Because In the second scenario, NT will read the entire {do abc}. I'm asking this because my code is really long and I'm trying to improve the run time during strategy analyzer. Within this particular strategies, I have many scenarios where I can essentially "ignore to run" a particular piece of the code. So I was thinking maybe I can use bools. This way I can make the strategy run faster. Problem is, my strategy has 10 instruments, im loading last tick, bid tick and ask tick data. I've got 4 CPU and 8GB of ram and 500 GB of disk storage but still it's taking my up to 1 hour to go through 1 year worth of data in strategy analyzer. And if I have to optimize, then I'm looking at, at the least, 1 day run time.
Thanks.
Comment