How do we plot a graph in chart area and plot a line in a panel below it using one AFL script ?

0 votes
asked Jun 15, 2017 in AmiBroker by Hemanth Reddy
I plotted a candle stick chart manipulating the OHLC data. But now I want to plot a line in a new "Pane" below the chart using the variables which store the manipulated OHLC numbers.

So is it possible to plot a pane and a chart using the same script ?

1 Answer

0 votes
answered Jun 17, 2017 by fxshrat (1,200 points)
commented Jun 17, 2017 by fxshrat (1,200 points)
Well another way is using Paramtoggle

// First pane:
if( ParamToggle( "Which data to plot?", "OHLC |Other data", 0 ) ) {
    // Plotting code for manipulated OHLC in first pane
    ....
// Second pane:
} else {
    // Plotting code for other vars calling manipulated OHLC data
    ....
}

etc.

Because as always there are multiple ways to skin a cat.
...