StockFetcher Forums · Filter Exchange · VarOffset not working?<< >>Post Follow-up
davidricardo2017
4 posts
msg #133043
Ignore davidricardo2017
12/4/2016 12:31:07 PM

Hi all,

I am experimenting with VarOffset() but it seems not working. Here is my filter:

Fetcher[set{Var_A, Donchian Upper Band(9,0) divided by Donchian Upper Band(250,10)}
set{Var_B, days(Var_A above 1.2,100)}
set{Var_C, VarOffset(Donchian Upper Band(250,0),Var_B)}
draw Var_C
apply to symlist(AMD,NVDA)
chart-time 2 year
]



four
5,087 posts
msg #133044
Ignore four
modified
12/4/2016 1:19:22 PM


StockFetcher uses this statement:
"The VarOffset() function is a new function that we are still working on and testing. So if you run into any bugs or unexpected results, please let us know. Additionally, due the performance concerns of this function, it is possible that some scenarios may not produce results. "

I would navigate to the bottom of the page and click CONTACT US and ask for assistance.

------------------------------------------------------------------------------------------

http://www.stockfetcher.com/forums///117202/-1/117263

12/6/2013 12:12:42 PM

Below is an example using the new "VarOffset()" function that should do what you are looking for:

Fetcher[
set{var_ago, days(high reached a new 20 day high,10)}
close is above 10
and add column VarOffset(low,var_ago)
and draw price line at VarOffset(low,var_ago)}
and var_ago > -1
]





The VarOffset() function is a new function that we are still working on and testing. So if you run into any bugs or unexpected results, please let us know. Additionally, due the performance concerns of this function, it is possible that some scenarios may not produce results.

VarOffset() takes 2 parameters:

Parameter #1 - The indicator you wish to access a past value from. For example, "close" or "RSI(10)"
Parameter #2 - The variable or value that determines how to calculate the variable offset. In the example above var_ago is the number of days since the stock reached a new 20 day high. Because "days()" can return -1, not all stocks will match this condition.

Here is another example:

Fetcher[
set{new_low, days(low reached a new 52 week low,50)}
set{rsi_at_low, VarOffset(RSI(10),new_low)}
show stocks where RSI(10) is below rsi_at_low
and rsi_at_low is below 30
and new_low is above -1
]



davidricardo2017
4 posts
msg #133047
Ignore davidricardo2017
modified
12/4/2016 6:42:30 PM

This is strange, but when I changed it to this it actually worked:

Fetcher[set{Var_A, high 500 day high divided by high 500 day high 20 days ago}
set{Var_B, days(Var_A crossed above 1.2,100)}
set{Var_C, VarOffset(high 500 day high,Var_B)}
draw Var_C
apply to symlist(AMD,NVDA)
chart-time 2 year
]


What I did what just using "high x day high" instead of "Donchian Upper Band(x,0)". Perhaps VarOffset has an untold limited of indicators that can be used inside it.

StockFetcher Forums · Filter Exchange · VarOffset not working?<< >>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.