// Downloaded From https://www.WiseStockTrader.com
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", colorRed ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

_SECTION_BEGIN("FRACTION THEORY");

// Day FRACTIONAL Calculation

A   =  (H + L + C);
Z  =  (0.67);
T  =  (A * Z);
S   =  (T - H);
R   =  (T - L);
PB  =  (T - C);

Plot(s,"",colorWhite,styleLine|styleNoRescale);
Plot(R,"",colorGreen,styleLine|styleNoRescale);
Plot(PB,"",colorGold,styleLine|styleNoRescale);
Plot(O,"",colorPaleGreen,styleLine|styleNoRescale);
Plot(H,"",colorBlue,styleLine|styleNoRescale);
Plot(L,"",colorIndigo,styleLine|styleNoRescale);


_SECTION_END();