Skeksis 36 posts msg #31107  Ignore Skeksis 
2/16/2004 7:39:10 PM
This is straight from the SF User Guide, it shows exactly how to write Fib filters:
Fibonacci Retracement Lines
Parameters
Period
MinDays (minimum length of pattern)
Label (toggle the labels displayed on resulting charts)
Usage
Fibonacci Down(Period, MinDays, Label)
Fibonacci Up(Period MinDays, Label)
Description
The Fibonacci retracements are ranges computed from the high and low prices over a given
period of time. The actual lines that are drawn are specific percent retracements from the given
high or low. Investors primarily look at 3 different lines (0.382, 0.50, 0.618), which are based on
the formula for the Fibonacci sequence.
The Fibonacci retracement lines can be based on a relative low or high price. The actual target
values are computed by taking a percent change from the relative low or high price.
By specifying Fibonacci Down on StockFetcher, you are referring to the retracement lines drawn
after a recent swing low. All of the values will be relative to how much the stock has recovered
from the recent low. For the Fibonacci Up, the values are based upon a recent runup in the stock
price. Again, the actual values refer to the amount the stock has moved to return to the recent low.
Below is an example of the Fibonacci Down screen:
[Fibonacci chart]
The actual values returned by StockFetcher are computed from the most recent close in reference
to the recent high or low. In the example above, the value returned by the screen would be near
0.382 (the most recent close is very near the 0.382 Fibonacci band.)
When specifying the Fibonacci Up, the values returned will be reversed from the
Fibonacci Down. So a filter scanning for crossed above in the Fibonacci Up case
will actually result in a downward price move.
StockFetcher permits several parameters with the Fibonacci retracements.
Period  The first parameter is the length of time used to look for the uptrend or downtrend. So,
a value of 65 will search over the last 3 months to look for the trend.
MinDays  The second parameter is the minimum number of days for the trend to occur. For
example, if you specify 15 days here, that means the distance between the high and low must be
at least 15 days.
Label  Finally, by setting the third or last parameter to 0, you can eliminate the labels that are
seen on the charts; this may help to clear up your chart if needed.
Examples
show stocks where the Fibonacci Down(65,10) is near 0.618
show stocks where the Fibonacci Up(135,20) is near 0.50
show stocks where the Fibonacci Down(65,10) crossed above
0.382 and Fibonacci Down(65,10) is below 0.50
