PureBytes Links
Trading Reference Links
|
Traders,
Sometimes me and compilers do not get along too well.
I keep trying to use a SIGNED ZERO value and it seems in
EL that does not work as is true with most compilers.
Because of this the version of LengthOfSwing that you have
will quite often not carry the projections to the end of
the data -- sometimes it will.
The attached version will!
Additionally I have included an indicator LengthOfSwing2
which is a "conventional" type of indicator that will
plot the average length in bars or average price difference
of each Upgoing and each Downgoing leg.
Documentation below will help those with SuperCharts.
Don't forget to DELETE LengthOfSwing indicator from
your TS or SC program (use the QuickEditor) before
installing this current version.
Clyde Lee
I apologize for my lack of clear thinking!
cl
{*********************************************************************
Study : LengthOfSwing
Last Edit : 11/07/98
Provided By : Clyde Lee (c) 1998
: This version shall not be distributed
without
: The written consent of the author.
Notes: Uses Swing_Lee function which uses
HighestHigh and LowestLow for n days
to determine Turning Points for Swing Analysis.
Set ATRMult to value which fits risk
desired relative to current swing
position.
User may select to plot TRUE turning points
(i.e. actual dates when TP was determined).
User may or may not have channels generated.
User may or may not have end extensions plotted.
*********************************************************************}
Input: EndDate(991231), {Used to study behavior of
indicator in }
{the past. Set to earlier date
to see. }
NumBars(13), {Determines what "strength" of a
swing to }
{use for determining turning
points. }
ATRMult(-1), {Sets channel width. If set to
ANY }
{NEGATIVE value width determined
by NumB..}
PlotTru(False), {True=show where TP'S were
determined. }
DoChan(True), {False=No channel lines
plotted. }
{Omega only allows 650
"trendlines" to be }
{plotted so it may be necessary
to turn }
{off channel lines with small
NumBars }
ExtProj(True); {False=don't extend last channel
lines }
{*********************************************************************
Study : LengthOfSwing2
Last Edit : 11/07/98
Provided By : Clyde Lee (c) 1998
: This version shall not be distributed
without
: The written consent of the author.
Notes: Uses Swing_Lee function which uses
HighestHigh and LowestLow for n days
to determine Turning Points for Swing Analysis.
Plots average length of up and down legs on
seperate plot.
*********************************************************************}
Input: NumBars(13), {Determines what "strength" of a
swing to }
{use for determining turning
points. }
LengAvg(5), {Sets channel width. If set to
ANY }
PlotBars(True); {Set false to plot price
difference H-L }
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Attachment Converted: "c:\eudora\attach\Lengswng3.ela"
|