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

drawal

#1
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

DaveAronow

#2
Any clues as to what might be going on?
http://en.wikipedia.org/wiki/Software_bug

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

Eugene

#3
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:

[LINK=http://www.wealth-lab.com/Support/SupportPolicy.aspx]
How to report a Problem? [/LINK]
profile picture

DartboardTrader

#4
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.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).