// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("Price");
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", colorWhite ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
TS1=HHV(L,10)-1*ATR(39);
TS2=HHV(L,10)-2*ATR(39);
TS3=LLV(H,10)+1*ATR(39);
TS4=LLV(H,10)+2*ATR(39);
WeekH = TimeFrameGetPrice("H", inWeekly, -1);		// yesterdays high
WeekL = TimeFrameGetPrice("L", inWeekly, -1);		//				low
WeekC = TimeFrameGetPrice("C", inWeekly, -1);		//				close
PP=(WEEKH+WEEKL+WEEKC)/3;
Buyprofit=pp+ 2.5*ATR(39);
Sellprofit=pp-2.5*ATR(39);
Plot(TS1,"TS1",colorWhite,styleLine);
//Plot(TS2,"TS2",colorYellow,styleLine);
Plot(TS3,"TS3",colorOrange,styleLine);
//Plot(TS4,"TS4",colorPink,styleLine);
Plot(Buyprofit,"bpr",colorRed,styleLine);
Plot(Sellprofit,"spr",colorSkyblue,styleLine);
_SECTION_END();