PureBytes Links
Trading Reference Links
|
d1=10; /*change time frame here*/
cond3= YOUR CONDITION HERE;
h1=hhv(close,d1);
filter=ref(COND3,-d1);
BUY=cond3;
sell=filter;
numcolumns=4;
column0=ref(close,-d1);
column1=h1;
column2=100*(column1/column0-1);
column0name="FORMATION CLOSE";/*write the name here*/
column1name="HIGHEST CLOSE";
column2name="MAX GAIN";
Example:
/*BULLISH HARAMI BUY CONDITION*/
/*MAX GAIN THE NEXT 10 DAYS , EXPLORATION*/
u=5;
d1=10;
cond1=close<=(1-u/100)*open;
cond2=close>open and close<ref(open,-1) and open>ref(close,-1);
cond3=cond2 and ref(cond1,-1);
h1=hhv(close,d1);
filter=ref(COND3,-d1);
BUY=cond3;
sell=filter;
numcolumns=3;
column0=ref(close,-d1);
column1=h1;
column2=100*(column1/column0-1);
column0name="HARAMI CLOSE";
column1name="HIGHEST CLOSE";
column2name="MAX GAIN";
Use it. It is not bad.
What I like in att. gif is that the above Exploration does not confuse
the two Haramis and results are given separately.
(I tried valuewhen, but I was reading the last Harami for both cases)
Dimitris Tsokakis
P. S. 1. I was informed that "Harami" in Japanese means "pregnant".
Anyone to confirm?
P. S. 2. The happy condition is that it did not take 9 months to write.
Thank you David, I enjoy it !!
------=_NextPart_001_0020_01C12103.888DD6E0
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-7" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>With the following general code, you know d1 days
later</FONT></DIV>
<DIV><FONT size=2>the max gain form the day that cond3 was true. Of
course</FONT></DIV>
<DIV><FONT size=2>this may occur any day of the d1 days not only the
last.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>d1=10; /*change time frame here*/<BR>cond3= YOUR CONDITION
HERE;<BR>h1=hhv(close,d1);<BR>filter=ref(COND3,-d1);<BR>BUY=cond3;<BR>sell=filter;<BR>numcolumns=4;<BR>column0=ref(close,-d1);<BR>column1=h1;<BR>column2=100*(column1/column0-1);<BR>column0name="FORMATION
CLOSE";/*write the name here*/<BR>column1name="HIGHEST
CLOSE";<BR>column2name="MAX GAIN";</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Example:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial></FONT><FONT face="Times New Roman"
size=2>/*BULLISH HARAMI BUY CONDITION*/<BR>/*MAX GAIN THE NEXT 10 DAYS ,
EXPLORATION*/<BR>u=5;<BR>d1=10;<BR>cond1=close<=(1-u/100)*open;<BR>cond2=close>open
and close<ref(open,-1) and open>ref(close,-1);<BR>cond3=cond2 and
ref(cond1,-1);<BR>h1=hhv(close,d1);<BR>filter=ref(COND3,-d1);<BR>BUY=cond3;<BR>sell=filter;<BR>numcolumns=3;<BR>column0=ref(close,-d1);<BR>column1=h1;<BR>column2=100*(column1/column0-1);<BR>column0name="HARAMI
CLOSE";<BR>column1name="HIGHEST CLOSE";<BR>column2name="MAX
GAIN";</FONT></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=2>Use it. It is not bad.</FONT></DIV>
<DIV><FONT size=2>What I like in att. gif is that the above
Exploration does not confuse</FONT></DIV>
<DIV><FONT size=2>the two Haramis and results are given separately.</FONT></DIV>
<DIV><FONT size=2>(I tried valuewhen, but I was reading the last Harami for both
cases) </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Dimitris Tsokakis</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>P. S. 1. I was informed that "Harami" in Japanese means
"pregnant".</FONT></DIV>
<DIV><FONT size=2>Anyone to confirm?</FONT></DIV>
<DIV><FONT size=2>P. S. 2. The happy condition is that it did not take 9 months
to write.</FONT></DIV>
<DIV><FONT size=2>Thank you David, I enjoy it !!<FONT face=Arial></FONT><FONT
size=2><BR></DIV></FONT></FONT></BODY></HTML>
------=_NextPart_001_0020_01C12103.888DD6E0--
Attachment:
gif00107.gif
Description: GIF image
Attachment:
Attachment:
Description: "Description: GIF image"
Attachment:
Description: "gif00108.gif"
|