| SYNTAX |
PlotOHLC( open, high, low, close, name, color/barcolor, style = styleCandle | styleOwnScale, minvalue = {empty}, maxvalue = {empty}, XShift = 0, ZOrder = 0 ) |
| FUNCTION |
Plots the price chart using custom open, high, low, close arrays
supplied as parameters. Fifth argument name defines graph name
used for displaying values in a title bar. Graph color could be static
(if sixth argument is a number) or dynamic (when sixth argument is an
array). Color indexes are related to the current palette (see Preferences/Color)
style defines chart plot style (see Plot() function for possible
values)
minvalue and maxvalue - (used by styleOwnScale plots ONLY)
define plot minimum and maximum values (lower and upper boundary for Y
axis)
XShift - allows to visually shift the chart into future (blank) bars.
ZOrder - this parameter takes precedence over the order of calling Plot() functions, so if z-order is set, it determines plotting order. See http://www.amibroker.com/gifs/zorder.gif
If multiple plots use the same z-order parameter they are plotted in reverse call order (ones that appear last in the code are plotted first). This rule can be changed by already existing switch graphzorder = 1 which, when specified, reverses this behaviour (so plots are drawn in call order).
Please note the above applies to each zorder "layer" separately (so within same zorder "layer" reverse call rule applies) This may sound complicated but is required for backward compatibility. |