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 5,087 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 5,087 posts msg #125277 - Ignore four modified |
9/26/2015 10:23:58 AM
|