100% reproducible crashes and hangs using WLP
Author: drawal
Creation Date: 3/3/2009 8:19 PM
profile picture


I have a strategy that does one of 2 things:
1. Crashes WLP or...
2. Pegs the CPU at 100% (I end up having to reboot)

It is a very simple moving average crossover strategy that uses the VIX and volatility indicators. I've set the data range to 2 weeks, so it's not a lot of data either

Any clues as to what might be going on?
profile picture


Any clues as to what might be going on?

In all seriousness, unless you post the script nobody is going to be able to figure out where the bug is.
profile picture


C# gives enough rope to shoot yourself in the foot - even with a short script badly designed. So Dave is right - we need to see the code at a bare minimum:

How to report a Problem? [/LINK]
profile picture


The 100% CPU peg sounds like you may have an infinite loop in your script.

Beware of your for loop conditional and increment statement.
Consider re-writing each for/while loop statement from scratch, since reading them over one can easily miss simple errors.