StockFetcher Forums · General Discussion · What is filter phrase for exposnent function<< >>Post Follow-up
kirk123
23 posts
msg #161287
Ignore kirk123
8/2/2024 10:21:05 PM

Hi,

Can somebody please help me what is the filter phrase for the exponent function. Example is I'd like to raise x to the exponent 2 , x^2 or x to the exponent 5 , x^5. thanks

xarlor
581 posts
msg #161301
Ignore xarlor
8/12/2024 11:14:42 AM

From https://www.stockfetcher.com/forums/Announcements/Many-More-Math-Functions/45281/0

pow(indicator,power)

Because it expects an indicator, you can't just throw a number in there. To get around that, you can set a number to a variable as in the example below.

Fetcher[
set{foo,3}
set{test,pow(foo,2)}
set{test2,pow(foo,3)}
set{test3,pow(foo,4)}

add column separator
add column test {squared}
add column test2 {cubed}
add column test3 {to the fourth}
]



StockFetcher Forums · General Discussion · What is filter phrase for exposnent 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.