StockFetcher Forums · General Discussion · “Ulcer Index” in StockFetcher?<< >>Post Follow-up
glgene
554 posts
msg #149372
Ignore glgene
10/17/2019 9:58:23 PM

I have read in some old-time SF posts that the indicator “Ulcer Index” is not available in StockFetcher.

Is that still the case? If it is, does anyone know how to program SF to create Ulcer Index?

I would like to run a SF script that would allow me to include a “UI” column next to stock data, as follows:

Fetcher[
Symlist(spy,qqq,iwm,dis,aapl,lmt)
Add column Ulcer Index
]



Gene in FL

Cheese
455 posts
msg #149375
Ignore Cheese
modified
10/18/2019 4:21:22 PM

Fetcher[
/* https://www.stockfetcher.com/forums/General-Discussion/Is-this-correct/147948 */
/* using Ulcer Index code by pa247 5/30/2019 9:42:41 AM *//* Village Elder 5/29/2019 *//* nibor100 5/30/2019 */
SYMLIST(SPY,QQQ,IWM)
set{HC, close 14 day high}
set{draw_down1, HC - close}
set{draw_down2, draw_down1/HC }
set{draw_down3, 100 * draw_down2}
set{dp, draw_down3 * draw_down3}
set{dpma,cma(dp,14)}
set{UI,pow(dpma,0.5)}
add column UI {Ulcer Index}
]



xarlor
114 posts
msg #149377
Ignore xarlor
10/18/2019 5:34:06 PM

I was working off the same post and ya beat me to it. Glad we were thinking along the same lines. I noticed the SF version produces a much smoother Ulcer Index, not sure why though.






Cheese
455 posts
msg #149378
Ignore Cheese
10/18/2019 5:57:03 PM

We seem to be a few people who are still around to help in a nice way.
Cheers,

glgene
554 posts
msg #149379
Ignore glgene
10/18/2019 10:06:38 PM

Thank you Ed (nibor100), Cheese and Xarlor...

I’ll work with the script you provided. Well done! I’ll be seeing Ed tomorrow at a monthly meeting we both typically attend.

Gene in FL

sandjco
393 posts
msg #149380
Ignore sandjco
10/19/2019 6:15:55 PM

Thank you all

wcurtis
40 posts
msg #149381
Ignore wcurtis
10/20/2019 1:28:21 PM

Thank you all


StockFetcher Forums · General Discussion · “Ulcer Index” in StockFetcher?<< >>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 2018 - 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