You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing you may want to add in the future for better performance is a caching mechanism for your indicators to reduce repeated computation time. Here's a Java TA library which does this as an example:
Closing as it may decrease overall performance and add complexity for negative gains. The code required to reuse the values adds a ton of complexity without major gains in performance (in fact, there's more potential of losing performance than gaining any). Indicators with the same time interval and parameters are almost never present. This is even less relevant when indicators that happen to use the same settings use longer intervals (> 5 minutes), as the calculations are pretty cheap. No work needed here at the moment until someone highlights an actual performance bottleneck.
Webpage not available
body { margin-top: 0px; padding-top: 0px; } /* Used for additional styles, e.g. direction */
h2 { margin-top: 5px; padding-top: 0px; }
When I create an indicator in NinjaTrader, the caching code is auto-generated. I don't know if it's only useful in charting (for redrawing) or the way they cache is better than what ta4j is doing. I can send you the C# code for a moving avg so you can make that determination. I doubt a professional package like that is willing to take a performance hit.Steve
As suggested in issue #1:
The text was updated successfully, but these errors were encountered: