I want to add RSI oversold and overbought panel at the bottom of chart panel, but code below combines them together as one chart. What am i doing wrong, sorry new to amazing Amibroker platform here.
//Charting
SetChartOptions( 0, chartShowArrows | chartShowDates );
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) \n{{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );
Plot( C, "Close", ParamColor( "Color", colorDefault ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
Plot( BBandTop(C, BBTopPeriods, BBTopWidth), "UBB", colorGreen, styleDashed );
Plot( BBandBot(C, BBBottomPeriods, BBBottomWidth), "LBB", colorWhite, styleDashed );
//// Insert RSI
periods = Param( "Periods", 15, 1, 200, 1 );
oversold = Param( "Oversold level", 15, 1, 100, 1 );
overbought = Param( "Overbought level", 85, 1, 100, 1 );
Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
PlotGrid( oversold );
PlotGrid( overbought );