jimdandy 13 posts msg #161361 - Ignore jimdandy | 
9/13/2024 3:58:39 PM
  Hello,
 
 I am wondering why these two lines are not delivering the same result:
 
 volume > 2 * volume one day ago
 
 and
 
 set {dob, volume one day ago * 2}
 volume > dob
 
 The first one is delivering far more results.
 
 Somebody can help me on this?
 
 Thank you!
 
  | 
snappyfrog 749 posts msg #161362 - Ignore snappyfrog | 
9/13/2024 7:21:01 PM
 
  	    
 
  	    
 
 And this is different also:
 
  	    
 
 
  | 
xarlor 620 posts msg #161363 - Ignore xarlor | 
9/13/2024 9:14:16 PM
  SF cannot have more than 1 calculation per line.
 
 This has 2 calculations in the line and so breaks SF
    Calculation 1: volume >
    Calculation 2: 2 * volume one day ago:
 
  	    
 
 
 This has only one calculation per line and is the correct way to write what you intended:
 
  	    
 
  | 
nibor100 1,099 posts msg #161364 - Ignore nibor100 | 
9/14/2024 9:08:54 AM
  for some added oddness:
 Ed S.:
 
  	    
 
  | 
jimdandy 13 posts msg #161365 - Ignore jimdandy | 
9/14/2024 2:02:31 PM
  Thank you for the explanation!
 
  | 
xarlor 620 posts msg #161366 - Ignore xarlor | 
9/14/2024 7:56:54 PM
  To elaborate, after SF reaches the first calculation, it ignores everything else in the line.  So essentially, this line:
 
 volume > 2 * volume one day ago 
 
 is being interpreted by SF as:
 
 volume > 2
 
 This is why it returns the entire universe of tickers, more or less.
 
  |