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

Re: [amibroker] Winning Systems



PureBytes Links

Trading Reference Links

cci and mri or 301-6 and 301-4

Buy = CCI(30) > 100 ;

Sell = CCI(30) < -100 ;

Buy = ExRem( Buy, Sell );

Sell = ExRem( Sell, Buy );


----- Original Message ----- 
From: Tomasz Janeczko 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Friday, October 05, 2001 6:46 PM
Subject: Re: [amibroker] Winning Systems


David,

The signal is generated because CCI moves sharply slightly above 0 then falls back
below so sell then buy is generated.
To eliminate such effects you may consider introducing some so-called histeresis:

Buy = CCI() > 10 ;

Sell = CCI() < -10 ;

Buy = ExRem( Buy, Sell );

Sell = ExRem( Sell, Buy );

You may even try to optimize this:

histeresis = optimize( "Histeresis", 10, 0, 30, 1 );

buy = CCI() > histeresis;

sell = CCI() < -histeresis;

Best regards,

Tomasz Janeczko

amibroker.com

----- Original Message ----- 
From: David Holzgrefe 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: 04 October, 2001 23:50
Subject: Re: [amibroker] Winning Systems


Thanks Tom 
I was thinking more along the lines of an exploration code 
to create buy sell signals for backtesting.

I tried this thinking it would capture the movements but it seem to give false signals that done appear correct compared to chart .

maybe I have read the signal wrong ?


Buy = CCI() > 0 ;

Sell = CCI() < 0 ;

Buy = ExRem( Buy, Sell );

Sell = ExRem( Sell, Buy );



Thanks David


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


