Elliott WaveCycle

#1
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
 
#2
Small changes and improved

Plot( Close, "close", colorWhite, styleCandle);
mydate = ParamDate("date", "2012-02-01");
shift=Param("Days",1,1,200,1);
BI = BarIndex();
DateBI = LastValue(ValueWhen( DateNum() == mydate, BI) );
Line = (bi - DateBI)%shift == 0;
Plot( Line , "", colorRed,styleHistogram|styleOwnScale|styleNoLabel,0,1);

it is helpful to improve this entry for future bars
 

Similar threads