ORB Scan not working

amitrandive

Well-Known Member
#1
Dear All

Attached AFL of ORB exploration is not able to catch all the stocks.It catches only those stocks having a .NS extension .

I want this exploration to catch all stocks , commodities, futures and forex as well.

Thanks
Amit

Possible to explore, Exploration results are sorted alphabatically and shows following columns
Column 1 = Script
Column 2 = Date
Column 3 = ORBH - Open Range Breakout High value, Green means already triggered.
Column 4 = ORBL - Open Range Breakout Low value, Red Mean already triggered.
Column 5 = ORB High Breakout gain, that is maximum gain if entered long as per ORBH
Column 6 = ORB Low Breakout gain, that is maiimum gain if short as per ORBL

How to trade?

Once ORBH & ORBL are values are set as per param time, place 2 orders
1) BUY stop loss order if price crosses above ORBH price
2) SELL stop loss order if price crosses below ORBL price.

Please strictly trade with stop loss, ideally for long stop loss = ORBL & for short stop loss = ORBH. Please feel free to adjust stop loss based on your risk tollarence level.

*/

_SECTION_BEGIN("Intraday ORB Exploration");

SetChartOptions( 0, chartShowArrows | chartShowDates );
//("ORB");

BT = ParamTime ("Open Breakout Time", "09:15");
afterbreakout0 = Cross(TimeNum(),BT);
afterbreakout1 = TimeNum()>=BT;
NewDay = Day()!= Ref(Day(), -1);
highestoftheday = HighestSince(newday,H,1);
Lowestoftheday =LowestSince(newday,L,1);
ORBH = ValueWhen(afterbreakout0,highestoftheday,1);
ORBL = ValueWhen(afterbreakout0,lowestoftheday,1);
ORBM = (ORBH + ORBL)/2;
Plot(ORBH,"",colorGreen,styleDots);
Plot(ORBL,"",colorRed,styleDots);
Plot(ORBM, "", colorBlack, styleDots);
Plot ( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
ORBHG=H-ORBH;
ORBLG=ORBl-L;
Filter = ORBH OR ORBL;
AddColumn( ORBH, "C>ORBH", 1.2, colorDefault, IIf(Close>ORBH, colorGreen, IIf(Close>ORBM, colorSeaGreen, colorDefault)));
AddColumn( ORBL, "C<ORBL", 1.2, colorDefault, IIf(Close<ORBL, colorRed, IIf(Close<ORBM, colorOrange, colorDefault)));
AddColumn( ORBHG, "ORB High Breakout Gain", 1.2, colorDefault, IIf(ORBHG>0, colorGreen, colorDefault));
AddColumn( ORBLG, "ORB Low Breakout Gain", 1.2, colorDefault, IIf (ORBLG>0, colorRed, colorDefault));
SetSortColumns(1);
 

amitrandive

Well-Known Member
#4
Johnny Bhai

The issue is that even in equities , this scan ctaches only those scrips connected with yahoo data having a .NS extension.It does not catch equity futures or any other stocks .

Amit
 

Similar threads