mjj38
- ago
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?
1
238
Solved
2 Replies

Reply

Bookmark

Sort
- ago
#1
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.
0
Best Answer
mjj38
- ago
#2
Perfect. Thank you.
0

Reply

Bookmark

Sort