lis 37 posts msg #161102 - Ignore lis |
5/25/2024 5:23:01 PM
Posted this earlier in Announcements thread discussing the Count() feature. However, no answers received, so trying here. Any thoughts?
-----
I'm trying to do this, but it's giving me zero values for 'hit_btm' or 'hit_top' when there were actually times the high was above the up5 and/or the low was below the down5. What am I doing wrong?
Submit
|
lis 37 posts msg #161103 - Ignore lis |
5/25/2024 5:26:39 PM
For example, NKE for today (May 25, 2024) is showing '0' under the 'hit_top' column - even though there are a number of bars appearing above the top line...
|
nibor100 1,042 posts msg #161104 - Ignore nibor100 |
5/25/2024 7:14:39 PM
I didn't spend too much time on this issue but if you add the following to your filter it may indicate what is actually going on when you look at a chart of NKE....
Ed S.
draw up5 draw high minus up5
|
lis 37 posts msg #161105 - Ignore lis modified |
5/26/2024 11:34:45 PM
Thanks, nibor100. A 'duh' moment for sure. ;)
How would I get a static value for the highest and lowest close in the last 100 day period?
|
nibor100 1,042 posts msg #161106 - Ignore nibor100 |
5/27/2024 12:27:57 PM
I believe SF processes filters in order, from oldest date until current date. therefore fixing a static value such as 100 day highest high would require it to happen on the firs day of the 100 day, as SF can't look into the future and it does not seem to have looping capability.
Ed S.
|
lis 37 posts msg #161107 - Ignore lis |
5/27/2024 3:00:10 PM
I believe you're right, Ed. It makes sense that StockFetcher would be processing 'bars', as other software packages do. I don't know why I didn't see that right away! Thanks for the clarification.
|