Below is the code to scan high value BETA stocks.........when a scan is done all the scripts are shown with high beta value from 09:15 to 15:30..........I want scan results from 09:15 to 12:00 only.....can someone edit the code sothat it does not scan results beyond 12PM.........thanks in advance
_SECTION_BEGIN("High Beta Scanner");
ticker=ParamStr( "Ticker", "NIFTY-I" );
P=Foreign(ticker,"C",1);
Periods=Param("period",21,1,50,1);
Beta=(( Periods * Sum(ROC( C,1) * ROC(P,1),Periods )) - (Sum(ROC(C,1),Periods) *
Sum(ROC( P,1),Periods))) / ((Periods * Sum((ROC(P,1)^2 ),Periods)) -
(Sum(ROC(P,1 ),Periods)^2 ));
Plot(beta,"Beta",colorRed,styleLine);
n = Param("n" , 2.5, 0, 100, 0.1);
_SECTION_END();
Filter =(beta>n) ;
AddColumn(beta,"BETA",1.2);
AddColumn(V, "Volume", 1);
_SECTION_BEGIN("High Beta Scanner");
ticker=ParamStr( "Ticker", "NIFTY-I" );
P=Foreign(ticker,"C",1);
Periods=Param("period",21,1,50,1);
Beta=(( Periods * Sum(ROC( C,1) * ROC(P,1),Periods )) - (Sum(ROC(C,1),Periods) *
Sum(ROC( P,1),Periods))) / ((Periods * Sum((ROC(P,1)^2 ),Periods)) -
(Sum(ROC(P,1 ),Periods)^2 ));
Plot(beta,"Beta",colorRed,styleLine);
n = Param("n" , 2.5, 0, 100, 0.1);
_SECTION_END();
Filter =(beta>n) ;
AddColumn(beta,"BETA",1.2);
AddColumn(V, "Volume", 1);