------=_NextPart_001_001D_01C14E3D.4BDF9500
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks Tj this seem to capture the movements of the 
indicators</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>cci and mri or 301-6 and 301-4</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><B><FONT face="Courier New" size=2>
<P>Buy</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>CCI</FONT><FONT face="Courier New" size=2>(</FONT><FONT 
face="Courier New" color=#ff00ff size=2>30</FONT><FONT face="Courier New" 
size=2>) &gt; </FONT><FONT face="Courier New" color=#ff00ff 
size=2>100</FONT><FONT face="Courier New" size=2> ;</P><B>
<P>Sell</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>CCI</FONT><FONT face="Courier New" size=2>(</FONT><FONT 
face="Courier New" color=#ff00ff size=2>30</FONT><FONT face="Courier New" 
size=2>) &lt; -</FONT><FONT face="Courier New" color=#ff00ff 
size=2>100</FONT><FONT face="Courier New" size=2> ;</P><B>
<P>Buy</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>ExRem</FONT><FONT face="Courier New" size=2>( <B>Buy</B>, <B>Sell</B> 
);</P><B>
<P>Sell</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>ExRem</FONT><FONT face="Courier New" size=2>( <B>Sell</B>, <B>Buy</B> 
);</P></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV 
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
Tomasz Janeczko 
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=amibroker@xxxxxxxxxx 
href="mailto:amibroker@xxxxxxxxxxxxxxx";>amibroker@xxxxxxxxxxxxxxx</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, October 05, 2001 6:46 
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [amibroker] Winning 
Systems</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>David,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The signal is generated because CCI moves 
sharply&nbsp; slightly above 0 then falls back</FONT></DIV>
<DIV><FONT face=Arial size=2>below so sell then buy is generated.</FONT></DIV>
<DIV><FONT face=Arial size=2>To eliminate such effects you may consider 
introducing some so-called histeresis:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>
<P><FONT face=Arial><STRONG>Buy</STRONG> = <FONT color=#0000ff 
size=2>CCI</FONT><FONT size=2>() &gt; <FONT color=#ff00ff>1</FONT></FONT><FONT 
color=#ff00ff size=2>0</FONT></FONT><FONT size=2><FONT face=Arial> 
;</FONT></P><B>
<P><FONT face=Arial>Sell</FONT></B><FONT face=Arial> = </FONT></FONT><FONT 
face=Arial><FONT color=#0000ff size=2>CCI</FONT><FONT size=2>() &lt; <FONT 
color=#ff00ff>-1</FONT></FONT><FONT color=#ff00ff size=2>0</FONT><FONT size=2> 
;</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial><STRONG>Buy</STRONG> = <FONT color=#0000ff 
size=2>ExRem</FONT></FONT><FONT size=2><FONT face=Arial>( <B>Buy</B>, 
<B>Sell</B> );</FONT></P><B>
<P><FONT face=Arial>Sell</FONT></B><FONT face=Arial> = </FONT></FONT><FONT 
face=Arial><FONT color=#0000ff size=2>ExRem</FONT><FONT size=2>( <B>Sell</B>, 
<B>Buy</B> );</FONT></FONT></P>
<P><FONT face=Arial>You may even try to optimize this:</FONT></FONT></P>
<P><FONT face=Arial size=2>histeresis = optimize( "Histeresis", 10,0, 30, 1 
);</FONT></P>
<P><FONT face=Arial size=2>buy = CCI() &gt; histeresis;</FONT></P><FONT 
size=2>
<P><FONT face=Arial size=2>sell&nbsp;= CCI()&nbsp;&lt; 
-histeresis;</FONT></P></FONT>
<P><FONT face=Arial size=2>Best regards,</FONT></P>
<P><FONT face=Arial size=2>Tomasz Janeczko</FONT></P>
<P><FONT face=Arial size=2>amibroker.com</FONT></P></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV 
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
<A title=dtholz@xxxx href="mailto:dtholz@xxxx";>David 
Holzgrefe</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=amibroker@xxxxxxxxxxxx 
href="mailto:amibroker@xxxxxxxxxxxxxxx";>amibroker@xxxxxxxxxxxxxxx</A></DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> 04 October, 2001 23:50</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [amibroker] Winning 
Systems</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Thanks Tom </FONT></DIV>
<DIV><FONT face=Arial size=2>I was thinking more along the lines ofan 
exploration code </FONT></DIV>
<DIV><FONT face=Arial size=2>to create buy sell signals for 
backtesting.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I tried this thinking it would capturethe 
movements but it seem to give false signals that done appear correct 
compared to chart .</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>maybe I have read the signal wrong 
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><IMG alt="" hspace=0 src="cid:001b01c14de9$7a012a60$2f2dfea9@xxxxx"; 
align=baseline border=0></DIV>
<DIV><B><FONT face="Courier New" size=2>
<P>Buy</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>CCI</FONT><FONT face="Courier New" size=2>() &gt; </FONT><FONT 
face="Courier New" color=#ff00ff size=2>0</FONT><FONT face="Courier New" 
size=2> ;</P><B>
<P>Sell</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>CCI</FONT><FONT face="Courier New" size=2>() &lt; </FONT><FONT 
face="Courier New" color=#ff00ff size=2>0</FONT><FONT face="Courier New" 
size=2> ;</P><B>
<P>Buy</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>ExRem</FONT><FONT face="Courier New" size=2>( <B>Buy</B>, <B>Sell</B> 
);</P><B>
<P>Sell</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=2>ExRem</FONT><FONT face="Courier New" size=2>( <B>Sell</B>,<B>Buy</B> 
);</P></FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks 
David</FONT></DIV></BLOCKQUOTE><BR><BR><TT>Your use of Yahoo! Groups is 
subject to the <A href="http://docs.yahoo.com/info/terms/";>Yahoo! Terms of 
Service</A>.</TT> <BR></BLOCKQUOTE><BR><TT>Your use of Yahoo! Groups is 
subject to the <A href="http://docs.yahoo.com/info/terms/";>Yahoo! Termsof 
Service</A>.</TT> <BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_001D_01C14E3D.4BDF9500--

Attachment:

Attachment: Description: "Description: Binary data"