Hi Krst
Use a Date Filter as below to set start and end dates and use number of bars in the EST instead of dates. You'll need to set this number high enough to include the start date and sufficient lead-in time. I would include " AND Fml("Date Filter") " in the entry code and " OR Fml("Date Filter")=FALSE " in the exit code. You will need to change the default values for all inputs, not the user values through the Parameters window.
Roy
{Date Filter}
Sd:=Input("Start day" ,1,31,1);
Sm:=Input("Start month",1,12,1);
Sy:=Input("Start year" ,1980,2010,2008);
Ed:=Input("End day" ,1,31,31);
Em:=Input("End month" ,1,12,12);
Ey:=Input("End year" ,1980,2020,2009);
Start:=(DayOfMonth()>=Sd AND Month()=Sm AND
Year()=Sy) OR Year()>Sy OR (Year()=Sy AND Month()>Sm);
End:=(DayOfMonth()<=Ed AND Month()=Em AND
Year()=Ey) OR Year()<Ey OR (Year()=Ey AND Month()<Em);
Start AND (End OR (Start AND Alert(Start=0,2)));