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

Re: PV Binary Wave System Test



PureBytes Links

Trading Reference Links

<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<META content='"MSHTML 4.72.2106.6"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>Jim,</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>As always you have come up 
with a system that tests the rest of us just to stay up.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>My simple attempt to understand what you are 
doing with this function follows. Perhaps it will help someone else understand 
it as well. If I am wrong then I guess I will be told.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>The first statement asks whether or not the highest high value 
of the low for the past 21 days occurred in the last 8 days. If it did then the 
function goes up by two, if not then zero. <FONT size=2>The next statement asks 
whether or not the highest high value of the low for the past 55 days occurred 
in the last 21 days. Again if yes then add two, if no then zero. The reasoning 
is similar for the next four statements.</FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2>As an example, if the highest high value for the low and the 
high for the past year (almost) occurred say in the last week then a value of 10 
would be returned for the first half of the function. This would indicate that 
at least the resistance line has an upward slope.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>The next six statements look at the reverse situation. If the 
lowest low value for the high and low occurred in the past week then a value of 
minus 10 is returned. This would indicate that at least the support line has a 
downward slope.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>If both conditions occurred in the past week then that would 
be very interesting indeed! Leaving that aside, for the function to return a 
positive result the hhv part of the expression has to be greater than the llv 
part and vice versa. You have a simple enter long when the expression returns a 
positive value with the converse also applying. It cant be that 
simple.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Anyway now that I have eye-balled the expression (and provided 
that my explanation above doesn't suffer too much) I will set about to 
&quot;fiddle with this thing over the weekend and report back next 
week.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Regards,</FONT></DIV>
<DIV><FONT size=2>JH</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
    <DIV><FONT face=Arial size=2><B>-----Original Message-----</B><BR><B>From: 
    </B>Jim Greening &lt;<A 
    href="mailto:JimGinVA@xxxxxxxxxxxxx";>JimGinVA@xxxxxxxxxxxxx</A>&gt;<BR><B>To: 
    </B>metastock@xxxxxxxxxxxxx 
    &lt;<A 
    href="mailto:metastock@xxxxxxxxxxxxx";>metastock@xxxxxxxxxxxxx</A>&gt;<BR><B>Date: 
    </B>Monday, 14 September 1998 3:01<BR><B>Subject: </B>Re: PV Binary Wave 
    System Test<BR><BR></DIV></FONT>
    <DIV><FONT size=2>All,</FONT></DIV>
    <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; Just read my post and see that I 
    made a mistake.&nbsp; I copied the wrong formula to the Enter Short system 
    test.&nbsp; Obviously the weightings should be opt1, opt2, opt3 instead of 
    1, 2, 3 and -opt1, -opt2, -opt3 instead of -1, -2, -3.&nbsp; Sorry about 
    that &lt;G&gt;.</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>Jim&nbsp;</FONT></DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
        <DIV><FONT face=Arial size=2><B>-----Original 
        Message-----</B><BR><B>From: </B>Jim Greening &lt;<A 
        href="mailto:JimGinVA@xxxxxxxxxxxxx";>JimGinVA@xxxxxxxxxxxxx</A>&gt;<BR><B>To: 
        </B>Metastock &lt;<A 
        href="mailto:metastock@xxxxxxxxxxxxx";>metastock@xxxxxxxxxxxxx</A>&gt;<BR><B>Date: 
        </B>Sunday, September 13, 1998 12:30 PM<BR><B>Subject: </B>PV Binary 
        Wave System Test<BR><BR></DIV></FONT>
        <DIV><FONT color=#000000 size=2>All,</FONT></DIV>
        <DIV><FONT color=#000000 size=2>&nbsp;&nbsp;&nbsp;&nbsp; I wanted 
        everyone to know that I hadn't forgotten the development of the Price 
        Volume Binary Wave.&nbsp; I've just been very busy and haven't had much 
        time for it.&nbsp; For one thing our first grandson (to go with our two 
        granddaughters) was born a couple of months ago.&nbsp; They live about 
        an hours drive North of us and needless to say, we have been making that 
        short trip often &lt;G&gt;.&nbsp; Anyway, back to business.&nbsp; I 
        combined the first two PVBW formulas into the following:</FONT></DIV>
        <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
        <DIV><FONT color=#000000 size=2>PVBW01 (Highs &amp; Lows)</FONT></DIV>
        <DIV><FONT color=#000000 size=2>If(HHV(L,8) = HHV(L,21),2,0) 
        +<BR>&nbsp;If(HHV(L,21) = HHV(L,55),2,0) +<BR>&nbsp; If(HHV(L,55) = 
        HHV(L,233),1,0) +<BR>&nbsp;&nbsp; If(HHV(H,8) = HHV(H,21),2,0) 
        +<BR>&nbsp;&nbsp;&nbsp; If(HHV(H,21) = HHV(H,55),2,0) 
        +<BR>&nbsp;&nbsp;&nbsp;&nbsp; If(HHV(H,55) = HHV(H,233),1,0) 
        +<BR>If(LLV(H,8) = LLV(H,21),-2,0) +<BR>&nbsp;If(LLV(H,21) = 
        LLV(H,55),-2,0) +<BR>&nbsp; If(LLV(H,55) = LLV(H,233),-1,0) 
        +<BR>&nbsp;&nbsp; If(LLV(L,8) = LLV(L,21),-2,0) +<BR>&nbsp;&nbsp;&nbsp; 
        If(LLV(L,21) = LLV(L,55),-2,0) +<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
        If(LLV(L,55) = LLV(L,233),-1,0) </FONT></DIV>
        <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>Note that all I did was add the first two formulas 
        together and changed the weighting.&nbsp; The reason I changed the 
        weighting was that I copied the formula into the following simple MS 
        System Test and tested&nbsp; it on several of my stocks.</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>05B_Tema PV BW</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>&nbsp;&nbsp; Enter Long</FONT></DIV>
        <DIV><FONT size=2>If(HHV(L,8) = HHV(L,21),opt1,0) 
        +<BR>&nbsp;If(HHV(L,21) = HHV(L,55),opt2,0) +<BR>&nbsp; If(HHV(L,55) = 
        HHV(L,233),opt3,0) +<BR>&nbsp;&nbsp; If(HHV(H,8) = HHV(H,21),opt1,0) 
        +<BR>&nbsp;&nbsp;&nbsp; If(HHV(H,21) = HHV(H,55),opt2,0) 
        +<BR>&nbsp;&nbsp;&nbsp;&nbsp; If(HHV(H,55) = HHV(H,233),opt3,0) 
        +<BR>If(LLV(H,8) = LLV(H,21),-opt1,0) +<BR>&nbsp;If(LLV(H,21) = 
        LLV(H,55),-opt2,0) +<BR>&nbsp; If(LLV(H,55) = LLV(H,233),-opt3,0) 
        +<BR>&nbsp;&nbsp; If(LLV(L,8) = LLV(L,21),-opt1,0) 
        +<BR>&nbsp;&nbsp;&nbsp; If(LLV(L,21) = LLV(L,55),-opt2,0) 
        +<BR>&nbsp;&nbsp;&nbsp;&nbsp; If(LLV(L,55) = LLV(L,233),-opt3,0) &gt; 
        0</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2></FONT><FONT color=#000000 size=2>&nbsp; Enter 
        Short</FONT></DIV>
        <DIV><FONT color=#000000 size=2></FONT><FONT size=2>If(HHV(L,8) = 
        HHV(L,21),1,0) +<BR>&nbsp;If(HHV(L,21) = HHV(L,55),2,0) +<BR>&nbsp; 
        If(HHV(L,55) = HHV(L,233),3,0) +<BR>&nbsp;&nbsp; If(HHV(H,8) = 
        HHV(H,21),1,0) +<BR>&nbsp;&nbsp;&nbsp; If(HHV(H,21) = HHV(H,55),2,0) 
        +<BR>&nbsp;&nbsp;&nbsp;&nbsp; If(HHV(H,55) = HHV(H,233),3,0) 
        +<BR>If(LLV(H,8) = LLV(H,21),-1,0) +<BR>&nbsp;If(LLV(H,21) = 
        LLV(H,55),-2,0) +<BR>&nbsp; If(LLV(H,55) = LLV(H,233),-3,0) 
        +<BR>&nbsp;&nbsp; If(LLV(L,8) = LLV(L,21),-1,0) +<BR>&nbsp;&nbsp;&nbsp; 
        If(LLV(L,21) = LLV(L,55),-2,0) +<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
        If(LLV(L,55) = LLV(L,233),-3,0) &lt; 0</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>OPT1:&nbsp; Min = 1&nbsp; Max = 3&nbsp; Step = 
        1</FONT></DIV>
        <DIV><FONT size=2></FONT><FONT size=2>OPT2:&nbsp; Min = 1&nbsp; Max = 
        3&nbsp; Step = 1</FONT></DIV>
        <DIV><FONT size=2></FONT><FONT size=2>OPT2:&nbsp; Min = 1&nbsp; Max = 
        3&nbsp; Step = 1</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2></FONT><FONT color=#000000 size=2>I ran the test on 
        several of my stocks and was surprised by two things.&nbsp; First, that 
        just this simple test worked very well on most of my stocks.&nbsp; 
        Second and more important, that I had assigned my original weighting 
        wrong where I gave progressively more weight to the longer term 
        results.&nbsp; On average the tests performed better with more weight to 
        the short and intermediate term and less weight to the long term.&nbsp; 
        Therefore I changed my weighting from 1, 2, 3 to 2, 2, 1.&nbsp; I intend 
        to do the same thing with the rest of the PVBW formulas that I forwarded 
        a few weeks ago and then look for the optimum smoothing.&nbsp; Finally, 
        I'll work on the test itself and add some close conditions and vary the 
        Enter long conditions.&nbsp; I hope to be able to report back on the 
        binary wave components by next week and then proceed from 
        there.</FONT></DIV>
        <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; If anyone wants to experiment 
        and let me know the results or has ideas for other components please let 
        me know.&nbsp; Remember, I don't want to use any indicators for this 
        binary wave, only price/volume relationships.</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT size=2>Jim</FONT></DIV>
        <DIV><FONT size=2></FONT>&nbsp;</DIV>
        <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
        <DIV><FONT color=#000000 
