Fline = DateNum() == ParamDate("DATU1", "10/01/2012", 0); //plot vertical line
Sline = DateNum() == ParamDate("DATU2", "10/10/2012", 0); //plot vertical line
Shift=fline-sline;
Plot(fline, "", colorLightBlue, styleHistogram | styleOwnScale | styleNoLabel | styleThick);
Plot(sline, "", colorLightBlue, styleHistogram | styleOwnScale | styleNoLabel | styleThick);
_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
if u input two particular dates this afl write 2 vertical lines
i request u to try get the difference between the dates and draw all further
lines from second dates+difference between dates
put it this in loop to draw all the lines
Sline = DateNum() == ParamDate("DATU2", "10/10/2012", 0); //plot vertical line
Shift=fline-sline;
Plot(fline, "", colorLightBlue, styleHistogram | styleOwnScale | styleNoLabel | styleThick);
Plot(sline, "", colorLightBlue, styleHistogram | styleOwnScale | styleNoLabel | styleThick);
_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
if u input two particular dates this afl write 2 vertical lines
i request u to try get the difference between the dates and draw all further
lines from second dates+difference between dates
put it this in loop to draw all the lines