What am I doing wrong here?
CODE:
Please log in to see this code.
Thanks!
Vince
Size:
Color:
Vince,
Why not simply adhere to the example in the WS Guide...
CODE:
Please log in to see this code.
...or the API Guide on
Creating an Indicator Library?
CODE:
Please log in to see this code.
Size:
Color:
Hi Eugene!
The final step of my indicator construction process uses involves the processing of 2 series and I am trying to understand what I am doing incorrectly to provide the output from routine. Yes, I could do it similar to what you are suggesting but when I timed that process inside the Main loop it was significantly slower.
Vince
Size:
Color:
Wealth-Lab expects that the values of your indicator are calculated bar by bar and assigned using the this[] indexer access method. As you probably noticed, no any given formal indicator from our open source libraries ever returns a DataSeries without the loop. And they are not slow.
Size:
Color:
The slowness you notice is probably caused by the absense of caching.
Size:
Color:
Hi Eugene!
How can I enable caching?
Vince
Size:
Color:
You'll find it in the API Guide (Creating an Indicator Library) in my link above. See "Static Series Method" for a code example and "Returning a Cached Copy".
Size:
Color: