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

Re: RE [amibroker] Candlestick Formulae Building Blocks



PureBytes Links

Trading Reference Links

Hi here one of my candles a wrote a few months back from what I can see yor
look ok with just a little syntax fix..

I should post em in the file section but there so many of them that i havent
got around to it ..

They seem to match with the description given on
http://www.litwick.com/glossary.html



note you need to include the building blocks with in the code for each
candle

Regards David

/* Upside Gap Three

Pattern: Continuation
Trend: Bullish
Reliability: Moderate



How to Identify it

Two long white days occur with a gap between them
The third day is a black day that fills the gap between the first two days
What it Means

An uptrend is followed by two long white days with a gap upward between
them. The third day is a black day, but one that closes the gap between the
first two. This should be seen as support for the upward trend, and may be
caused by temporary profit taking.


C2>=O2*1.01 AND L1>H2 AND C1>=O1*1.01 AND O<C1
AND O>H2 AND C<C2
(MHY)*/

maxh5= high==hhv(close,-5) ;
MHY = Ref(Maxh5,-1);

buy =
Ref(close,-2) >= ref(open,-2) *1.01
And ref(low,-1) > Ref(high,-2)
And ref(close,-1) >= ref(open,-1) *1.01
And open < Ref(close,-1)
And open > Ref(high,-2)
And Close < ref(close,-2)
And MHY;



----- Original Message -----
From: "Panos Boufardeas" <akaraman@xxxx>
To: "ABGroup" <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, June 28, 2001 12:43 AM
Subject: RE [amibroker] Candlestick Formulae Building Blocks


> HI AB GROUP
> I try to play litle bit with Candlestick but i thing i have sothing wrong
> here
>
> BUILDING BLOCKS
> Maximum High Today - (MHT)
> We want to see today's high as the highest of the past (5) days
> MAXH5=H
> ****** MHT= hhv(close,5) ;
> Maximum High Yesterday - (MHY)
> We want to see yesterday's high as the highest of the past (5) days
> MAXH5=H1
> ****** MHY=ref(hhv(close,5),-1) ;
> Minimum Low Today - (MLT)
> We want to see today's low as the lowest of the past (5) days
> MINL5=L
> ********* MLT = llv( close, 5) ;
> Minimum Low Yesterday - (MLY)
> We want to see yesterday's low as the lowest of the past (5) days
> MINL5=L1
> ********* MLY = REF(llv( close, 5),-1) ;
>
> ------------ here is my trying ALF ----------
> Upside Gap Three
> C2>=O2*1.01 AND L1>H2 AND C1>=O1*1.01 AND O<C1
> AND O>H2 AND C<C2
> (MHY)
> *********
>
> UpsideGapThree=
> ref(close,-2) >= ref(open,-2)*1.01 //C2>=O2*1.01
> AND ref(low,-1) > ref(high,-2) //L1>H2
> AND ref(close,-1) >= ref(open,-1)*1.01 //C1>=O1*1.01
> AND O <ref(close,-1) //O<C1
> AND O >ref(high,-2) // O>H2
> AND C <ref(close,-2) // C<C2
> AND MHY;
>
> Bullish Harami
> C1<=O1*.99 AND H<=O1 AND L>=C1 AND C>O
> (MLY)
> ************
> BullishHarami =
> ref(close,-1)<= ref(OPEN,-1)*.99 //C1<=O1*.99
> AND H<= ref(open,-1) // H<=O1
> AND L>= ref(close,-1) // L>=C1
> AND C>O
> AND MLY ;
>
>
> ///---------------------------------\\\
> Panagiotis Boufardeas
> akaraman@xxxx
>
> UNI #ICQ 28735786
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>