[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with SwingHigh/SwingLow


  • To: <omega-list@xxxxxxxxxx>
  • Subject: Re: Problem with SwingHigh/SwingLow
  • From: "DOUGWARREN" <DOUGWARRENkkkkkkkkkkkk>
  • Date: Thu, 26 Feb 1998 12:15:39 -0800 (PST)

PureBytes Links

Trading Reference Links



----------
> From: SaulFFeld@xxxxxxx
> On 98-02-17 12:08:56 EST you wrote:
> 
> >  In the swinghigh and swinghighbar functions try changing the following
> >  lines of code:
> >  
> >  If Price1 > Price[X] then               to        If Price1 >=
Price[X]
> >  
> >  If Price1 >= Price[X] then             to         If Price1 > Price[X]
> >  
> >  In the swinglow and swinglowbar functions try changing the following
lines
> >  of code:
> >  
> >  If Price1 < Price[X] then                 to        If Price1 <=
Price[X]
> >  then
> >  
> >  If Price1 <= Price[X] then               to        If Price1 <
Price[X]
> >  then
> 
> 
> In my copy of these functions (I use them in TS3.5 although I compared
them
> with the ones installed in TS4 by someone I know, & they are identical)
the
> expressions you are decribing are switched around as to the names of the
> functions they appear in. 
> In other words, should your version of the correction be changed to?:
> 
> In the swinglowand swinglowbar functions try changing the following
> lines of code:
> 
> If Price1 > Price[X] then               to        If Price1 >= Price[X]
then
> If Price1 >= Price[X] then             to         If Price1 > Price[X]
then
> 
> In the swinghigh and swinghighbar functions try changing the following
lines
> of code:
> 
> If Price1 < Price[X] then                 to        If Price1 <= Price[X]
then
> If Price1 <= Price[X] then               to        If Price1 < Price[X]
then
> 
> I haven't yet traced the code so as to understand why this fixes it, but
I
> will after I get your reply, or may be you want to post it to the list
should
> my comment be pertinent. Did you use the word "try" as a manner of
speach, or
> you are not sure that your recommendation will work?
> 
> Thank you for helping.
> 
>   -Saul


Oops!  You're right.  I switched the swinglow and swinghigh designations in
my reply.  

Yes it does work, but one might want to treat the situation of adjacent
bars with equal highs and lows differently.  This makes the first of two
adjacent equal highs or lows the pivot.

Doug Warren