StockFetcher Forums · General Discussion · set{yy, close - high 30 day high}<< >>Post Follow-up
jpistell
123 posts
msg #34820
Ignore jpistell
1/9/2005 9:47:50 AM

Having problems with the following:

draw high 30 day high
set{yy, close - high 30 day high}
add column yy


It looks simple, but is there a limitation in the set{ that makes it return the high of today? I would like to return >todays close minus the 30 day high<. Sounds easy, but I've hit a wall.

Any help would be appreciated.
Trader Joe



dangreene
229 posts
msg #34821
Ignore dangreene
1/9/2005 1:41:17 PM

Trader Joe,

How about;

Fetcher[
Show stocks where close is between 4 and 5
set{tdc, close}
set{hi, 6 week high}
set{yy, tdc minus hi}
and add column tdc
and add column hi
and add column yy
]



Is this what you are getting at?

dangreene



jpistell
123 posts
msg #34822
Ignore jpistell
1/9/2005 1:49:34 PM

dan,
You nailed it!

many thnx,
Joe


jpistell
123 posts
msg #34823
Ignore jpistell
1/9/2005 1:53:54 PM

woops,
Spoke too soon. It's returning the high of the day (not 30 day high)

Back to the drawing board,

Trader Joe


jpistell
123 posts
msg #34824
Ignore jpistell
1/9/2005 2:03:16 PM

here we go:

Fetcher[Show stocks where close is between 4 and 5
set{tdc, close}
set{hi, high 6 week high}
set{yy, tdc minus hi}
set{tt, yy / hi}
set{MaxProfit, tt * 100}
and add column tdc
and add column hi
and add column yy
add column tt
add column MaxProfit
draw hi on plot price
]



many thnx again!
Trader Joe


StockFetcher Forums · General Discussion · set{yy, close - high 30 day high}<< >>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.