size=2></FONT>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
</x-html>From ???@??? Wed Sep 23 07:54:38 1998
Received: from 204.246.137.2 (204.246.137.2)
	by mail05.rapidsite.net (RS ver 0.3) with SMTP id 3181
	for <neal@xxxxxxxxxxxxx>; Wed, 23 Sep 1998 10:46:35 -0400 (EDT)
Received: (from majordom@xxxxxxxxx)
	by listserv.equis.com (8.8.7/8.8.7) id VAA13024
	for metastock-outgoing; Wed, 23 Sep 1998 21:36:23 -0600
X-Authentication-Warning: listserv.equis.com: majordom set sender to owner-metastock@xxxxxxxxxxxxx using -f
Received: from freeze.metastock.com (freeze.metastock.com [204.246.137.5])
	by listserv.equis.com (8.8.7/8.8.7) with ESMTP id VAA13020
	for <metastock@xxxxxxxxxxxxxxxxxx>; Wed, 23 Sep 1998 21:36:20 -0600
Received: from send201.yahoomail.com (send201.yahoomail.com [205.180.60.131])
	by freeze.metastock.com (8.8.5/8.8.5) with SMTP id HAA15145
	for <metastock@xxxxxxxxxxxxx>; Wed, 23 Sep 1998 07:39:34 -0600 (MDT)
Message-ID: <19980923133233.23307.rocketmail@xxxxxxxxxxxxxxxxxxxxx>
Received: from [157.198.3.51] by send201.yahoomail.com; Wed, 23 Sep 1998 06:32:33 PDT
Date: Wed, 23 Sep 1998 06:32:33 -0700 (PDT)
From: Robert Lambert <lambertb1@xxxxxxxxx>
Subject: Trend Ribbon/ Expert Advisor Help
To: metastock@xxxxxxxxxxxxx
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-metastock@xxxxxxxxxxxxx
Precedence: bulk
Reply-To: metastock@xxxxxxxxxxxxx
X-Loop-Detect: 1

I am attempting to configure a Trend Ribbon in an Expert Advisor,
using the RSI as a trend following indicator.

I would like to define a bullish trend as the RSI(14)rising above 60.
The trend would remain bullish until the RSI (14) fell below 40.

I would like to define a bearish trend as the RSI(14)falling below 40.
The trend would remain bullish until the RSI (14) rose above 60.

It's easy to program the first cross of the RSI to begin definition of
the trend, but I'm not sure how to keep the trend active until the
second cross of the RSI changes to the countertrend.

Can someone suggest a simple formula to achieve this?

Thanks.

Bob L.




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com