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

Re: [amibroker] Bulish Harami, II



PureBytes Links

Trading Reference Links


Thank you very much for your efforts in the afl , I 
wish everyone would take the time to explain in depth the workings of there 
formula ..
 
now i still need to add the number of times the 
harami occurred and how many times it was bearish in order to gain a % of 
success for the pattern
 
Regards David
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Dimitris 
Tsokakis 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Friday, August 10, 2001 1:46 
AM
Subject: [amibroker] Bulish Harami, 
II

With the following general code, you know d1 days 
later
the max gain form the day that cond3 was true. Of 
course
this may occur any day of the d1 days not only the 
last.
 
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:
 
<FONT face="Times New Roman" 
size=2>/*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 Haramifor 
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 !!<FONT 
size=2>Your use of Yahoo! Groups is subject to 
the Yahoo! Terms of 
Service.