NeedRSI Scanner code for Amiboker

please help me to code amibroker scanner in weekly chart

Buy =RSI(14)>70


For the above given condition please check below AFL

_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;

sorry it is not working error