amibroker

HomeKnowledge Base

Price chart with independent style

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:

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +
WriteValV1.0 ) +
" {{VALUES}}"
OHLCSelectedValueROCC)) ));

PlotC"Close"ParamColor("Color"colorBlack ), 
ParamStyle("Style",styleNoTitle|styleCandle,maskAll) );

All the styles can be defined directly in PARAMETERS dialog:

No comments yet. Be the first.

Leave a reply