{"id":33,"date":"2006-09-01T09:54:13","date_gmt":"2006-09-01T14:54:13","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/2006\/09\/01\/how-to-display-a-price-chart-independent-from-view-price-chart-style-setting\/"},"modified":"2014-12-04T08:31:14","modified_gmt":"2014-12-04T13:31:14","slug":"price-chart-with-independent-style","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2006\/09\/01\/price-chart-with-independent-style\/","title":{"rendered":"Price chart with independent style"},"content":{"rendered":"
If one wants to display a Candlesticks in one chart pane and Bars in another one, then it’s necessary to use a formula which does not read the settings from: View -> Price Chart Style<\/strong>.<\/p> The following custom Price formula allows to achieve this: All the styles can be defined directly in PARAMETERS dialog:<\/p> <\/p>","protected":false},"excerpt":{"rendered":" If one wants to display a Candlesticks in one chart pane and Bars in another one, then it’s necessary to use a formula which does not read the settings from: View -> Price Chart Style.The following custom Price formula allows to achieve this:<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[53,55],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/33"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":1,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":833,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/33\/revisions\/833"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}SetChartOptions<\/span>(<\/span>0<\/span>,<\/span>chartShowArrows<\/span>|<\/span>chartShowDates<\/span>);
<\/span>_N<\/span>(<\/span>Title <\/span>= <\/span>StrFormat<\/span>(<\/span>"{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " <\/span>+
<\/span>WriteVal<\/span>( <\/span>V<\/span>, <\/span>1.0 <\/span>) +
<\/span>" {{VALUES}}"<\/span>,
<\/span>O<\/span>, <\/span>H<\/span>, <\/span>L<\/span>, <\/span>C<\/span>, <\/span>SelectedValue<\/span>( <\/span>ROC<\/span>( <\/span>C<\/span>, <\/span>1 <\/span>)) ));
<\/span>Plot<\/span>( <\/span>C<\/span>, <\/span>"Close"<\/span>, <\/span>ParamColor<\/span>(<\/span>"Color"<\/span>, <\/span>colorBlack <\/span>),
<\/span>ParamStyle<\/span>(<\/span>"Style"<\/span>,<\/span>styleNoTitle<\/span>|<\/span>styleCandle<\/span>,<\/span>maskAll<\/span>) )<\/code>