Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 3/16/2009(UTC) Posts: 11 Location: Sydney
|
Hi
I am getting the following error when inserting dates in the simulation dates and can't seem to get passed it:
Error: The specified ‘From’ date falls outside the range of the selected local data
I am trying to run my test over certain periods in the past - doing specific periods at a time going back to 2004.
No matter what dates I put in here it gives me the same error.
Any help would be much appreciated
Regards
Ksrt
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
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)));
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.