StockFetcher Forums · General Discussion · Math help, please<< >>Post Follow-up
graftonian
1,089 posts
msg #128938
Ignore graftonian
6/4/2016 8:20:53 PM

Is it possible to write SF code to accomplish:

y = e^x

four
5,087 posts
msg #128939
Ignore four
modified
6/4/2016 9:07:26 PM

http://www.stockfetcher.com/forums2/Announcements/More-Math-Functions-Available/32061/-1/32061

http://www.stockfetcher.com/forums2/Announcements/Many-More-Math-Functions/45281/-1/45281

-------------------

/*
exp(indicator): Return the value of e raised to the specified power.
*/

draw exp(rsi(12))

-----------------

guru_trader
485 posts
msg #53923
- Ignore guru_trader
modified 8/9/2007 2:20:06 AM

And, if you want the root of a function simply raise your measure to the decimal equivalent of its fraction. For example ...

the 1st root of the CLOSE = close^(1/1)
the 2nd (square) root of the CLOSE = close^(1/2)
the 3rd (cube) root of the CLOSE = close^(1/3)
the 4th root of the CLOSE = close^(1/4)
Fetcher[
and add column pow(close,1.00)
and add column pow(close,0.50)
and add column pow(close,0.33)
and add column pow(close,0.25)
]



graftonian
1,089 posts
msg #128946
Ignore graftonian
6/5/2016 1:10:56 PM

Four, I searched for hours, thank you.


four
5,087 posts
msg #128947
Ignore four
6/5/2016 1:39:54 PM

welcome

graftonian
1,089 posts
msg #128949
Ignore graftonian
modified
6/5/2016 2:59:05 PM

Here is what i was trying to accomplish. Don't know if it is worth time and effort.

Fetcher[
/*creating an IFT based on Williams %R(30)*/
draw Williams %R(30)
/*1. transform and scale W%R to an output range of +5 to -5 */
set{W2, Williams %R(14) + 50}
set{W, W2 / 10}
/*determine e^2W */
set{power, 2 * W}
set{E, exp(power)}
/* numerator is E - 1 and denominator is E + 1 */
set{num, E - 1}
set{denom, E + 1}
/* And finally W_IFT */
set{W_IFT, num / denom}
add column W_IFT
draw W_IFT
draw W_IFT line at .6
draw W_IFT line at -.4
/* scale W to superimose on W_IFT */
set{scale_W, W / 5}
draw scale_W on plot W_IFT
]



Back in my flying days it was said that the best instrument would be one that had two segments; a green one labeld OK, and red one labeled BAIL OUT! No gray area

StockFetcher Forums · General Discussion · Math help, please<< >>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.