ipaid 12 posts msg #100892 - Ignore ipaid |
5/25/2011 8:22:36 AM
Hi all
is it somehow possible to declare a value as constant? For example i need to set the record 8 week high as constant for comparison with other values in the past.
According to the user guide i can declare a variable as follows:
set {RES,high 8 week high}
But RES is still a variable that changes it's value over time...
Any help is appreciated.
Thanks ipaid
|
Kevin_in_GA 4,599 posts msg #100893 - Ignore Kevin_in_GA |
5/25/2011 8:46:58 AM
Hi all
is it somehow possible to declare a value as constant? For example i need to set the record 8 week high as constant for comparison with other values in the past.
According to the user guide i can declare a variable as follows:
set {RES,high 8 week high}
But RES is still a variable that changes it's value over time...
Any help is appreciated.
Thanks ipaid
++++++++
Yes, but that's what it is supposed to do, right? If you are interested in comparing values to the recent 8 week high, then a month or two from now you'll need to keep changing the filter. This syntax update automatically.
If you want it to hold a value over time, that is not really easily done in SF for a large number of stocks. You can set it individually for a stock by manually setting the value, but not for each stock returned from a filter.
|
ipaid 12 posts msg #100895 - Ignore ipaid |
5/25/2011 10:04:12 AM
First of all thanks for your answer!
I think of the following problem:
I want to find stocks that traded in a constant range over time (horizontal channel). So i need to have a constant value to compare with.
I could use an absolute value to compare with but this would only be correct for a couple of stocks in that particular range.
So my idea was to use a dynamic calculated value for each stock but then keep this value constant over time.
For example:
Find all stocks that traded between today's close +/- 2% over the last 3 months
|
duke56468 683 posts msg #100900 - Ignore duke56468 |
5/25/2011 2:38:26 PM
not sure if this is what you need from
http://help.stockfetcher.com/sfhelp/?id=100320&isiframe=&isiframe=
|
byebyemoney 31 posts msg #144346 - Ignore byebyemoney |
8/8/2018 2:56:39 PM
This is an excellent question. Is it possible to set variables based on the value of the indicator rather than the reference. This will be great creating certain reference points as a filter.
|