StockFetcher Forums · Filter Exchange · ROUND function question<< >>Post Follow-up
523 posts
msg #95576
Ignore glgene
8/11/2010 3:00:38 PM

I'm trying the new ROUND function, but am not getting the desired results.

Here is the SF instructon:

round (indicator, decimal offset) It rounds to nearest value based on decimal offset.

Here is my simple, attempted script:

symlist (vti)
set{a, rsi(10)}
set{b, rsi(20)}
set {c,a/b}
add column c

I get only 2 decimal places in the add column line. I want 4 decimal places.


3,847 posts
msg #95578
Ignore Kevin_in_GA
8/11/2010 3:07:01 PM

Do you really need 4 decimal places? Honestly?

The RSI values are in all likelihood rounded to two decimal places, so you cannot be more precise than this, even if you are taking a ratio. The round off error in the inputs is what matters, not the ratio.

523 posts
msg #95580
Ignore glgene
8/11/2010 3:50:16 PM


I don't really need 4 decimals in this case (RSI). This is just an example only. My example is flawed, that's why I am seeking a solution. SF says you can specify the number of places to the right of the decimal. ???


StockFetcher Forums · Filter Exchange · ROUND function question<< >>Post Follow-up

*** Disclaimer *** 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. does not recommend particular securities., 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 2016 - 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