PureBytes Links
Trading Reference Links
|
Hi David,
Happy if we have what you ask.
Delete the
COLUMN6NAME="B/S F";
It is of no use. It will be used in the future.
For now you may delete it.
(Although, since this code was personally written and dedicated to
you, and supposing you still have your sense of humor, I created a
column for future use, when we will be able to add there the
Bark/Scratch Filter)
As for %, I will try to find an example I used last month. The stock
was 100% from Jan 2000 untill April 2001 and the last five months
failed 11 times. The percentage now is 14%.
I suppose and I hope you understand the risk.
In my opinion this code may be used more for negative warnings,
ie if a stock has 3%, do not ba optimistic with the new Harami on
this. Anyway, you know better how to use it.
All the rest WORK as you asked.
I am sorry if a joke is not permitted into an AFL code.
(I saw somewhere and some misuderstandings and some quick conclusions
on that)
Well, DELETE line
COLUMN6NAME="B/S F";
Unless if you keep it to remember that humor has not violated at all.
In one way or another, the code works.
My best Regards
Dimitris Tsokakis
--- In amibroker@xxxx, "David Holzgrefe" <dtholz@xxxx> wrote:
> Thanks DT I tried write the final leg myself with no luck
>
> ps what is the 6 th column ? b/s f ?
>
> so now we a total of conditions found and a total that where
bullish
>
> so theory would say that if over the history of a stock the bull
harami was 80 profitable that it should trade that way in the
future ... lol risky statement that :)
>
> i will try to modify it now for other patterns
>
> Thanks once again you seem to have your head around afl
>
>
>
> Regards David
> ----- Original Message -----
> From: Dimitris Tsokakis
> To: amibroker@xxxx
> Sent: Monday, August 13, 2001 3:37 AM
> Subject: [amibroker] Bullish Harami(Final ?)
>
>
> Hi David,
> I think here we have what you ask.
> "FROM" 4 haramis "GAINED" 3, i. e. the
> "% G" is 75%.
> The most I liked is COLUMN4 syntax.
>
> /*BULLISH HARAMI BUY CONDITION*/
> /*GAIN 10 DAYS LATER*/
> /*PERCENTAGE SUCCESS*/
> u=5;/*PERCANTAGE DROP THE FIRST DAY*/
> d1=10;/*DAYS TO WATCH*/
> 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=7;
> column0=ref(close,-d1);
> column1=h1;
> column2=100*(column1/column0-1);
> column0name="HARAMI CLOSE";
> column1name="HIGHEST CLOSE";
> column2name="MAX GAIN";
> COLUMN3=LASTVALUE(CUM(BUY));
> COLUMN4=LASTVALUE(CUM(COLUMN2>0 AND SELL));
> COLUMN5=100*COLUMN4/COLUMN3;
> COLUMN3NAME="FROM";
> COLUMN4NAME="GAINED";
> COLUMN5NAME="% G";
> COLUMN6NAME="B/S F";
> COLUMN3FORMAT=1.0;
> COLUMN4FORMAT=1.0;
> COLUMN5FORMAT=1.0;
>
> The majority of my 400 stocks, although in a 2 years bearish
> period, were above 50%
>
> Dimitris Tsokakis
>
>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
|