Crossover signals plotting inside and outside the date range 
 Thread Status:   No Status  Resolved  Not Resolved  
 Reply http://forum.equis.com/forums/AddPost.aspx?PostID=44391 Quote 
http://forum.equis.com/forums/AddPost.aspx?PostID=44391&Quote=True Delete 
http://forum.equis.com/forums/DeletePost.aspx?PostID=44391&ReturnUrl=%2fforums%2f3040%2fShowForum.aspx
 Edit 
http://forum.equis.com/forums/EditPost.aspx?PostID=44391&ReturnUrl=%2fforums%2fShowThread.aspx%3fPostID%3d44391%2344391
 Favorites http://forum.equis.com/forums/thread/44391.aspx#  
Contact http://forum.equis.com/forums/thread/44391.aspx# 


 
 
 Below is my code for determining the lowest low between dates and then 
plotting signals of crossover of Close 
 over the LL line in the post LL periods (right side of the LL only). On some 
charts the signals are plotting correctly 
 within the date range but in other cases the signals are plotting inside, as 
well as outside the date range. Outside
 the date range is before the LL was made (left side of chart).
 
 sd:=
 sm:=
 sy:=
 ed:=
 em:=
 ey:=
 
 start:=Year()>sy
  OR (Year()=sy AND (Month()>sm
  OR Month()=sm AND DayOfMonth()>=sd));
 end:=Year()<ey
  OR (Year()=ey AND (Month()<em
  OR Month()=em AND DayOfMonth()<=ed));
 
 lo:=LastValue(Lowest(ValueWhen(1,start and end,L)));
 
 sd:=ValueWhen(1,L=lo,DayOfMonth());
 sm:=ValueWhen(1,L=lo,Month());
 sy:=ValueWhen(1,L=lo,Year());
 
 start:=Year()>sy
  OR (Year()=sy AND (Month()>sm
  OR Month()=sm AND DayOfMonth()>=sd));
 
 DnSignals:=Cross(lo,C);
 UpSignals:=Cross(C,lo);
 
 -If(start AND DnSignals,DnSignals,0);
 If(start AND UpSignals,UpSignals,0);

 
 1) How can I make the signals plot in the date range only?
 2) If used in explorer what code should I use to exclude stocks that have 
started quoting
 after the first start date.


 

Reply via email to