freshpotato 36 posts msg #58361 - Ignore freshpotato | 
12/20/2007 10:08:39 PM
  set{High%, 150}
 set{Low%, 140}
 and close is between Low% and High%
 
 If I do and close is between 140 and 150 that's fine
 
  | 
TheRumpledOne 6,529 posts msg #58364 - Ignore TheRumpledOne modified | 
12/21/2007 12:16:39 AM
 
  	    
 
 Rule of thumb: 
 
 DON'T USE SPECIAL CHARACTERS OR RESERVED WORDS IN VARIABLE NAMES.
 
 But I don't think that is the real problem.  SF seems to have problems SOMETIMES when you assign numbers in SET statements.
 
  | 
nikoschopen 2,824 posts msg #58367 - Ignore nikoschopen | 
12/21/2007 2:28:47 AM
  Well, call it a fuzzy logic. It's my understanding that you can't assign a string value when using the "between" modifier. Geez, talk about no strings attached.
 
 :?)
 
  | 
guru_trader 485 posts msg #58368 - Ignore guru_trader | 
12/21/2007 3:30:17 AM
  I have noticed the same problem when using numbers in set statements ... best to avoid them.
 
  | 
TheRumpledOne 6,529 posts msg #58377 - Ignore TheRumpledOne | 
12/21/2007 9:24:25 AM
  Well, call it a fuzzy logic. It's my understanding that you can't assign a string value when using the "between" modifier. Geez, talk about no strings attached. 
 
 ..........................
 
 You mean you can't use a variable, right?
 
  | 
nikoschopen 2,824 posts msg #58393 - Ignore nikoschopen | 
12/21/2007 3:36:57 PM
  Any non-numeric value, including a variable from predefined set, can be considered as a string. 
 
 This will work:
 price is between 140 and 150
 
 This will NOT work:
 price is between MA(20) and MA(50)
 
  |