September 1, 2006
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 " +
WriteVal( V, 1.0 ) +
" {{VALUES}}",
O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ),
ParamStyle("Style",styleNoTitle|styleCandle,maskAll) )
All the styles can be defined directly in PARAMETERS dialog:
Filed by AmiBroker Support at 9:54 am under Indicators
Comments Off on Price chart with independent style