StockFetcher Forums · General Discussion · SF question re; "near"<< 1 2 >>Post Follow-up
glgene
616 posts
msg #96879
Ignore glgene
10/12/2010 11:51:16 PM

For anyone who is reading this for the first time, please note:

Day-end position of 1.00 means the stock closed at the high of the day

Day-end position of 0.00 means the stock closed at the low of the day.

Anything in between means stock didn't close at high or low of the day. A higher number (e.g. .80 vs. .35) is better if you're looking for 'long' strength.

four
5,087 posts
msg #96880
Ignore four
10/12/2010 11:53:23 PM

Fetcher[


set{hi, high}
set{cls, close}
set{percent, cls / hi}
set{x100, percent * 100}
add column high
add column x100 {close percent of high}

]



glgene
616 posts
msg #96882
Ignore glgene
10/13/2010 12:09:05 AM

four,

Your end-of-day run on 10-12-2010 shows EEM with an day-end position of 99.78%. I show 83%. ??? If yours is correct, that might explain my scripting logic on a stock that loses on a given day. If mine is correct, ????

Anyone else?



glgene
616 posts
msg #96884
Ignore glgene
10/13/2010 12:49:31 AM

four,

After seeing your post and manually checking both of our scripts, I concede that yours is correct (at least with stocks that rise in a given day). Thanks for your correctness. Still not sure about a stock that loses in a day. ???

traderseb
36 posts
msg #96886
Ignore traderseb
10/13/2010 7:49:23 AM

Try this:


Fetcher[
set{num, close - low}
set{x, num / day point range}
add column x
]




four
5,087 posts
msg #96899
Ignore four
10/13/2010 12:27:26 PM

TRY...

Fetcher[

set{cls, close}
set{hi, high}
set{lo, low}

set{hilo, hi - lo}
set{clslo, cls - lo}

set{x, clslo / hilo}

add column x

]



traderseb
36 posts
msg #96917
Ignore traderseb
10/14/2010 6:32:49 AM

Yes, that is the way I would do it if I enjoyed adding extraneous lines of code and wasting set statement resources.

StockFetcher Forums · General Discussion · SF question re; "near"<< 1 2 >>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.