Amibroker code which scans stocks for which RSI(14) on 5 min chart remained above 68 from 10:30 to 11:30 hrs

I want to a amibroker code which scans stocks for which RSI(14) on 5 min chart remained above 68 from 10:30 to 11:30 hrs continuously , can anybody help please.

Regards

(P. Selvan)

_SECTION_BEGIN("Neotrade Analytics");

Session= TimeNum() >= 103000 AND TimeNum() <= 113000;

Buy = (RSI(14) > 68) AND Session;
Sell = (RSI(14) < 30 ) AND Session;

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

_SECTION_END();

Above code can be used in any time frame to scan the stocks.

Warm Regards,

Vivith Kumar ML

www.neotradeanalytics.com

(Authorized real time data vendor of NSE and BSE supporting data feeds to Amibroker,metastock,ninjatrader and custom programming languages)

1 Like

Thanks Mr Vivith . I really appreciate your quick answer. However there is a problem.I want that afl scan stocks for which RSI remains above 68 continuously during the period 103000 hrs to 113000 hrs, but its scanning stocks for which RSI was above 68 even for a short span of time in the period of time.
Plz help
Warm Regards
Selvan P.