Semi-formal Indicators
Author: Carova
Creation Date: 4/19/2015 4:08 PM
profile picture

Carova

#1
What am I doing wrong here?
CODE:
Please log in to see this code.


Thanks!

Vince
profile picture

Eugene

#2
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.


profile picture

Carova

#3
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
profile picture

Eugene

#4
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.
profile picture

Eugene

#5
The slowness you notice is probably caused by the absense of caching.
profile picture

Carova

#6
Hi Eugene!

How can I enable caching?

Vince
profile picture

Eugene

#7
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".
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).