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>
<META content='"MSHTML 4.72.2106.6"' name=GENERATOR>
</HEAD>
<BODY>
<DIV><FONT color=#000000 size=2>Hi All,</FONT></DIV>
<DIV><FONT color=#000000 size=2>To all those interested in Gann, we have started
up a chat group.</FONT></DIV>
<DIV><FONT color=#000000 size=2>For information on joining just E- mail
me.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT color=#000000 size=2>Regards,</FONT></DIV>
<DIV><FONT color=#000000 size=2>Dick.</FONT></DIV>
<DIV> </DIV></BODY></HTML>
</x-html>From ???@??? Wed Aug 19 20:06:32 1998
Received: from 204.246.137.2 (204.246.137.2)
by mail02.rapidsite.net (RS ver 0.3) with SMTP id 5069
for <neal@xxxxxxxxxxxxx>; Wed, 19 Aug 1998 23:02:32 -0400 (EDT)
Received: (from majordom@xxxxxxxxx)
by listserv.equis.com (8.8.7/8.8.7) id SAA14890
for metastock-outgoing; Wed, 19 Aug 1998 18:23:24 -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 SAA14886
for <metastock@xxxxxxxxxxxxxxxxxx>; Wed, 19 Aug 1998 18:23:21 -0600
Received: from goliath.camtech.net.au (goliath.camtech.net.au [203.5.73.2])
by freeze.metastock.com (8.8.5/8.8.5) with ESMTP id SAA23678
for <metastock-list@xxxxxxxxxxxxx>; Wed, 19 Aug 1998 18:31:39 -0600 (MDT)
Received: from camtech.net.au (dialup-ad-15-37.camtech.net.au [203.55.243.37]) by goliath.camtech.net.au (8.8.5/8.8.2) with ESMTP id JAA12502 for <metastock-list@xxxxxxxxxxxxx>; Thu, 20 Aug 1998 09:52:40 +0930 (CST)
Message-ID: <35DB6C3B.72397A43@xxxxxxxxxxxxxx>
Date: Thu, 20 Aug 1998 09:52:20 +0930
From: Martin Haesler <mhaesler@xxxxxxxxxxxxxx>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: metastock users group <metastock-list@xxxxxxxxxxxxx>
Subject: [Fwd: MS: System test w/o "re-investment": How? and "System Testing"]
Content-Type: multipart/mixed; boundary="------------61A49BE02D84E82A527C91F0"
Sender: owner-metastock@xxxxxxxxxxxxx
Precedence: bulk
Reply-To: metastock@xxxxxxxxxxxxx
X-Loop-Detect: 1
This post appears not to have made the list. Am retransmitting.
Apologies if it causes duplication. ... Martin
Message-ID: <35D8F7A9.B2435EEC@xxxxxxxxxxxxxx>
Date: Tue, 18 Aug 1998 13:10:25 +0930
From: Martin Haesler <mhaesler@xxxxxxxxxxxxxx>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: metastock@xxxxxxxxxxxxx
Subject: Re: MS: System test w/o "re-investment": How? and "System Testing"
References: <35be3f78.244836471@xxxxxxxxxxx> <35C522BA.6B6B0C4D@xxxxxxxxxxxxxx> <35ceef1f.36450893@xxxxxxxxxxx> <35D77BEC.80B91BA6@xxxxxxxxxxxxxx> <35dc55b4.382674314@xxxxxxxxxxx>
Content-Type: multipart/mixed; boundary="------------09D2AAF44514FB89B66CD47C"
Rudolf .... I agree that you may have to leave the system tester behind.
However, you can achieve constant (level) investment using the graphical
approach. I have attached the code and a .gif file to illustrate the
implementation of the MACD 13,34,89 indicator, trading the zero crossover (on
the long side only).
{m010 MACD 13,34,89 indicator code}
mov13:=Mov(C,13,E);
mov34:=Mov(C,34,E);
mov89:=Mov((mov13-mov34),89,E);
plot:=mov13-mov34-mov89;
{plot;
0};
{m010 MACD 13,34,89 profit code}
buypulse:=Cross(plot,0);
sellpulse:=Cross(0,plot);
{buypulse*50;
sellpulse*50;}
buyval:=ValueWhen(1,buypulse,C);
sellval:=ValueWhen(1,sellpulse,C);
{buyval;
sellval;}
capital:=10000;
buyqty:=Int(capital/buyval);
{buyqty};
profitlong:=ValueWhen(1,sellpulse,buyqty*
(sellval-buyval));
{profitlong};
cumprofitlong:=If(sellpulse,PREVIOUS+profitlong,PREVIOUS);
cumprofitlong;
long:=If(buypulse,1,
If(sellpulse,-1,PREVIOUS));
I set this code up as two separate indicators. One to show the MACD indicator
only, and the other to go on to calculate and diplay the profit. This was done
to display different colours and to simplify the scales being used. Finally I
picked up the "long" variable in an expert to colour the bars green while long
and picked up the "buypulse" and "sellpulse" variables to add buy and sell
arrows. You may want to display the other variables being used in the
calculations to satisfy yourself that the result is valid. These are enclosed in
paretheses {}.
Although a somewhat cumbersome workaround, I have found this approach can solve
some of the limitations of Metastock.
Best Regards ... Martin
rudolf stricker wrote:
> Martin,
>
> On Mon, 17 Aug 1998 10:10:12 +0930, you wrote:
>
> >No the approach I suggested (using the system indicator to build
> >and display your system graphically) is totally separate from anything the
> >Metastock system tester does. However because of this it gives you the
> >freedom to do whatever you want. It just means that you have to hardcode
> >your requirements.
>
> Thank you much for this rather bad message. Because for my
> applications it is most important to have a "constant investment per
> trade" rating for my "system tests", I could only follow your hints to
> implement such "system tests" as indicators, leaving all the system
> test capabilities from MS behind.
>
> >You can use the System Tester by referencing variables in the indicator. eg
> >if you have coded a variable named "long" that is 1 when long and 0 when
> >short in a system indicator call "burp", you can access that variable from
> >within the system tester.
> >enter long fmlvar("burp","long")=1
> >exit long fmlvar("burp","long")<>1
>
> But this, imo, does not open any chance to bring the results from your
> indicator-based "system test" to MS' System Tester to use it for
> "optimization" (i.e. parameter variation) there.
>
> Therefore I moved to Excel and implemented some system tests with
> constant investment per trade (CIPT) there, supported by some genetic
> optimization procedures. Got some nice results there showing the big
> differences between CIPT system tests and MS' unreliable "re-invest
> all" system tests. But in Excel, I'm missing MS' great graphic
> capabilities ...
>
> But thank you anyway for your hints on the inticator-based system
> tests....
>
> mfg rudolf stricker
> | Disclaimer: The views of this user are strictly his own.
Attachment Converted: "c:\eudora\attach\bhp_macd.gif"
Attachment Converted: "c:\eudora\attach\bhp_mace.gif"
|