StockFetcher Forums · Filter Exchange · Specifying a particular bar in the past<< >>Post Follow-up
VictorChan
3 posts
msg #125103
Ignore VictorChan
9/21/2015 9:09:34 AM

How to ask StockFetcher to locate a particular bar in the past?

For example, how can I tell it to find the last bar that makes the new 20-day high?

Or how to find the last bar that crossed the 50-day moving average?

Any idea?

VictorChan
3 posts
msg #125225
Ignore VictorChan
9/24/2015 11:06:12 AM

I want to express this logic:

In the last 10 days, a new 40 day high was reached, and the day that made the high had the highest volume in 5 days.

I wrote the following but stockfetcher cannot understand

set{var1,days(high reached a new 40 day high,10)}
set{var2,volume var1 day ago}
var2 reached a 5 day high

mktmole
325 posts
msg #125243
Ignore mktmole
9/25/2015 9:23:09 AM

I beleive 'four' wrote something about referencing todays price compared to a bar in the past, but sorry I can't find his post

four
3,998 posts
msg #125262
Ignore four
9/25/2015 11:55:04 AM

http://www.stockfetcher.com/forums2/Announcements/New-Feature-Days-Since/29428

VictorChan
3 posts
msg #125275
Ignore VictorChan
9/26/2015 7:29:15 AM

Thanks for the "day since" post, but the problem is not about this (I used this in the example). The problem is that after I found out the "day since" number, I am unable to put it into the "days ago" parameter.

If I want to use "days ago", I must input a direct number, like "3 days ago" but I cannot set a variable (say "Var1") and use "Var1 days ago". StockFetcher simply does not recognise it.

four
3,998 posts
msg #125277
Ignore four
modified
9/26/2015 10:23:58 AM

Fetcher[
set{var1, count(rsi(2) 1 day ago > rsi(2),5)}
var1 > 4
draw var1 line at 5
add column var1
draw rsi(2)
sp500
offset 8/25/2015
]




StockFetcher Forums · Filter Exchange · Specifying a particular bar in the past<< >>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 2016 - 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