PureBytes Links
Trading Reference Links
|
Peter,
The following is the frontend documentation from the Swing_Lee
function which is a part of the LOS indicator.
{********************************************************************
Study : Swing_Lee
Last Edit : 12/13/97
Provided By : Clyde Lee (c) 1997
Notes: Uses HighestHigh and LowestLow to determine Turning
Points for Swing Analysis.
Returns number of bars back to last swing point.
Negative if low. Positive if high.
********************************************************************}
The absolute value of the returned value from a call to this routine
is the number of bars back to the swing point.
With this information you can find the High or Low (if return is
negative) price and date/time if desired.
If you did something like:
Return=SwingLee(xxx); {xxx is number of days used in picking H/L}
AbsRet=AbsValue(Return);
If return>0 and return[1]<0 then begin
TPHIGH=H[AbsRet]
TPDIR=-1;
.
.
End
Else If return<0 and return[1]>0 then begin
TPLOW=L[AbsRet]
TPDIR=+1;
.
.
End
Then TPHIGH and TPLOW will contain the high and low values
you need for computing Fib values. TPDIR will tell you
which (high or low) to base projections.
Clyde Lee
Peter Iovanella wrote:
>
> I'm trying to design a system for day trading that will calculate Fibonacci
> numbers based on the most recent Swing High and Low, and was looking over
> Clyde Lee's (I believe it's his) code for the Length of Swing indicator in
> hopes of using his method of determining swing points in my system. But I'm
> not a tech-savvy guy, and have been having trouble figuring out exactly how
> to do this correctly. I mean, I know how to tell the system to calculate
> the Fibonacci numbers - that's pretty easy. But how can I get it to use the
> swing points as the inputs for doing the calculations? Any ideas? Thanks.
>
> Peter
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Clyde Lee Chairman/CEO (Home of SwingMachine)
SYTECH Corporation email: <clydelee@xxxxxxx>
7910 Westglen, Suite 105 Work: (713) 783-9540
Houston, TX 77063 Fax: (713) 783-1092
SM available at: ftp://intrepid.com/pub/clyde
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|