Dear All,
I Have written a code which Plots Previous Day high and low Using Plot function .
SetChartOptions(0,chartShowArrows|chartShowDates);
_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() );
//==================================================================================================================
DailyTF = inDaily;
PrevDayHigh = TimeFrameGetPrice("H",DailyTF,-1);
PrevDayLow = TimeFrameGetPrice("L",DailyTF,-1);
//===========================================================
// Market start time is - 9.15 Close time is -- 15.30
PlotStartTime = 091501 ;
PlotEndTime = 153000 ;
Plot( IIf(TimeNum() < PlotStartTime ,Null,PrevDayHigh), "",colorLavender,styleDashed);
Plot( IIf(TimeNum() < PlotStartTime ,Null,PrevDayLow), "",colorLavender,styleDashed);
As Plotting Horizontal lines using Plot Function is not efficient . I want to do the same using Gfx function . Also I do not want this small Gap as shown below in attached image .