{"id":512,"date":"2017-02-22T03:20:47","date_gmt":"2017-02-22T03:20:47","guid":{"rendered":"http:\/\/www.patternsmart.com\/cn\/?p=512"},"modified":"2017-02-22T03:20:47","modified_gmt":"2017-02-22T03:20:47","slug":"store-all-series-values-instead-of-only-the-last-256-values-in-ninjascript","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/store-all-series-values-instead-of-only-the-last-256-values-in-ninjascript\/","title":{"rendered":"Store all series values instead of only the last 256 values in Ninjascript"},"content":{"rendered":"<p>protected override void Initialize()<br \/>\n{<br \/>\n\/\/ Store all series values instead of only the last 256 values<br \/>\nMaximumBarsLookBack = MaximumBarsLookBack.Infinite;<br \/>\n}<\/p>\n<p>This might be very useful for some indicators, especially those need to use more than 256 bars&#8217; data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>protected override void Initialize() { \/\/ Store all ser [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[89],"tags":[174],"class_list":["post-512","post","type-post","status-publish","format-standard","hentry","category-ninjatrader","tag-ninjascript"],"_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":1,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":513,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/512\/revisions\/513"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}