| MikeB60046 43 posts
 msg #80838
 - Ignore MikeB60046
 | 10/8/2009 5:53:58 PM 
 I am trying to create a "stop loss" column and want the value to be either the low of the day or $1, whichever is lower.
 
 set{stop,math.minimum(low,1)}  this does not seem to work.  How can I get this function to provide me the right value for stop?
 
 
 | 
| Kevin_in_GA 4,599 posts
 msg #80841
 - Ignore Kevin_in_GA
 | 10/8/2009 8:20:03 PM 
 Minimum (min)
 --------------------------------------------------------------------------------
 Parameters
 Indicator1
 Indicator2
 Usage Min(ind1,ind2)
 
 Description: This indicator returns the minimum of two values.
 
 
 Try the following:
 
 set{stop,min(low,1)}
 
 Kevin
 
 
 | 
| MikeB60046 43 posts
 msg #80842
 - Ignore MikeB60046
 | 10/8/2009 9:21:15 PM 
 Thanks Kevin but that errored out with a syntax error.  It should have worked but did not.
 
 
 | 
| chetron 2,817 posts
 msg #80857
 - Ignore chetron
 | 10/9/2009 6:58:13 AM 
 NO NUMBERS ALLOWED.....
 = D
 
 
 
 
 
 | 
| MikeB60046 43 posts
 msg #80939
 - Ignore MikeB60046
 | 10/10/2009 8:09:54 AM 
 Thanks cetron. That worked.
 
 
 | 
| chetron 2,817 posts
 msg #80944
 - Ignore chetron
 | 10/10/2009 10:16:16 AM 
 you're very welcome
 
 
 |