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
privateint_TimeframeSize=0;publicintTimeframeSize{
get {return_TimeframeSize;}
set {if(value>_TimeframeSize){_TimeframeSize=value;// realloc buffer with new size...}}}
TimeframeSize 只可扩大不可减小以保证引用时的正确性。
改用固定大小的循环队列来保存历史数据。
The text was updated successfully, but these errors were encountered:
保存所有的历史记录能保证单例缓存模式的正确性。
单例缓存模式常常能数十倍提升运算效率。
尽管如此,长时间运行下,可能导致内存泄漏问题。
因此,考虑在指标实例上新增一个公开属性,记录被引用的最大窗口长度。
TimeframeSize 只可扩大不可减小以保证引用时的正确性。
改用固定大小的循环队列来保存历史数据。
The text was updated successfully, but these errors were encountered: