mahkoh 1,065 posts msg #101980 - Ignore mahkoh modified |
8/3/2011 6:02:05 PM
This filter works, it shows stocks with multiple moving average support just below the close. What I'd like to do is maybe narrow down the range, instead of 1% make it 0.5%. I would have to go through the filter and change every 0.99 to 0.995. In order to create a shortcut for that I tried the following:
My intention was that I only need to change x and y values. But I already get a "variable: is not closed" error message in debug. Am I using to many variables?
Does anyone know of a workaround?
Thanks
Marco
|
duke56468 683 posts msg #101996 - Ignore duke56468 modified |
8/4/2011 10:02:54 AM
Marco.. the answer might be here
+++++++++++++++++++++++++++++++++
guyonn
6 posts
msg #74119
- Ignore guyonn 5/5/2009 5:20:31 PM
Hello,
What is wrong with this code in the 'Variables' window?
Buying Pressure - set{BP, Close - True Low}
"True Low" has been defined as a variable previously
(!) Error:Variable: is not closed..
Thanks for your help
chetron
2,817 posts
msg #74120
- Ignore chetron 5/5/2009 5:47:50 PM
you have tried to use a variable name more than once, just as it says.
to know what is wrong your code, you need to post ALL of it.
glty
guyonn
6 posts
msg #74121
- Ignore guyonn 5/5/2009 6:04:08 PM
Var Name = True Low
Value = min(low, close 1 day ago)
Var Name = Buying Pressure
Value = set{BP, close - True Low}
(!) Error:Variable: is not closed..
chetron
2,817 posts
msg #74122
- Ignore chetron
modified 5/5/2009 6:22:34 PM
TRY....
|
four 5,087 posts msg #101997 - Ignore four modified |
8/4/2011 10:30:11 AM
SET statements for 'a2' 'b2 'c2' were missing the ending '}'
I added 'ascend' to Sort column 5
|
mahkoh 1,065 posts msg #101998 - Ignore mahkoh |
8/4/2011 12:58:38 PM
Thanks once again, four! What a difference a few }}'s can make.
One can use this filter intraday, replace ma's with any sort of resistance or support you like, pivots, fibonacci's linear regression or just add them to the code.
x and y are to be used to adjust for SF's delayed market data.
Look what the market has done the last 20-30 minutes, if it is down 2% set x and y to 1.02 and 1.03 and you'll scan for stocks that were 2 to 3 percent above significant support 20 minutes ago and that may be just above it right now. You'll have to verify this manually with a service that has realtime data.
Sort column 5 descending to have multiple support on top.
|