StockFetcher Forums · Filter Exchange · Help with MIN function<< >>Post Follow-up
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

Fetcher[

SET{VAR1,1}
set{stop,min(low,VAR1)}


]



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

StockFetcher Forums · Filter Exchange · Help with MIN function<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.