Title of post is misleading but there doesn't seem to be any way of editing the title!
What I am trying to do is colour the price pane dependent on the CCI having been x bars under/over the overbought/oversold levels. Apart from maintaining a running total is there a function which will return the number of bars a data series as been above/below a certain value?
Size:
Color:
Size:
Color:
Thanks. I had looked in Standard Indicators but I keep forgetting that information about the various functions available are listed in different places.
When I said running total I was thinking that maintaining a couple of count variables within the bars loop would be much slower than calling a compiled function, is that correct? I was thinking of compiling a couple of my slower strategies into a dll but if the speed improvement over a straight script is negligible then there probably isn't much point.
Size:
Color:
QUOTE:
I was thinking that maintaining a couple of count variables within the bars loop would be much slower than calling a compiled function, is that correct?
No speed penalty here. WealthScript code is no longer interpreted, so editor-based and compiled strategies are on par. (Maybe a couple of milliseconds to compile the code for the first time, but that's all.)
Size:
Color:
Thanks for the information. In that case you have saved me a couple of days work porting the scripts over to SharpDevelop. I prefer working in WealthLab's script editor and if you ever manage to get rid of the disappearing cursor bug and provide an integrated debugger it will be the ideal development environment.
Size:
Color:
Alas, no plans for integrated debugger. SharpDevelop and Visual Studio can't be beat - they have excellent debuggers.
Re: cursor bug - does temporarily switching to another app via Alt-Tab and back help? This most likely is an issue with 3rd party component (Qwhale Editor .NET.)
Size:
Color: