Thanks cfd,
This is much better code, I suggest everyone use it instead. Yes, I admit, I suck at writing good code, haha. Oh well.
See my prior post to where this is leading.
Do you have any thoughts about this indicator? How about a trading rule or hypothesis we can test?