NeedRSI Scanner code for Amiboker

please help me to code amibroker scanner in weekly chart

Buy =RSI(14)>70

Sell=RSI(14)<30

For the above given condition please check below AFL

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

Buy = RSI(C,14)>70;

Sell = RSI(C,14)<30;
_SECTION_END();

sorry it is not working error