Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Data want;
  2. set test;
  3. lagPrice=lag(Price);
  4. lag10Price=lag10(Price);
  5. if Price>lagPrice and not missing(lagPrice) then Increasing ++ 1 ;
  6. else Increasing=0 ;
  7. if Increasing > 9 then TrendUp=1 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement