StockFetcher Forums · General Discussion · Math Operators Not Working with ABS<< >>Post Follow-up
Underworlds
30 posts
msg #100126
Ignore Underworlds
4/5/2011 8:02:20 PM

I don't know if this is a bug, or if an intentional change was made to the way that ABS works, but I just realized that the plus and minus mathematical operators (+ -) do not work with the ABS() function.

Using the following code...

Fetcher[/* Get average size of candlestick */
set{bodysize, ABS(open - close)}

show stocks
add column bodysize{Body}
]



The value being returned in the AVGBody column is incorrect. In order to get correct results, I am having to write out the operator in word form, such as in...

Fetcher[/* Get average size of candlestick */
set{bodysize, ABS(open minus close)}

show stocks
add column bodysize{Body}
]



StockFetcher Forums · General Discussion · Math Operators Not Working with ABS<< >>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.