// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("DayBarCounter"); if (BeginValue(BarIndex()) != 0 ) { Lvl = ParamField("PriceField", field = 3 ); FirstBar = BeginValue(BarIndex()); Linya = IIf(BarIndex() >= FIRstbar, EndValue(Lvl),Null); Range = BarIndex()-BeginValue(BarIndex()); Title += EncodeColor(colorLightGrey)+StrFormat("\n\nBars.....%g ", range) +"\nDays...."+ WriteVal( DaysSince1900() - BeginValue( DaysSince1900()),1) + WriteIf(DaysSince1900() - BeginValue( DaysSince1900())>30, " (" + WriteVal( (DaysSince1900() - BeginValue( DaysSince1900()))/30,1.2) + WriteIf( ((DaysSince1900() - BeginValue(DaysSince1900()))/30)>=2,"months)","month)"),"") +"\nG/L......." +WriteVal((C - BeginValue(C))/BeginValue(C)*100,1.2 ) + "% "; Plot(Linya,"",colorBrightGreen,ParamStyle("LineStyle",styleLine|styleDashed|styleNoTitle|styleNoLabel|styleThick,maskAll)); } _SECTION_END();