{"id":516,"date":"2017-02-22T03:23:09","date_gmt":"2017-02-22T03:23:09","guid":{"rendered":"http:\/\/www.patternsmart.com\/cn\/?p=516"},"modified":"2017-02-22T03:23:09","modified_gmt":"2017-02-22T03:23:09","slug":"color-var-not-saved-in-template-error-in-ninjatrader-indicator","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/color-var-not-saved-in-template-error-in-ninjatrader-indicator\/","title":{"rendered":"Color var not saved in template error in Ninjatrader indicator"},"content":{"rendered":"<p>it has to be written in this way.<\/p>\n<p>[Description(&#8220;Color of level 1&#8221;)]<br \/>\n[GridCategory(&#8220;Parameters&#8221;)]<br \/>\npublic Color Color1<br \/>\n{<br \/>\nget { return color1; }<br \/>\nset { color1 = value; }<br \/>\n}<\/p>\n<p>[Browsable(false)]<br \/>\npublic string Color1Serialize<br \/>\n{<br \/>\nget { return NinjaTrader.Gui.Design.SerializableColor.ToString( color1); }<br \/>\nset { color1 = NinjaTrader.Gui.Design.SerializableColor.FromStrin g(value); }<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>it has to be written in this way. [Description(&#8220;C [&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-516","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\/516","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=516"}],"version-history":[{"count":2,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"predecessor-version":[{"id":1029,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/516\/revisions\/1029"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}