Morning Afternoon Evening Session Plotter

#1
Requesting experts to create this AFL for Amibroker for a easy visual trading strategy in MCX.

As there are three sessions in MCX market and each session would need a different analysis I wanted to request if you can modify or create a AFL which can display the Horizontal Bars demarking 3 sessions
which can also plot the Low and High of previous sessions

3 sessions in MCX market
1 Session : 10:00-13:30
2 Session : 13:30-17:30
3 Session : 17:30 -23:30

I am right now manually drawing a rectangle for each session to differentiate visually.
https://imageshack.com/i/hlCpgnGRp

I have found the base code which can help in editing, but I am not proficient to edit the AFLs.

http://www.amibroker.com/library/detail.php?id=1263
Intraday Range and Periods Framer

and also in the Traderji post which I found to extend the Line till Next session

_SECTION_BEGIN("Ist Hr. High-Low Marker");
SetChartOptions(0,chartShowArrows|chartShowDates);
SetChartBkColor(ParamColor("Outer panel",colorBlack));
SetChartBkGradientFill(
ParamColor("Inner panel upper",colorBlack),
ParamColor("Inner panel lower",colorBlack));
TM=Param("Time",101500,110000,235500,1);
afterbreakout0 = Cross(TimeNum(),TM);
afterbreakout1 = TimeNum()>=TM;
NewDay = Day()!= Ref(Day(), -1);
highestoftheday = HighestSince(newday,H,1);
Lowestoftheday =LowestSince(newday,L,1);
ORBHigh = ValueWhen(afterbreakout0,highestoftheday,1);
ORBLow = ValueWhen(afterbreakout0,lowestoftheday,1);
Plot(C,"",colorWhite,styleCandle);
Plot(NewDay,"",colorWhite,styleHistogram|styleOwnScale);
Plot(afterbreakout0,"",colorBlue,styleHistogram|styleOwnScale);
Plot(ORBHigh,"",colorLime,styleDots);
Plot(ORBLow,"",colorRed,styleDots);
_SECTION_END();
 

Similar threads