I have a custom indicator that has companion indicators that utilize the same underlying indicator calculations. I wanted to cache the underlying function calls to make it more efficient.
Do you have an example of the ideal place to cache the underlying indicator instance (the documentation mentions the ADX indicator but I can't view the code)?
Is there a unique naming convention that should be used or a method that returns a unique key?
Do you have an example of the ideal place to cache the underlying indicator instance (the documentation mentions the ADX indicator but I can't view the code)?
Is there a unique naming convention that should be used or a method that returns a unique key?
Rename
If you look at the SMA example at the end of the Indicator API documentation you'll see a Cache used which is attached to the underlying BarHistory.
You could use this technique also.
You could use this technique also.
Perfect. Thank you.
Your Response
Post
Edit Post
Login is required