houghton 29 posts msg #34433 - Ignore houghton |
12/19/2004 12:22:04 PM
I'm trying to write a filter that identifies stocks exhibiting "squat bars" as discussed by Thom Hartle in the January 2005 edition of Active Trader magazine. The squat bar is based on the Market Facilitation Index (MFI)discussed by Bill Williams in his recent book "Trading Chaos." The MFI is defined as the range of a bar divided by its volume. It is then multiplied by 1,000,000 since the resulting numbers are so small. This filter gives back a syntax error in the set line and I can't figure out why.
set{var1,((high-close)/volume)* 1000000}
show stocks where var1 is less than var1 one day ago
and volume is greater than volume one day ago
and close is greater than 3
Can anyone identify the error?
thanks,
Karl
|
houghton 29 posts msg #34434 - Ignore houghton |
12/19/2004 12:27:31 PM
Ooops. That should be high-low in the set line.
Karl
|
jclaffee 81 posts msg #34435 - Ignore jclaffee |
12/19/2004 3:00:54 PM
How about this:
I'm not an ace filter writer but my experience has been that it needs to be done step-by-step!
HTH, Jim
|
houghton 29 posts msg #34441 - Ignore houghton |
12/20/2004 9:00:29 AM
Thanks. That works. Just had to add var2 less than var2 one day ago.
Karl
|
woodsmen63 23 posts msg #42642 - Ignore woodsmen63 |
3/30/2006 6:27:27 AM
I need help with this syntax, this simple filter works but syntax is incorrect
|
BFreshour 139 posts msg #42644 - Ignore BFreshour |
3/30/2006 8:52:18 AM
woodsmen, I don't get a syntax error when I run that filter.
|
woodsmen63 23 posts msg #42645 - Ignore woodsmen63 |
3/30/2006 9:02:02 AM
Ok me either, its just when I try to de-bug it I get
"Filter Syntax checking aborted due to filter performance contraints"
so I thought maybe the wording of the filter should be changed,to meet SF (beta) filter performance contraints.....to get syntax OK
Thanks
|
nikoschopen 2,824 posts msg #42648 - Ignore nikoschopen |
3/30/2006 2:26:35 PM
Try debugging ure filter in a piecemeal fashion. BTW, that debugger has been eternally damned to be in a "beta" mode, so I wouldn't exactly count on it being upgraded anytime soon.
|
chetron 2,817 posts msg #73144 - Ignore chetron modified |
3/30/2009 9:59:36 AM
sorry i'm late.....
OOPS..............
|
chetron 2,817 posts msg #73147 - Ignore chetron modified |
3/30/2009 12:10:24 PM
MFI COMBOS.....
maybe.....
|