Need guidance in plotting grid with multiples

SetOption("WarningLevel", 1);
SetChartOptions( Mode = 0, Flags = 0, gridmargins = 0) ;
SetChartOptions(1, chartShowArrows|chartDisableTooltips,gridmargins = 0);
NewHour = Hour() != Ref( Hour() , -1 );
Newday = Day() != Ref( Day() , -1 );
NewMonth = Month() != Ref( Month() , -1 );
NewWeek = DayOfWeek() < Ref( DayOfWeek(), -1 );
NewQuarter = ( Month() == 1 AND NewMonth ) OR( Month() == 4 AND NewMonth ) OR( Month() == 7 AND NewMonth ) OR( Month() == 10 AND NewMonth );
NewYear = Year() != Ref( Year() , -1 );

NextHour = Hour() != Ref( Hour() , 1 );
Nextday = Day() != Ref( Day() , 1 );
NextMonth = Month() != Ref( Month() , 1 );
NextWeek = DayOfWeek() > Ref( DayOfWeek(), 1 );
NextQuarter = ( Month() == 12 AND NextMonth ) OR( Month() == 3 AND NextMonth ) OR( Month() == 6 AND NextMonth ) OR( Month() == 9 AND NextMonth );
NextYear = Year() != Ref( Year() , 1 );
////////////////

abc=TimeFrameGetPrice("O",inHourly);


plotp=Param("Percentage for plotting ",1.2,0,100)/100;
numbars = LastValue(Cum(Status("barvisible+20")));
hts = -33.5;


///////////////////////////////////////////////////

	 
////////////////
Interval_Type = ParamList("Start Calculation4",List = "Hourly,Daily,Weekly,Monthly,Quarterly,Yearly,From Start",3);  
Interval_Select = IIf( Interval_Type == "Hourly", inHourly,
                       IIf( Interval_Type == "Daily", inDaily,
                            IIf( Interval_Type == "Weekly", inWeekly,
                                 IIf( Interval_Type == "Monthly", inMonthly,
                                      IIf( Interval_Type == "Quarterly", inQuarterly,
                                              IIf( Interval_Type == "Yearly", inYearly, Interval() ) ) ) ) ) );

New_Intreval = IIf( Interval_Type == "Hourly", NewHour,
                    IIf( Interval_Type == "Daily", Newday,
                         IIf( Interval_Type == "Weekly", NewWeek,
                              IIf( Interval_Type == "Monthly", NewMonth,
                                   IIf( Interval_Type == "Quarterly", NewQuarter,
                                        IIf( Interval_Type == "Yearly", NewYear, 0 ) ) ) ) ) );

Next_Intreval = IIf( Interval_Type == "Hourly", NextHour,
                     IIf( Interval_Type == "Daily", Nextday,
                          IIf( Interval_Type == "Weekly", NextWeek,
                               IIf( Interval_Type == "Monthly", NextMonth,
                                    IIf( Interval_Type == "Quarterly", NextQuarter,
                                            IIf( Interval_Type == "Yearly", NextYear, 0 ) ) ) ) ) );
//Plot( New_Intreval, "", Colorlightgrey, Stylehistogram | Styledashed | Styleownscale | Stylenolabel | styleNoTitle, Null, Null, 0, -256, 1 );
//Plot(Next_Intreval, "", Colorlightgrey, Stylehistogram |Styledashed| Styleownscale|Stylenolabel |styleNoTitle, Null, Null, 0,-256, 1);

Intreval_Open = TimeFrameGetPrice( "O", Interval_Select, 0 );
Intreval_High = HighestSince( New_Intreval, High );
Intreval_Low = LowestSince( New_Intreval, Low );
Intreval_Close = Close;
Intreval_Volume = Sum( Volume, BarsSince( New_Intreval ) );
Intreval_Openint = OpenInt;
hv = HighestSince(New_Intreval, H);
lv = lowestSince(New_Intreval, l);
Price_Movement1 = Param( "1st Price Movement %", 1, 0.1, 1000, 0.1 ) / 100;
l1p = lv + (lv*Price_Movement1);// need plot grids using this multiple green color
h1p = hv - (hv*Price_Movement1);;// need plot grids using this multiple red color

searched more this forum but could find the solution
thanks

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.