StockFetcher Forums · Filter Exchange · Debugging Help Please - Adding decimal values<< >>Post Follow-up
bka58
49 posts
msg #108304
Ignore bka58
10/6/2012 12:48:14 AM

The following partial filter is now correctly setting the variable uv4. When I try to add 1 or 1.0000 to uv3, the result is 1 instead of the factional value I was expecting.

Does anyone have any thoughts about what I am doing wrong? Thanks in advance.


symlist(DRN,EDC,TMF,UMDD,UPRO)

set{uv1,price 63 days ago - price}
set{uv2,uv1 / price} /*3 mo rtn*/
set{uv3,uv2 / 100}
set{uv4,1.0000 + uv3}
set{uv5,price * uv4}
set{uv6,price / uv5}
set{uv8,pow(uv6, .01587)}

add column uv1
add column uv2
add column uv3
add column uv4
add column uv5
add column uv6
add column uv8

bka58
49 posts
msg #108305
Ignore bka58
10/6/2012 12:51:02 AM

Fetcher[
symlist(DRN,EDC,TMF,UMDD,UPRO)

set{uv1,price 63 days ago - price}
set{uv2,uv1 / price} /*3 mo rtn*/
set{uv3,uv2 / 100}
set{uv4,1.0000 + uv3}
set{uv5,price * uv4}
set{uv6,price / uv5}
set{uv8,pow(uv6, .01587)}

add column uv1
add column uv2
add column uv3
add column uv4
add column uv5
add column uv6
add column uv8
]



Kevin_in_GA
4,599 posts
msg #108306
Ignore Kevin_in_GA
10/6/2012 8:55:25 AM

Try multiplying by 1000 to get the decimal values seen. SF tends to truncate columnar values to two digits.

StockFetcher Forums · Filter Exchange · Debugging Help Please - Adding decimal values<< >>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.